[GIS] A way to search street intersection on openstreetmap

openstreetmapoverpass-api

I need to find intersection by searching name of 2 streets; I found overpass API to query on osm data; the way I found was to find a node near a way; but the problem is all nodes don't have name and in most cases the answer isn't accurate, is there a better way?

Best Answer

You could use the following approach:

[bbox:{{bbox}}];
way[highway][name="6th Avenue"];node(w)->.n1;
way[highway][name="West 23rd Street"];node(w)->.n2;
node.n1.n2;
out meta;

Try it on overpass turbo: http://overpass-turbo.eu/s/6Pb

Edit: node.n1.n2; calculates the intersection of input set .n1 and .n2. Please check the documentation for details.