https://github.com/danesparza/js-zipgeo
Javascript library that takes a US zipcode and gives you latitude and longitude
https://github.com/danesparza/js-zipgeo
coordinates javascript javascript-library latitude longitude zipcode
Last synced: about 1 year ago
JSON representation
Javascript library that takes a US zipcode and gives you latitude and longitude
- Host: GitHub
- URL: https://github.com/danesparza/js-zipgeo
- Owner: danesparza
- License: mit
- Created: 2021-09-20T13:56:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-21T11:10:38.000Z (over 4 years ago)
- Last Synced: 2025-01-24T07:11:39.935Z (over 1 year ago)
- Topics: coordinates, javascript, javascript-library, latitude, longitude, zipcode
- Language: JavaScript
- Homepage:
- Size: 755 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# js-zipgeo
Javascript map for US zipcode -> lat,long lookups. Nothing fancy, just a [big javascript map](https://raw.githubusercontent.com/danesparza/js-zipgeo/main/ziptogeo.js) and a utility function. It's just under 2MB -- so it's big for javascript, but not unmanageable.
Keep in mind that this will add about 10 minutes to your webpack build time if you include this in your project.
Data from https://gist.github.com/erichurst/7882666
## Example:
``` javascript
import ZipToGeo from '../utility/ziptogeo';
let lat, long;
({lat, long} = ZipToGeo("30019"));
// lat should be 33.97561
// long should be -83.883747
```