geocodeapi
v1.0.1
Published
A Simple wrapper for google's geocode API
Downloads
3
Readme
geocodeAPI
Simple wrapper for the Google geocode API
Install
npm install --save geocodeapi
Usage
import geolocation from 'geocodeapi'
geolocation.setApiKey('GOOGLE_API_KEY')
geolocation.getAddress({longitude: 123.1231, latitude: 2334.43243}).then((address) => {
console.log(address)
})
OR
let address = await geolocation.getAddress({longitude: 123.1231, latitude: 2334.43243})