[OSM-talk] Bus Routes

Maarten Deen mdeen at xs4all.nl
Thu Oct 8 05:42:39 UTC 2015


On 2015-10-08 04:12, Clifford Snow wrote:
> I'm trying to add my first bus route. I'm struggling to understand how
> to properly add the relation. The route, like most bus routes, loops
> back over the same ways. So my questions:
> 
> If the bus travels over the same way going two different directions,
> is the way added twice to the relationship, which means ignoring the
> JOSM warning message? Or is the way only entered once with just no
> forward/backward direction?
> 
> Are there any good tutorials to add bus routes?

Have you read http://wiki.openstreetmap.org/wiki/Buses , 
http://wiki.openstreetmap.org/wiki/Public_transport#Buses and 
http://wiki.openstreetmap.org/wiki/Proposed_features/Public_Transport 
(which I think should be featured more officially, not in a proposed 
features page)?

The way I do it (and in no way am I saying it is the only way or the 
correct way to do it, but it seems to hold up fine) is make one relation 
for each seperate destination (usually two: a->b and b->a, sometimes 4: 
a->c->b, a->d->b, b->c->a and b->d->a) and group those relations in a 
master relation. The master relations get grouped in a (master-master) 
relation that holds all buslines for one concession.

Each bus relation has all the ways the bus traverses, and if it 
doublebacks on itself somewhere, I add the way twice. JOSM will 
highlight those ways in red in the relation editor, is that the warning 
you describe?
Then add all the stops in correct order with role "stop". If you order 
the ways and nodes in the relation editor, JOSM will put the stops 
first.
I believe officially you should only add nodes with 
"public_transport=stop_position", but in absence of those I also add 
"highway=bus_stop" (or even tag those with 
"public_transport=stop_position" which is not entirely correct).

As an example, see https://www.openstreetmap.org/relation/398909

Regards,
Maarten



More information about the talk mailing list