2

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

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 – René Martin Jun 9 '16 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 Jun 10 '16 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. – René Martin Jun 12 '16 at 9:12

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.