Created
January 21, 2012 02:16
-
-
Save key/1650808 to your computer and use it in GitHub Desktop.
How to use Google Maps API geocoder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var address = "Shinagawa station" | |
var geocoder = new google.maps.Geocoder(); | |
geocoder.geocode({'address': address}, function (results, status) { | |
if (status == google.maps.GeocoderStatus.OK) { | |
var location = results[0].geometry.location; | |
} else { | |
alert("Unable to find address: " + status); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment