/us-zipcode-to-geojson

GeoJSON files for all US Zip Codes

Primary LanguagePythonMIT LicenseMIT

us-zipcode-to-geojson

GeoJSON files for all US Zip Codes

Data Sources

I got the data from the US Census Zip Code Tabulation Areas page.

Since the data does not have any city, state, or centroid information, I added in data from the Geonames.org free postal code data page.

Getting the source data

I created a shell script that can be used to pull down all the data:

$ ./get_source_data.sh

Since I needed all the U.S. territories, I had to pull those down and concatenate them to the US.txt file.

Running the script

Run the process.py command:

$ python process.py

The resulting data will be written into the data directory.