Bu yüzden bir proje üzerinde google haritalar ile çalışıyorum Ben bir yer isminden lat & lng almak gerekir (şehir değil, bir şehirde caffee ya da bir şehirde alışveriş merkezi) . Bu yüzden bu kodGoogle harita geocode yerler
var geocoder = new google.maps.Geocoder();
geocoder.geocode({ 'address': 'SCC, Sarajevo'}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
alert("location : " + results[0].geometry.location.lat() + " " +results[0].geometry.location.lng());
$("#pretragaBarInput").val("location : " + results[0].geometry.location.lat() + " " +results[0].geometry.location.lng());
} else {
alert("Something got wrong " + status);
}
});
gitti (SCC Saraybosna'da bir alışveriş merkezi olan) Ama kesin lat yerden & LNG ama şehir merkezine oldukça lat & LNG alamadım. Diğer yerler ile denedim ama şehir merkezine
P.s işaret eden aynı koords var. Bu, onun çalışıp çalışmadığını görmek için bir hata ayıklama komut dosyasıdır ...