2.0.1 • Published 6 years ago

simple-reverse-geocoder v2.0.1

Weekly downloads
18
License
MIT
Repository
github
Last release
6 years ago

simple-reverse-geocoder

npm version npm downloads Build Status Coverage Status Maintainability dependency Status devDependency Status

Get address from a point

Installation

npm i -S simple-reverse-geocoder

Use

Try on Tonic

const rg = require('simple-reverse-geocoder')

const loc = { type: 'Point', coordinates: [-70.5171743, -33.3608387] }
rg.getAddress(loc).then(console.log); // 'Del Candil 665-701, Lo Barnechea'

// Add redis cache
rg.setCache('redis://localhost:6379/0')
const loc = { type: 'Point', coordinates: [-70.5171743, -33.3608387] }
rg.getAddress(loc).then(console.log); // 'Del Candil 665-701, Lo Barnechea'

// Add google apikey
const loc = { type: 'Point', coordinates: [-70.5171743, -33.3608387] }
const apiKey = 'myApiKey'
rg.getAddress(loc, apiKey).then(console.log); // 'Del Candil 665-701, Lo Barnechea'

License

MIT

2.0.1

6 years ago

2.0.0

6 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago