如果我有Leaflet的经纬度,我怎样才能得到大概的地址?
How can I get the approximate address if I have the latitude and longitude with Leaflet?
我有一个发送到服务器纬度和经度的设备,但我想创建一个方法,可以给我一个包含附近地址(道路、街道、地区...)的字符串
我在 http://leafletjs.com/plugins.html 上搜索了插件,但似乎无法确定哪个插件适合我的问题。
基本上我要处理的坐标。
谢谢大家!
Leaflet 没有开箱即用的反向地理搜索功能。我会看看这个 Leaflet 插件 here. Or check out this geocoder that uses Bing (you'll need to register a key). On the leaflet plugin page there is another that seems like a good fit, 'Leaflet Control Geocoder.'
我有一个发送到服务器纬度和经度的设备,但我想创建一个方法,可以给我一个包含附近地址(道路、街道、地区...)的字符串 我在 http://leafletjs.com/plugins.html 上搜索了插件,但似乎无法确定哪个插件适合我的问题。 基本上我要处理的坐标。
谢谢大家!
Leaflet 没有开箱即用的反向地理搜索功能。我会看看这个 Leaflet 插件 here. Or check out this geocoder that uses Bing (you'll need to register a key). On the leaflet plugin page there is another that seems like a good fit, 'Leaflet Control Geocoder.'