Skip to content

iloveitaly/zip-code-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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, 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?

This is documented in the bin/download-gazetteer script.

DoltHub

The data is available on Dolthub here:

https://www.dolthub.com/repositories/iloveitaly/zip_codes_with_lat_and_lng

Updating

  1. Update download URL in `bin/download-gazetteer
  2. Run bin/download-gazetteer
  3. Profit

About

Database of zip codes and their lat/lng, sourced from the census database

Topics

Resources

Stars

Watchers

Forks

Sponsor this project