Reverse geo location using OpenStreetMap [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-18 10:14:31

问题


I have used OpenStreetMap in my ongoing website. I have developed website using PHP. My requirement is to get ADDRESS based on Geo Location(Latitude & Longitude). Is there any OpenStreetMap API available to get location info based on Lat/Lon?

Thanks, Vishal Parmar


回答1:


There are multiple reverse geocoding APIs available for OpenStreetMap (since the data is open-source, anyone can build one). The two that I would recommend you investigate further are:

  1. Nominatim, run by a member of the OSM community as a volunteer project. Reverse Geocoding documentation
  2. CloudMade Geocoding, run as a commercial service. Reverse Geocoding documentation (at the bottom)

Of the two, I would recommend Nominatim. If you are building a large service and are generating lots of requests, you can even run your own copies of nominatim on your own servers.



来源:https://stackoverflow.com/questions/1961124/reverse-geo-location-using-openstreetmap

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