Skip to content

Instantly share code, notes, and snippets.

@wyattdanger
Created July 16, 2011 16:48
Show Gist options
  • Save wyattdanger/1086532 to your computer and use it in GitHub Desktop.
Save wyattdanger/1086532 to your computer and use it in GitHub Desktop.
var geocoder = require('geocoder');
// Geocoding
geocoder.geocode("Atlanta, GA", function ( err, data ) {
// do stuff with data
});
// Reverse Geocoding
geocoder.reverseGeocode( 33.7489, -84.3789, function ( err, data ) {
// do stuff with data
});
// Setting sensor to true
geocoder.reverseGeocode( 33.7489, -84.3789, function ( err, data ) {
// do stuff with data
}, { sensor: true });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment