Mapping bus route in Ayacucho - Perú

Posted by karitotp on 10 January 2017 in English (English)

As part of the goal of making Ayacucho the best-mapped city in Latin America, the OSM community of Ayacucho, along with the Mapbox Perú team, added 20 bus routes relations to OpenStreetMap of 22 public transport services that there are in the city.

bus1 Bus routes added in Ayacucho

During the mapping, 41 public_transport = stop_position and 15public_transport = platform has been added/updated in downtown.

public Stop_positions and platforms of public transport added in Ayacucho

Our local knowledge was fundamental to this mapping, however, many of the added relations are still incomplete because we do not know the complete route of some buses, such routes are being completed by using tools such as Osmtracker.

Comment from Polyglot on 20 January 2017 at 11:29


This is wonderful! During the previous Google Summer of Code, we created a plugin to help with mapping public transport. So I opened JOSM, drew a bounding box around Ayacucho and downloaded all the data using Download from Overpass API with the following query:

[out:xml][timeout:25][bbox:{{bbox}}]; ( node["public_transport"="stop_position"]; node["public_transport"="platform"]; relation["route"="bus"]; ); (._;>;); out meta;

Then I added public_transport:version=2 to all the bus route relations.

With the PT_Assistant plugin installed, validation will produce a result showing all the 'issues'. Most relations were upside down, meaning that many times a problem with going against the flow of oneway traffic was reported. I fixed all those.

There was 1 route where both directions were in 1 route relation, so I split that one.

I hope I didn't introduce any errors, local survey will, of course always be necessary. I think the tool may help you save some time and if you use it regularly, you know all the relations are always continuous from start to end. Once you start adding platform nodes, you will also be able to verify that the sequence order makes sense (for the relation shown in the active foreground relation editor window).


Comment from Polyglot on 20 January 2017 at 21:09

I added the platforms to the routes. There is a new rendering of Public Transport routes based on Overpass API, so always up to date:



Comment from wille on 23 January 2017 at 00:12

Excelent, Karito!!!

Comment from karitotp on 26 January 2017 at 02:58

Hey Polyglot!!

Thank you for reviewing and improving our editions and for explain about PT_Assistant plugin, thats great!. We are going to continue mapping our city, if you have more suggestions, please lets us know.



Login to leave a comment