1.0.0 • Published 8 years ago
gouv-geo-api v1.0.0
gouv-geo-api
A Node wrapper for the geo api.
Installation
$ npm install gouv-geo-api
or
$ npm install git://github.com/Raesta/gouv-geo-api.git
Example
var GeoAPI = require('gouv-geo-api');
var Geo = new GeoAPI();
// get all towns with parameters
Geo.getTowns({codePostal: 94000}, function(error, result) {
console.log(error, result);
});
// fetch all departments
Geo.getDepartments(null, function(error, result) {
console.log(error, result);
});
1.0.0
8 years ago