Tag Archives: google maps

How to get location latitude and longitude by address in javascript

<!DOCTYPE html> <html> <head> <title></title> </head> <body> <script type=”text/javascript” src=”http://maps.google.com/maps/api/js?sensor=false”></script&gt; <script type=”text/javascript”> var geocoder = new google.maps.Geocoder(); var address = “נמל תל אביב”; geocoder.geocode( { ‘address’: address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { var latitude = results[0].geometry.location.lat(); var … Continue reading

Posted in כללי | Tagged , | Leave a comment