Reputation: 334
Currently I am working on a project and I want to create a graph for certain city where the nodes are the bus stops and the edges are the routes between the bus stops. I am able to get the whole city bus stops using openstreetmap but I don't know How to get the set of bus stops which directly connected to a certain bus stops. Any Ideas or suggestions?
Upvotes: 2
Views: 1011
Reputation: 778
Here is an example following scai's answer, using Overpass API. It assumes that the new public transport scheme used for the routes and stops data.
Upvotes: 1
Reputation: 21509
Such connections are represented in OSM by relations, particularly route relations. Currently there are two different public transport schemes in use. This could make a difference for you, depending on the exact information you are going to extract. The version might be indicated by the public_transport:version key, but doesn't necessarily have to.
Here are some examples:
Upvotes: 2