Geocoder & reverse-geocoder for French territory.
- No API key is required, this package use French gouv opendata API.
- Requests results are geojson formated.
- All package function are async.
- This package can be used with node or react
var geocoder = require('geocoder-fr')
geocoder.geocode('47 rue de l\'arquebuse 08000 charleville').then((addr)=> console.log(addr));
geocoder.reverse(4.724433, 49.770714).then((coords)=> console.log(coords));
geocoder.geocodeBestResult('47 rue de l\'arquebuse 08000 charleville').then((addr)=> console.log(addr));
geocoder.reverseBestResult(4.724433, 49.770714).then((coords)=> console.log(coords));
node test/test.js