I am using the Overpass-API to access OSM data. I want to retrieve all relations or ways (don't really know which of them, since I'm very new to this...) containing a given coordinate. I thought of using the way(around:10, lat, lon) selector of the API but this seems to only give ways where one defining node is inside a circle with radius 10 around the position.

Is there any way to come around this?


1 Answer 1


Maybe you can find the solution via the is_in parameter of overpass-api?

see these postings:

  • yeah, I saw the is_in parameter for overpass querys, however this operater only works with areas as input sets. areas on the other hand are only defined for postal codes, administrative divisions, etc. I sadly cannot use is_in(lon,lat)way Commented Jun 9, 2016 at 7:39
  • 1
    @RenéMartin: you need to use way(pivot) to get back the original way. The question would also be, what exactly you're trying to do?
    – mmd
    Commented Jun 10, 2016 at 16:26
  • Yeah you are right, I could get the way of the surrounding administrative areas but what I'm looking for are surrounding ways like park borders, coastlines, riversides, forests, etc. Commented Jun 12, 2016 at 9:12

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.