News for hackers. Stuff that matters.
Re:The New York Times Releases Its Dataset of U.S. Confirmed... by danso on Friday March 27, 2020 @04:38PM (#22706646)
It's a good question, and unfortunately, the answer is that zipcode does not map well to other kinds of geographical regions, or to day-to-day-reality for that matter.

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/

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.

https://geo.fcc.gov/api/census/

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.