2012-01-24 42 views
0

有沒有人使用MapQuest作爲地理編碼服務?如何使用PHP對MapQuest geocoder進行批量地理編碼?

我需要的是簡單的函數,你傳遞的地址,它得到的lat和lng裏面作爲結果,只是他們沒有其他的需要。

例如谷歌地圖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(); 
.. 

應該是什麼等同於使用地圖的任務?

謝謝。

回答

相關問題