Skip to content

Instantly share code, notes, and snippets.

@davidjmemmett
Created March 21, 2011 08:11
Show Gist options
  • Save davidjmemmett/879170 to your computer and use it in GitHub Desktop.
Save davidjmemmett/879170 to your computer and use it in GitHub Desktop.
<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script src="geocoder.test.js"></script>
var service = new google.maps.Geocoder(),
request = {
address: 'House of Prime'
};
service.geocode(request, function(results, status) {
alert(results[0].formatted_address + "\n\n" + results[0].geometry.location.toUrlValue());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment