Re:The New York Times Releases Its Dataset of U.S. Confirmed...
by pj_mukh on Friday March 27, 2020 @06:05PM
(#22707341)
Interestinggg. So, as mentioned by another user, I'm better off mapping Lat/Lon to FIPS. Found a census endpoint that does just that[1]!
Now for an address, I can geocode it up.
Re:The New York Times Releases Its Dataset of U.S. Confirmed...
by danso on Friday March 27, 2020 @06:19PM
(#22707432)
You can do better than geocoding: use one of the county-level shapefiles from the TopoJSON project: https://github.com/topojson/us-atlas
At the very least, if you do just need point-level info, you can get the centroids of the county shapes.
To directly answer your question, it is not uncommon for zipcodes to span county boundaries. And there are even a handful that span more than one state: https://gis.stackexchange.com/questions/53918/determining-wh...
To the broader question of why zip codes can be lacking for geospatial analysis, here's a real-world situation:
https://theconversation.com/how-zip-codes-nearly-masked-the-...
Here's a more broader essay from CartoDB: https://carto.com/blog/zip-codes-spatial-analysis/