Bake bus route relations as drawn lines #29
Labels
No labels
animation
audio
blocked
bug report
controversial
documentation
easy
feature request
hard
medium
multiplayer
physics
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#28 Ride the Campusbussen
elsie/liuverse
Reference
elsie/liuverse#29
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The data half of the Campusbussen issue:
route_master(12) andpublic_transport(10) androute(37) relations, none of which the parserreads.
Worth baking as drawn routes:
superroute-- the nationallong-distance trail and a 1000 km cycling route, which run straight through the
campus bbox
networkrelation with 4 member routes -- the cycle routenetwork the bike paths already partly trace
A
BakedRoute { name, kind, points }that draws as a thin ribbon in a distinctalbedo would make the campus legible as a place with routes through it, and
would give the bus issue and any future navigation feature something to follow.
Depends on #8, the relation parser.
Related
The Campusbussen and Cykellanken parts are campus-relevant and worth drawing. The superroutes are not: Sverigeleden is a 6,600 km Karesuando–Helsingborg cycle route and Östgötaleden is a ~1,000 km trail; the piece inside this bbox is an incidental fragment, not a route through Valla. Baking those as ribbons adds map noise and implies a route the player can follow. I'd cut the national routes, scope this to the
route_master/routerelations that actually serve the campus, and keep #8 as the dependency.Recontext from the current extract:
Campusbussenis aroute_masterplus tworouterelations running Norrköping–Linköping, not a loop around Valla.Vallfartenis a stop/platform, not a route relation. The relations that actually serve the campus are the Östgötatrafikenroute/route_masterlines 3, 6, 12, 15, 20, 26, 39, 75, 232 and 250.Cykellänkenis anetworkrelation with aRydmember route.SverigeledenandÖstgötaledenare long-distance fragments. Scope this to the campus bus lines and Cykellänken, drop the national routes.Partly done, and the part that is done is the part that needed the relation parser: the campus shuttle's routes are in the bake.
PR #105 adds
relationto theOsmMapthe bake reads and keeps theroute=busrelations of the campus's own shuttle network asBakedRoutes: the line it drives, in runs of member ways that join up, and its stops in route order. Because the extract is a box, a route that leaves it comes back as more than one run rather than as a line with a false jump across the gap.Two things are still open here:
Ride the futurenetwork is, because that is the campus's own service and the one the game has a vehicle for; theÖstgötatrafikenlines and theCampusbussenrun through the extract without belonging to the campus the way the shuttle does. Widening the filter to bake every bus route is a one-line change once there is a reason to want them.Refs #105
Status check: unchanged.
routes_ofstill keeps only the shuttle network (theSHUTTLE_NETWORKfilter), and nothing inliuverse-sceneor the map draws aBakedRouteline yet — the route feeds the shuttle's spawn and call only. Both open halves from the last note stand: drawing the lines, and widening the bake to the city lines if there is a reason to want them.eh don't care