Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iloveitaly/zip-code-database
Database of zip codes and their lat/lng, sourced from the census database
https://github.com/iloveitaly/zip-code-database
census-data database zipcode-data
Last synced: 26 days ago
JSON representation
Database of zip codes and their lat/lng, sourced from the census database
- Host: GitHub
- URL: https://github.com/iloveitaly/zip-code-database
- Owner: iloveitaly
- Created: 2023-08-24T02:04:00.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-24T19:41:13.000Z (about 1 year ago)
- Last Synced: 2024-05-01T19:48:14.687Z (7 months ago)
- Topics: census-data, database, zipcode-data
- Language: Shell
- Homepage:
- Size: 1.6 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Zip Code Database Based on Census Data
I wanted a database of all zip codes in the country, with their lat & long. And I wanted it to be easy to import and easy to update.
[I found this gist](https://gist.github.com/abatko/ee7b24db82a6f50cfce02afafa1dfd1e), which was great and did most of the hard work, but I wanted to:
1. Put the scripts in a single location
2. Have the database in dolthub for easy querying, updating, and sharing
3. Be able to easily update the zip code data## Formats
* JSON
* CSV
* CSV with PK ID
* SQL (mysql dialect)## Latest Zipcode Data
Where did this data come from?
*
* "ZIP Code Tabulation Areas"This is documented in the `bin/download-gazetteer` script.
## DoltHub
The data is available on Dolthub here:
## Updating
1. Update download URL in `bin/download-gazetteer
2. Run `bin/download-gazetteer`
3. Profit