1
我使用geocoder將地址轉換爲Lang & Lng。 當我發送地址白色字母或特殊字符(ó,é,í) 地理編碼器不響應確定。 我該如何解決這個問題?[google-maps-api-3] [Geocoder]特殊字符:Ñ
我的代碼:
var Calle="Peña";//address name
var Altura=3000;//number of the house
var addr=Calle+" "+Altura + "Mar del Plata, Buenos Aires, Argentina";
var geocoder = new google.maps.Geocoder();
geocoder.geocode({address: addr, region: 'ar'}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var GeoPos=results[0].geometry.location;
}
});