npm.io
1.0.3 • Published 8 years ago

coords-to-zip

Licence
ISC
Version
1.0.3
Deps
1
Size
3 kB
Vulns
25
Weekly
0
Stars
1

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

Keywords