Skip to content

Instantly share code, notes, and snippets.

@chyld
Created April 29, 2014 16:29
Show Gist options
  • Save chyld/11405386 to your computer and use it in GitHub Desktop.
Save chyld/11405386 to your computer and use it in GitHub Desktop.
var geocoder = new google.maps.Geocoder();
geocoder.geocode({address: name}, function(results, status){
var location = {};
location.name = results[0].formatted_address;
location.coordinates = results[0].geometry.location;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment