Skip to content

Repository files navigation

simple-reverse-geocoder

npm versionnpm downloadsBuild StatusCoverage StatusMaintainabilitydependency StatusdevDependency Status

Get address from a point

Installation

npm i -S simple-reverse-geocoder

Use

Try on Tonic

constrg=require('simple-reverse-geocoder')constloc={type: 'Point',coordinates: [-70.5171743,-33.3608387]}rg.getAddress(loc).then(console.log);// 'Del Candil 665-701, Lo Barnechea'// Add redis cacherg.setCache('redis://localhost:6379/0')constloc={type: 'Point',coordinates: [-70.5171743,-33.3608387]}rg.getAddress(loc).then(console.log);// 'Del Candil 665-701, Lo Barnechea'// Add google apikeyconstloc={type: 'Point',coordinates: [-70.5171743,-33.3608387]}constapiKey='myApiKey'rg.getAddress(loc,apiKey).then(console.log);// 'Del Candil 665-701, Lo Barnechea'

License

MIT

About

Get address from a point

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages