5 ms·
Yeah. ZIP codes are sets in the abstract-dimensional space of carrier delivery points. I suppose you could think of them as lines, but definitely not polygons.
by mholt 2y ago
Yeah. ZIP codes are sets in the abstract-dimensional space of carrier delivery points. I suppose you could think of them as lines, but definitely not polygons.
- cogman10 2y agoZip codes (in the US) are machine readable numbers a mail sorter can use to send a parcel to the right delivery truck for final delivery. In the US, they represent the hierarchy of postal centers with the most significant digit representing the primary hub for a region and the smallest number the actual post office that will be in charge of delivering the letter (or truck if you do the extended post code). They don't represent geography at all, they represent the organizational structure of USPS. They work by making the address on a letter almost meaningless. For some smaller population zip codes you can practically just put the name and zip code down and achieve delivery.
- Spivak 2y agoRight but this ends up being a good approximation for geography because the reality of logistics is that you end up doing a cute n-ary search of the geography. When you know the regional hub you can say for certain a huge chunk of the US the zip code doesn't represent. And then you keep n-secting. Sometimes the land-mass you get at the end is specific enough for your uses. You're not going to wind up with a situation where zip codes with the same regional marker end up on different coasts.
- mattforrest 2y agoJust use a spatial query. That’s what they are made for.
- makeitdouble 2y ago> You're not going to wind up with a situation where zip codes with the same regional marker end up on different coasts. Couldn't this happen for military or proxy codes (PO boxes or other) ?
- alsodumb 2y agoI agree that they weren't explicitly meant to represent geography, but implicitly they do, right? Are there cases where this is violated? In other words, is it safe to assume that for entity in a zip code is less than x distance away from the closest entity in the same zip code?
- freyfogle 2y agoit is safe to assume nothing. Please see: https://opencagedata.com/guides/how-to-think-about-postcodes-and-geocoding https://opencagedata.com/guides/how-to-think-about-postcodes... I write this as someone who grew up in the ZIP code 09180
- makeitdouble 2y agoIt might be true, but does it help if the x varies from "on a nearby mountain" to "within a street block", and you sometimes have every habitants closer to another zip code than theirs ?
- perrygeo 2y ago> less than x distance away zip codes don't even need to be contiguous. It's a mail delivery route, not a polygon. There are 5 cases where the assumption is violated: - Non-contiguous areas - Zip codes that are a single point (some big companies get their own zip with a single mailbox, e.g. GE in Schenectady, NY is zip 12345) - Zip codes that are a single line (highway-based delivery routes) - Overlapping boundaries (since mail routes are linear, choosing a polygon representation is arbitrary and often not unique in space) - Residents of some zip codes are not stationary (e.g. houseboats) In short, asking questions about the area of a zip code is a category error - zip codes do not have a uniform representation in space. And we should be highly skeptical of any geospatial analysis that assumes polygons.
- maxerickson 2y agoThey do provide a location with whatever error bars on it. What they do not have is any sort of spatial consistency, they are a convenience for mail sorting. So if you start analyzing patterns across zip codes, you are pulling in information that is likely useless for or harmful to answering your question.
- mywittyname 2y ago> For some smaller population zip codes you can practically just put the name and zip code down and achieve delivery. A 5+4 formatted ZIP code maps to just a handful of addresses. In cities with larger populations, the +4 could map to a single building, and in more sparely populated place, it might include houses on a handful of roads. For smaller datasets, ZIP+4 might as well be a unique household identifier. I just checked a 10 million address database and 60% of entries had a unique ZIP+4, so one other bit of PII would be enough to be a 99.99% unique identifier per person. With a geo-coded ZIP+4 database, you could locate people with a precision that's proportional to the population density of their region.
- mattforrest 2y agoYeah but we have that already in the census hierarchy. Plus you have to pay to access Zip+4 geospatial data and it changes sometime as frequently as quarterly
- mattforrest 2y agoWell put