How to get point of interest near my point using overpass-api?

安稳与你 提交于 2019-12-12 10:56:52

问题


I am using Overpass API.

I have an issue to find some points of interest (cafes, hospitals, schools) near (around in 100-200 miles) my point. I have only latitude and longitude.

Overpass API gives opportunity to get POIs using your place name. But I don't have it. I have only coordinates.

How can I do that ?


回答1:


Use the around statement!

<query type="node">
  <around lat="..." lon="..." radius="..."/>
  <has-kv k="amenity" v="cafe" />
</query>
<print />

Try this example on overpass turbo!



来源:https://stackoverflow.com/questions/16442663/how-to-get-point-of-interest-near-my-point-using-overpass-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!