coords-to-zip
v1.0.3
Published
Provide a latitude and longitude, get a zip code back
Downloads
5
Maintainers
Readme
Coords To Zip
Pass in a latitude and longitude, get back a zip using Google Geocoding API!
Installing
npm install coords-to-zip
Usage
import coordsToZip from 'coords-to-zip'
const latitude = 123
const longitude = 456
const API_KEY = 'your-google-api-key'
const zip = coordsToZip({ latitude, longitude }, API_KEY)
You can also use without an API key but will be subject to default rate limiting
const zip = coordsToZip({ latitude, longitude });
Versioning
We use SemVer.
License
This project is licensed under the ISC License - see the LICENSE.md file for details