使用OpenStreetMap反转地理位置 [英] Reverse geo location using OpenStreetMap

查看:171
本文介绍了使用OpenStreetMap反转地理位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在正在进行的网站中使用过OpenStreetMap. 我已经使用PHP开发了网站. 我的要求是获取基于地理位置(纬度和经度)的地址. 是否有任何OpenStreetMap API可用于获取基于纬度/经度的位置信息?

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?

谢谢, 维沙尔·帕玛(Vishal Parmar)

Thanks, Vishal Parmar

推荐答案

OpenStreetMap有多种反向地理编码API(由于数据是开源的,因此任何人都可以构建).我建议您进一步研究的两个是:

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,由OSM社区的成员作为志愿者项目运行. 反向地理编码文档
  2. CloudMade地理编码,作为商业服务运行. 反向地理编码文档(在底部)
  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)

在这两者中,我建议诺米那顿.如果您要构建大型服务并生成大量请求,则甚至可以在自己的服务器上运行自己的nominatim副本.

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.

这篇关于使用OpenStreetMap反转地理位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆