A way to find all footway and street interesections in openstreetmap

by Krzysztof KrasoĊ„   Last Updated July 17, 2017 10:22 AM

I would like to find all intersections of streets with highway=footway, that don't have highway=crossing tag added.

Right now I have a query:

[bbox:{{bbox}}];
way[highway]["highway"~"primary|secondary|tertiary|residential|unclassified|primary_link|secondary_link|tertiary_link|service"];node(w)->.n1;
way["highway"="footway"];node(w)->.n2;
node.n1.n2["highway"!="crossing"];
out meta;

Which works fine until it finds nodes that are not on intersections: * street changing to footway (street ends and a footway starts just after it) * footway joining with street (footway ends on a street, so no crossing)

Basically I would need to have a way to find an intersection of two ways, such that both of the ways have nodes before and after the intersection - they should not end on the intersecting node.

Is there a way to exclude the above two cases somehow using overpass turbo? Or should I do post processing?



Related Questions


getting .OSM for the forward lanes in germany

Updated June 12, 2015 22:09 PM



Overpass query grouping results by tag value

Updated April 04, 2017 09:22 AM

Openstreemap Overpass API to get Couture lines

Updated July 02, 2017 21:22 PM