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


Here is a different approach which I based on the Orphaned nodes example:

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:

node[traffic_calming=bump] -> .allnodes;
node(w)[traffic_calming=bump] -> .waynodes;
(.allnodes; - .waynodes;);
  • 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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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