2

I've already knew that I can find all intersections on map by Code.

My question is that I've knew one intersection and how I can get the information like lat and lon on others connecting intersections .

I've already get lat and lon of intersection A . How to get the information on others connecting intersections in the following picture?

Example.

  • 1
    BTW: Your query is not suitable to find intersections for arbitrary locations, see this example overpass-turbo.eu/s/jA0 - one street may be broken into multiple OSM ways, and intersections of those OSM ways is what your query returns. Unfortunately, there's no other way of doing it. You just need to be aware of it, that the query has some shortcomings. – mmd Oct 24 '16 at 12:15
1

This is not possible with your current query since it only returns nodes. To determine other connected intersections you will need nodes and ways.

Downloading ways with the highway key and all of their nodes can be done with a really simple query:

way[highway];
(._;>;);
out;

See the example at overpass turbo.

Afterwards you have to compute a routing graph. There is a step-by-step explanation for building a routing graph from OSM data. For a general overview take a look at routing in the OSM wiki.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.