1.0.0 • Published 8 years ago

gouv-geo-api v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

gouv-geo-api

NPM

npm version

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);
});