Route Relation
You'll map one bus, tram or waymarked hiking route end to end, with every stop in order, by riding or walking it with a GPS trace running.
About
Lines on the map are easy. Relations are what turn them into a route: a bus route is a relation listing every stop in order and every bit of road in order, one per direction, under a route_master for the line, and a broken one shows as a gap on every transit map. The public transport scheme (PTv2) has rules about stop positions and platforms that take a week to get into your head, and it's the first properly fiddly thing in OpenStreetMap. Your ride and your trace are the source; operator maps and timetables are copyrighted unless they're published under an open licence, so use your eyes. The bar is a route you rode or walked, mapped or repaired completely in both directions, that a relation checker shows as continuous.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 6
- Takes
- A month
- Skill level
- Advanced (years of practice)
- Cost
- Free
- Supplies
- Nothing special
- Where
- Around town
- Other people
- On your own
Requirements
-
1
Find a route whose relation is missing or broken and see what a checker says about it. The OSM Relation Analyzer and PTNA both show gaps in a route relation. Pick one you can ride or walk end to end in a day. If there are no buses where you live, a waymarked hiking or cycling trail with signs works the same way. Take a screenshot of the broken relation or the empty space where it should be. Photo
-
2
Ride or walk the whole route with a trace running and note every stop in order. Sit on the side with the stops and write down each stop name, whether it has a shelter, and which side of the road it's on. On a trail, note each signpost and the way it points. Take a photo of your stop list with the trace on your phone. Photo
-
3
Map or fix the stops: a stop position on the road and a platform at the kerb. Read the wiki page for public_transport before this one. Each stop gets a public_transport=stop_position node on the road and a public_transport=platform with highway=bus_stop at the kerb, named the way the sign says. Add shelter, bench and bin where they exist. Take a screenshot of a stop pair in the editor. Photo
-
4
Build the relation for one direction in JOSM's relation editor with no gaps. Stops first, in order, then the ways in order. The editor's sort button and the little continuity bar on the right show you the gaps. The classic error is a one-way road that the bus uses in the wrong direction because the road is drawn backwards. Take a screenshot of the relation editor showing a continuous route. Photo
-
5
Build the return direction and the route_master, then get the checker to show it green. The return direction is a second relation, not the first one reversed, because the stops and sometimes the roads differ. The route_master holds both and the line's name, ref, operator and network. Take a screenshot of the Relation Analyzer or PTNA showing both directions continuous. Photo
-
6
Check it on a transit map and ride one stretch again to confirm it. The Transport Map layer on openstreetmap.org draws routes from relations and picks up changes within a few days. Ride or walk one stretch again and confirm the stops match what the map now says. Take a screenshot of your route rendered, and tell us which rule of the scheme you got wrong first. Photo