Created
July 16, 2011 16:48
-
-
Save wyattdanger/1086532 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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