Ben bir javascript kodu var ve bir kullanıcı tarafından girilen bir adresi enlem / boylam bulmak istiyorum.
Javascript kodu aşağıdaki kullanıyorum:
<script type=text/javascript src=http://maps.google.com/maps/api/js?sensor=false></script>
<script type=text/javascript>
var address = document.getElementById(address).value;
var geocoder = new google.maps.Geocoder();
geocoder.geocode( { 'address': address}, function(results, status) {
var location = results[0].geometry.location;
alert(location.lat() + '' + location.lng());
});
</script>
Ama yukarıdaki kod çalışmıyor. Herkes sorunun ne olabileceğini önerebilir. Teşekkürler













