buddyeorl / zipcode-city-distance-api

Simple,Free, Opensource API for all US Zip Codes and Cities, get the distance between Zip Codes or Cities, get relevant information such as coordinates, cities within Zip Codes, Zip Codes covered by cities, states etc, get all the Zip Codes within certain radius and more.
https://zipcodedistance.herokuapp.com/api/getDistance/zipcode?zipcode1=98006&zipcode2=33014&unit=M
MIT License
7 stars 3 forks source link

Airport Zip Codes Missing #1

Open maverick915 opened 2 years ago

maverick915 commented 2 years ago

Airport Zip Codes don't show up. Examples I've found are: 20041 30320 60666 30320 75261 55111 21240 20229 55605 96913 15231

Is there any way to get an updated list of zip codes?

buddyeorl commented 2 years ago

I haven't had time to update this package, but will take a look at it this weekend or so, if you need an updated list, here is the US Census site including a list of files with updated data. https://www.census.gov/geographies/reference-files/time-series/geo/relationship-files.html, alternatively you could PR any updates and I'll gladly accept them.

maverick915 commented 2 years ago

It looks like the ZCTA's that are used by the US census are slightly different than actual Zip Codes and only include locations where people live (which makes sense since why would they do a census of Airports where people don't actually have a residence).

So other places like Airports won't be included in the ZCTA data. I did find another datasource at http://download.geonames.org/export/zip/ which has data focused more on actual zip codes. Of course it's in a different format and would require more changes.

maverick915 commented 2 years ago

Also the latest ZCTA data is available here: https://www2.census.gov/geo/docs/maps-data/data/gazetteer/2022_Gazetteer/