是否有人使用MapQuest作为地理编码服务?
我需要的是简单的功能,你传递地址,它在结果中得到lat和lng,只是它们没有其他需要。
例如google maps api使用这个:
geocoder = new google.maps.Geocoder();
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var value1 = results[0].geometry.location.lat();
var value2 = results[0].geometry.location.lng();
..
什么应该等同于使用地图任务?
谢谢。
答案 0 :(得分:1)
MapQuest Geocoding Web Service以类似的方式工作。基本上,您需要编写一个脚本,将地址传递给Web服务,然后解析响应。您可以遍历响应并从中获取经度和纬度。
MapQuest在demo page网站上有forums和MapQuest Developer Network。
希望这有帮助!