Given a list of node ids returned by an OSRM map matching query I am trying to find a list of corresponding way ids:


However in the Overpass API manual I can not even find a similar query, that would use any ids.

Is it even possible to search by a node id with the Overpass API or is it only meant to use tags and bounding boxes?

1 Answer 1


That's actually fairly easy to do:

out geom;

Query: https://overpass-turbo.eu/s/1tPl

You would need to do a bit of post processing on your end to see where each of the nodes ended up. This shouldn't be a big issue, though.

  • Thank you, your query is working perfectly and I was expecting having to do the post-processing to match the way nodes... But what is meant by way(bn) in the query? Is bn some special key word? Commented Apr 15, 2023 at 18:39
  • 1
    way(bn) gives you the parent ways for nodes in the inputset, and it's documented here: wiki.openstreetmap.org/wiki/Overpass_API/…
    – mmd
    Commented Apr 15, 2023 at 21:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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