How can I query OSM nodes that are not member of ways? I want to get the nodes which tagged with (traffic_calming=bump) and not member of any ways.
2 Answers
Here is a different approach which I based on the Orphaned nodes example:
[bbox:{{bbox}}];
rel; > -> .r;
way; > -> .w;
(( node["traffic_calming=bump"]; - node.r; ); - node.w; );
out meta;
Querying for nodes which are not part of a way is covered by the city limit street signs example:
[bbox:{{bbox}}];
node[traffic_calming=bump] -> .allnodes;
way[highway](bn.allnodes);
node(w)[traffic_calming=bump] -> .waynodes;
(.allnodes; - .waynodes;);
out;
-
node(around:15)[traffic_calming=bump]
is not needed here, there's no requirement to find those traffic_calming nodes within 15m of existing traffic_calming nodes.– mmdSep 13, 2019 at 12:10 -