I would like to find all objects with an amenity tag within the radius of a location given by coordinates. E.g. I have a location and want to find what restaurants, bars, cafes, cinemas, etc. are around. For each found object I need its name and its address. As far as I have found out I can query Nominatim for special phrases and specific amenities but I'm not sure how to query for all amenities. Is this possible with Nominatim and how is it done? Or should I rather use Overpass or something different for such a scenario? Thanks for your help! asked 10 Dec '16, 10:36 acgjheeb |
As @SK53 suggested use 'around' filter with overpass api for all amenities. Here is the example:
With get method same request to overpass API:
answered 13 Dec '16, 04:45 Gagan |
Definitely use Overpass which has an around operator. This is an example of such a query: http://overpass-turbo.eu/s/kzx. Note that not every POI will have address information in OSM: it really depends on how much detail local mappers have entered into OSM. answered 10 Dec '16, 14:20 SK53 ♦ 1
sometimes the address information is there, but on the building, not on the POI itself. Overpass cannot solve this I think
(10 Dec '16, 15:10)
escada
1
Regarding addresses: Maybe an
(10 Dec '16, 15:40)
scai ♦
No, looks like
(10 Dec '16, 22:20)
scai ♦
Thanks a lot! I will dive into Overpass and try it out. If the address is not always there, is there at least a reliable way to determine the POIs city?
(11 Dec '16, 19:49)
acgjheeb
I guess separate reverse geocoding of the results with Nominatim won't be an option as it would produce a lot of traffic for Nominatim...
(11 Dec '16, 19:51)
acgjheeb
|