A library for accessing the Geocodio geocoder service.
npm install geocodio
var Geocodio = require('geocodio');
var config = {
api_key: 'APIKEY'
}
var geocodio = new Geocodio(config);
var address = 'One Embarcadero Center, 9th Floor, San Francisco, CA 94111';
geocodio.geocode(address, function(err, response){
if (err) throw err;
console.log(response);
});
var addresses = [
'One Embarcadero Center, 9th Floor, San Francisco, CA 94111',
'880 Broadway, New York, NY, 10003'
];
geocodio.geocode(addresses, function(err, response){
if (err) throw err;
console.log(response);
});
var coordinate = '42.583448,-71.005738';
geocodio.reverse(coordinate, function(err, response){
if (err) throw err;
console.log(response);
});
var coordinates = [
'42.583448,-71.005738',
'42.584714,-71.007359'
];
geocodio.reverse(coordinates, function(err, response){
if (err) throw err;
console.log(response);
});
var address = 'One Embarcadero Center, 9th Floor, San Francisco, CA 94111';
geocodio.parse(address, function(err, response){
if (err) throw err;
console.log(response);
});
- 0.0.1: Initial implementation of geocode and parse endpoints
- 0.1.0: Introduces reverse endpoint