2

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 2

2

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;
1

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;
2
  • 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.
    – mmd
    Sep 13, 2019 at 12:10
  • Thanks for the hint, I've updated my answer.
    – scai
    Sep 16, 2019 at 7:15

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.