Bake bus route relations as drawn lines #29

Closed
opened 2026-10-17 20:40:34 +00:00 by sermuns · 5 comments
Owner

The data half of the Campusbussen issue: route_master (12) and
public_transport (10) and route (37) relations, none of which the parser
reads.

Worth baking as drawn routes:

  • Campusbussen, Linje 3/6/12/15/20/26/39/75/232/250 -- campus services
  • Vallfarten -- a named campus bus
  • Sverigeleden and Ostgotaleden, both superroute -- the national
    long-distance trail and a 1000 km cycling route, which run straight through the
    campus bbox
  • Cykellanken, a network relation with 4 member routes -- the cycle route
    network the bike paths already partly trace

A BakedRoute { name, kind, points } that draws as a thin ribbon in a distinct
albedo 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

  • #8 needs the relation parser
  • #28 the thing that drives along it
  • #40 Cykellanken is a network relation
  • #50 the other line-work on roads
The data half of the Campusbussen issue: `route_master` (12) and `public_transport` (10) and `route` (37) relations, none of which the parser reads. Worth baking as drawn routes: - **Campusbussen**, Linje 3/6/12/15/20/26/39/75/232/250 -- campus services - **Vallfarten** -- a named campus bus - **Sverigeleden** and **Ostgotaleden**, both `superroute` -- the national long-distance trail and a 1000 km cycling route, which run straight through the campus bbox - **Cykellanken**, a `network` relation with 4 member routes -- the cycle route network the bike paths already partly trace A `BakedRoute { name, kind, points }` that draws as a thin ribbon in a distinct albedo 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** - #8 needs the relation parser - #28 the thing that drives along it - #40 Cykellanken is a network relation - #50 the other line-work on roads
sermuns added this to the Terrain & paths milestone 2026-10-19 22:18:41 +00:00
Author
Owner

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/route relations that actually serve the campus, and keep #8 as the dependency.

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`/`route` relations that actually serve the campus, and keep #8 as the dependency.
Author
Owner

Recontext from the current extract: Campusbussen is a route_master plus two route relations running Norrköping–Linköping, not a loop around Valla. Vallfarten is a stop/platform, not a route relation. The relations that actually serve the campus are the Östgötatrafiken route/route_master lines 3, 6, 12, 15, 20, 26, 39, 75, 232 and 250. Cykellänken is a network relation with a Ryd member route. Sverigeleden and Östgötaleden are long-distance fragments. Scope this to the campus bus lines and Cykellänken, drop the national routes.

Recontext from the current extract: `Campusbussen` is a `route_master` plus two `route` relations running Norrköping–Linköping, not a loop around Valla. `Vallfarten` is a stop/platform, not a route relation. The relations that actually serve the campus are the Östgötatrafiken `route`/`route_master` lines 3, 6, 12, 15, 20, 26, 39, 75, 232 and 250. `Cykellänken` is a `network` relation with a `Ryd` member route. `Sverigeleden` and `Östgötaleden` are long-distance fragments. Scope this to the campus bus lines and Cykellänken, drop the national routes.
Author
Owner

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 relation to the OsmMap the bake reads and keeps the route=bus relations of the campus's own shuttle network as BakedRoutes: 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:

  • The lines are not drawn. The route is baked and the shuttle waits at its first stop facing the way it drives, but nothing puts the route on the ground or on the map. This issue is still the right home for that.
  • The city's bus lines are not baked. Only the Ride the future network is, because that is the campus's own service and the one the game has a vehicle for; the Östgötatrafiken lines and the Campusbussen run 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

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 `relation` to the `OsmMap` the bake reads and keeps the `route=bus` relations of the campus's own shuttle network as `BakedRoute`s: 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: - **The lines are not drawn.** The route is baked and the shuttle waits at its first stop facing the way it drives, but nothing puts the route on the ground or on the map. This issue is still the right home for that. - **The city's bus lines are not baked.** Only the `Ride the future` network is, because that is the campus's own service and the one the game has a vehicle for; the `Östgötatrafiken` lines and the `Campusbussen` run 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
Author
Owner

Status check: unchanged. routes_of still keeps only the shuttle network (the SHUTTLE_NETWORK filter), and nothing in liuverse-scene or the map draws a BakedRoute line 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.

Status check: unchanged. `routes_of` still keeps only the shuttle network (the `SHUTTLE_NETWORK` filter), and nothing in `liuverse-scene` or the map draws a `BakedRoute` line 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.
Author
Owner

eh don't care

eh don't care
Sign in to join this conversation.
No description provided.