2011-09-14 25 views
0

我想知道是否可以使用Bing地圖API進行地理編碼(獲取長期/緯度基於郵政編碼或地址)作爲批處理或至少無需渲染與地圖每個地理編碼。與谷歌地圖API,過程是這樣的地理編碼與Bing地圖 - 沒有VEMap

var geocoder=new google.maps.Geocoder();   
    geocoder.geocode({ 'address': pCodes[counter-1] }, function (results, status) {     
     if (status == google.maps.GeocoderStatus.OK){ 
      var pcode = results[0].address_components[0].long_name; 
      var lat = results[0].geometry.location.lat(); 
      var lon = results[0].geometry.location.lng();     
       // do something with results 
     } 
     else { 
      // error condition  
     } 
    }); 

使用Bing的地圖VEMap類,它看起來像地圖和地理編碼綁定在一起。

回答