Geocoder & reverse-geocoder for French territory. (Fork from geocoder-fr)
This version correct the original geocoder-fr by adding a true latitude & longitude result on geocode() method.
To avoid a break on the original behavior of geocoder-fr, i decide to create this fork
- 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-french')
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
Thanks to Julien G for his great job on geocoder-fr