如何从BING map api获得经度和纬度的地址(城市,州,国家,邮政编码)?
你可以使用Bing Maps REST Services
在您看来,你有这个页面的信息:Find a Location by Point
一个例子是:http://dev.virtualearth.net/REST/v1/Locations/47.64054,-122.12934?o=xml&key=BingMapsKey
使用jquery是这样的:
$.ajax({ url: 'http://dev.virtualearth.net/REST/v1/Locations/' + latitude + ',' + longitude, data: { o: 'xml', key: BingMapsKey }, jsonp: "jsonp", success: function (data) { //Process the result }, error: function(){ //Process the error } });
Shaulin - 你正试图做"reverse geocoding" . 你有没有尝试使用bing api描述in the Bing Map Geocode Service API docs
希望这有帮助(如果没有,也许你可以更具体地回答这个问题) . 至少,搜索“反向地理编码 Map ”将会有所帮助 .
好运,丹尼斯
2 回答
你可以使用Bing Maps REST Services
在您看来,你有这个页面的信息:Find a Location by Point
一个例子是:http://dev.virtualearth.net/REST/v1/Locations/47.64054,-122.12934?o=xml&key=BingMapsKey
使用jquery是这样的:
Shaulin - 你正试图做"reverse geocoding" . 你有没有尝试使用bing api描述in the Bing Map Geocode Service API docs
希望这有帮助(如果没有,也许你可以更具体地回答这个问题) . 至少,搜索“反向地理编码 Map ”将会有所帮助 .
好运,丹尼斯