Skip to content

Instantly share code, notes, and snippets.

@honza
Created August 3, 2011 13:28
Show Gist options
  • Select an option

  • Save honza/1122625 to your computer and use it in GitHub Desktop.

Select an option

Save honza/1122625 to your computer and use it in GitHub Desktop.
Google Directions API inconsistencies
// When run multiple times, the following logs `false` 50% of the time and `true` 50% of the time
var geocoder = new google.maps.Geocoder();
geocoder.geocode({'address': '211 Horseshoe Lake Drive, Halifax, Canada'}, function(results, status) {
console.log(status == google.maps.GeocoderStatus.OK);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment