I have a node ID(Say Z) which will be in the road/way. How do I find the node IDs around this point Z in certain radius.

  • With an API or a local OSM file or a database?
    – scai
    Commented Dec 19, 2016 at 11:36
  • I have a OSM file for a specific state as well. But how do I find the node IDs within certain radius using the information from OSM file?
    – Sathish
    Commented Dec 19, 2016 at 15:45
  • By going through all nodes of the file and comparing their location. Alternatively better import the file into a spatial database.
    – scai
    Commented Dec 20, 2016 at 11:08

1 Answer 1


When using the famous overpass-api, you can have a look at the "around" parameter.

See https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL for "around".

  • I tried to look at overpass API. It expects me to give me a tag so that I can look for specific information. (like bus_stop). I am looking for all the OSM ids in the road within a radius. I could not find a way to do it.
    – Sathish
    Commented Dec 21, 2016 at 18:45

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.