USPS now offers official ZIP Code boundary polygons

693 points - yesterday at 7:58 PM

Source

Comments

SwellJoe yesterday at 9:40 PM
Dang, the prices are crazy. $10k for the lowest tier? I expect federal data to be free. Most federal data related to stuff like regulation (e.g. FCC spectrum use coverage maps), maps for federally-managed lands, etc. is free. And, it should be free. It's a core part of accountability and transparency. Historically there was a copying cost (having a human print physical copies on paper or CD/DVD/tape), which is understandable, but now that the incremental cost of each new copy approaches $0, that's what it should cost users of the data.
showerst yesterday at 8:30 PM
I thought these were going to be free and got so excited.

FWIW if you're willing to deal with some 'fuzziness' and the occasional missing zip code that's commercial only, the ZCTA shapefiles are free and are close enough for many purposes: https://www.census.gov/programs-surveys/geography/guidance/g...

xp84 yesterday at 9:06 PM
This is interesting. For a long time it was pointed out that ZIP codes, unlike say, city or state boundaries, were not properly representable as polygons, since they don't divide up acreage into zones, but rather label postal delivery routes. Suppose I build a new neighborhood way out in the middle of nowhere. The "polygon" concept suggests that we could look and see what polygon I'm in, and that will determine what post office delivers my mail. But in reality, if there was no route to that area already, they could decide to make it part of any one of the surrounding routes.

I suppose though, as long as you let the polygons map has uncontained areas, where no routes currently exist, it's a doable task to draw polygons around the limits of every route network, as long as you don't mind that they may have lots of weird ragged edges.

apwheele today at 3:13 PM
Not sure how much I want to let folks know, but you can scrape the routes from https://eddm.usps.com/eddm/select-routes.htm (backend you can just check out the ESRI server it hits in DevTools, it is just an open endpoint).

So those are not "polygons", but the actual polyline routes. But if you get that far you can probably figure out the GIS operation you want to do for your use case.

Those are the more specific routes as well (so more specific than the census ZCTA), although ZCTA should be good enough for most folks anyway to be honest.

johnnyo yesterday at 8:40 PM
If this is govt-owned data, shouldn’t it be available with a FOIA request or similar?

Can someone with expertise in govt data rights explain? Do any other US govt agencies sell data to the private sector?

wills_forward today at 12:47 AM
Great chance for me to hawk a silly vanity project: https://www.rickwills.com/lab/zip

Just a visualization of zip codes. Start typing a number and it highlights the zip codes on a map. Mildly interesting at best, maybe someone will like it.

grzaks yesterday at 9:11 PM
Using ZIP codes to define geographic regions is always a bad idea. A ZIP code is an address attribute, not a geographic boundary. Some ZIP codes are assigned to PO boxes or parcel lockers, while entire cities may share a single ZIP code. You can even have streets stretching 30 km across a city, all under the same ZIP code.
foxfired yesterday at 8:26 PM
I feel like this should be public. I wonder what would be the repercussion of a gofundme to buy it once and make it publicly available. There aren't many downsides of updating every couple years.
legitster yesterday at 9:27 PM
Some important context - Zip codes were not established as geographic markets. A "Zip Code" is collection of routes USPS uses - so it's whole goal was to get the right package on the right truck.

The "Zip+4" was the attempt to solve this- the 9 digit code narrows down the zipcode to a single block. But no one in the US cares enough to use these. It also doesn't solve the canonical problems the industry has with mapping data - people want to be able to put a pin in a random place on the map and pull up a clean zip code for data processing reasons.

taylorfinley yesterday at 10:15 PM
I live in an agricultural area in Hawaii with large lots and crappy dirt roads. USPS do not offer mail delivery here. Because of this, my home address is listed in public databases in no fewer than 3 different zip codes. Trying to get my address identified in a product when it demands a home address is always spin of the roulette wheel as to which one (if any) will work. It would be lovely to get an official answer about which zip code my lot falls in, especially if other databases start using the definitive value!
ortusdux yesterday at 8:33 PM
I'm sure their system has its faults, but I find shipping to the UK via postal code quite easy.

"A full postcode identifies a group of addresses (typically around ten) or a major delivery point."

https://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdo...

konfusinomicon yesterday at 8:34 PM
bottom line is that this should be open source and available on the US governments dataset website.
at1as today at 4:10 AM
interesting - I worked on Twilio's geographic gating of phone numbers.

Very complex problem globally, but the consequences can be high if you sell the wrong number type to a customer in the wrong location (and sometimes the EU and its member states can have precisely opposite legal requirements).

The US is relatively simple, with rate centers, but in some countries you actually have to draw geojson boundaries and find out exactly which location the company's headquarters resides within, down to the meter. If your boundaries aren't precise enough, you can get into trouble.

It's been about a decade since I was involved in that, so I'm curious if it's easier these days. There's not, however, a lot of incentive to fix it, as in many countries a few telco providers control everything.

mzagaja yesterday at 8:28 PM
As someone who has done tons of geospatial work I hate this. A ZIP code was never technically a geospatial boundary. Being "inside" a boundary does not guarantee you have that ZIP code, just that the space is surrounded by a bunch of postal delivery addresses bearing the ZIP code.
acaloiar today at 4:23 AM
I understand it costs money to collect, clean, and serve data. But this is the wrong price for this data. At this price, what I think we're most likely to see is a cottage industry of cheaper zip code boundary polygon services that have introduced just enough jitter in their boundary points to defeat the USPS's assertions that they're reselling USPS data. I doubt buyers will care that the cheap service boundaries have a few meters of error at the edges when it costs 100x less.
jackconsidine yesterday at 8:27 PM
Seeing enterprise

We use https://github.com/OpenDataDE/State-zip-code-GeoJSON - it's from 2010, but open it in Claude and use the free-to-download data source to regen from the most recent census.

toolslive yesterday at 10:42 PM
in the EU, this is considered FAIR (Findable, Accessible, Interoperable, Reusable) data. You can just find this on govt portals.
nxobject yesterday at 9:28 PM
I'm not sure how many fields will find this useful -- other core geo/spatial datasets use the related-but-not-identical ZCTAs, especially Census demographic data. Perhaps transportation operations?
azhenley yesterday at 9:45 PM
I wrote a JS library and blog post about mapping latitude and longitude to country, state, and city with a small, in-memory lookup. It was fun to build! My startup was paying a lot of money to Google's reverse geocoding API.

Blog post: https://austinhenley.com/blog/coord2state.html

HN discussion: https://news.ycombinator.com/item?id=44175356

mc007 yesterday at 10:01 PM
did something similar if anyone needs it, boundaries for GADM zones, fast with cache, population center, was quite a mess to get good results : https://github.com/polymech-info/gadm - easy to render in maplibre
untessela yesterday at 8:07 PM
starting at $10k
mannyv yesterday at 9:12 PM
The bummer thing about their data is it's ZIP, not ZIP+4. Technically ZIP+4 is internal to USPS because it identifies a specific route (or something like that), but it's also is more precise than ZIP.

The original tiger/line or ZCTA data is probably good enough for everyone. Those are available "around." I think the census provides them. I believe the census has the zip+4, but it's been years and I might have gotten them from somewhere else.

The interesting thing in the data is the ESRI feature classes. I wonder what the heck those are.

themgt yesterday at 8:55 PM
Reminds me of one of my favorite little rabbit holes, trying to find this data for Canada:

Canada is one of the only major countries where the postal/zip code boundary data is not available as an open data set. Canada Post has a monopoly on that dataset. As a Canadian GIS person it drives me nuts as many other Candian government GIS programs have been active in the open data/open-source world for decades. Even crazier is that Statistics Canada has an open database of all addresses in the country here https://www.statcan.gc.ca/en/lode/databases/oda that has a postal code column, but it's empty for all addresses.

Anyone who has tried to create their own dataset of polygons has usually ended up being chased down by Canada post. There is a company called Geocoder.ca who made a geocoder and when you passed in a street address with a postal code in it, it would keep track of that, and geocode based on the street address. Over time they built up a database of coordinates and postal codes and were able to generate their own approximate boundaries that where pretty accurate. Canada Post went after them: https://geocoder.ca/?sued=1 Their data is still free for non-profits, and relatively cheap for commercial purposes: https://geocoder.ca/?freedata=1 The only other open data related postal codes you will find easily available is Forward Sortation Code boundaries (FSA) which is the area that represents the first three characters of a Canadian Postal code. For example, postal code "N0R 1K0" would have an FSA of "N0R". For demo's and some analysis scenarios that can often be enough.

https://learn.microsoft.com/en-us/answers/questions/1655227/...

imagetic today at 4:03 AM
HACK THE PLANET!
mock-possum today at 6:40 AM
This information should be freely provided as a matter of public service.
walrus01 today at 6:36 AM
One of the more frustrating things about dealing with federal government mapping is that the FCC broadband mapping submission/expects data by census tracts, not zip codes (zip+4) or zip code polygons.

https://www.google.com/search?client=firefox-b-d&q=fcc+broad...

otter-in-a-suit yesterday at 9:25 PM
This is hilarious. I was basically bullied into writing this via the GIS folks on reddit: https://skaldmaps.com/blog/2026/07/zip-codes-are-a-bad-spati...

Because, well, ZIP codes aren't a spatial thing. I guess I have to update that?

And the fact that this isn't free is... a decision.

dvh today at 8:09 AM
Cue "falsehoods programmers believes about zip code boundary polygons"
fractal618 yesterday at 9:57 PM
Is this more about efficiency or politics and regulation? I can’t open the technical files on my phone.

At first I thought maybe this could be used to correct gerrymandering, but then I remembered all my cynical deductions.

cwt137 yesterday at 11:26 PM
I see you can pay for the dataset using a USPS money order. The highest priced dataset is $150k. Can you even get a USPS money order for $150k?
ulfw today at 9:11 AM
US innovation at it's best again
teddyh yesterday at 10:19 PM

  s/offers/sells/
Hnrobert42 yesterday at 8:45 PM
For everyone saying it should be free, the USPS charges for services. They charge to deliver mail.

Cut them some slack. They are supposed to be budget neutral. It is difficult to do when A) they have to compete with the private sector while adhering to public sector rules and B) being sabotaged by Trump's postmaster general appointee.

nukanse yesterday at 9:32 PM
If the polygon delimits a property, it could be used for drone delivery
tomrod yesterday at 9:59 PM
This is huge!
kylehotchkiss yesterday at 10:22 PM
Maybe somebody should sue them into releasing a base set for free. Or maybe FOIA the files out.

USPS can charge funny money for the latest version.

quasarj today at 6:32 AM
They are charging? wtf. Is this not public information?
tjwebbnorfolk yesterday at 9:24 PM
Even if I wanted to buy this data, I can't figure out how
Joker_vD yesterday at 9:40 PM
...Can someone please explain why ZIP codes are even a thing people need to bother about? Like, there's an address on the letter/parcel — that should be enough for the USPS to deliver it, right? If they use some internal classification/address grouping for better routing — fine, whatever, they can use it but surely they themselves can look it up in their internal DB quicker and more reliably than I can on some random web-site of dubious progenity?
1-6 yesterday at 8:31 PM
Webapp in 3.2.1...
VLM yesterday at 9:08 PM
Its heavily regulated to be a universal service.

Its funded with the expectation of hypercapitalist efficiency.

Somehow they actually run a profit off delivering junk mail annually, but they also have amortized expenses such as pensions etc which are sinking them. Again as per above, as a hyper regulated universal service they can't declare bankruptcy, while at the same time they're hypercapitalist and somehow have to make due as the financials sink lower and lower.

Some say this is an intentional plan to destroy the postal system. You can't run on a political platform of destroying the office, it would be very unpopular to propose everyone pay more for for-profit mail delivery and did I mention who one of my corporate campaign donors is? but you can intentionally sabotage the USPS by always making the worst choice at every decision intentionally, and then "unavoidably we have to shut the service down for no known clear reason it just doesn't work". My guess is the intentional destruction will continue unabated until closure is announced.

Its currently illegal for private carriers to deliver normal non-urgent letters because the USPS is a monopoly. You can put a document in an envelope or small box and UPS it, but its technically quite illegal at the federal level. My guess is eventually UPS or Amazon or fedex will purchase a law to be able to sell normal ground service physical first class mail delivery. I'm betting on Amazon winning a contract for this.

My bills are all emails lost in my spam folder and I "just know" to visit my car insurance website and electric company website every month or so.

Its worth considering that junk mail delivery is hyper profitable for the USPS, so thats probably not going away when mail delivery gets privatized. What is going away is the 82 cent postage stamp. UPS ground saver is a couple bucks. It'll be cheaper to take a picture of a letter then order prints of the picture at Walgreens nearby my mother than to mail her a greeting card LOL. Walgreens charges 39 cents for a post card sized digital print and their letter size prints are a ripoff at $4.50, better off sending multiple post card sized prints.

EGreg today at 12:16 AM
Can't we just use the geolite2 database which is free? (MaxMind also uses it)
bayesnet yesterday at 10:25 PM
It's extremely disappointing that USPS has gone the way of the Ordnance Survey on this. UK postcode polygons (at the unit level) have been paywalled for some time, but its even worse in that as far as I know there's no way to even get a straight answer as to how much it will cost to get the Ordnance Survey postcode products' data.

It's especially annoying in the UK case because there is such rich national data, but for so much of it the only join key is the postcode unit, which can change over time and for which no public polygon is available. Evidently the Ordnance Survey doesn't even keep historic vintages of its releases...

CrzyLngPwd yesterday at 10:13 PM
Welcome to the 21st century
sage981 today at 11:33 AM
[flagged]
ravivarmat today at 10:32 AM
[flagged]
postbye today at 1:31 AM
[flagged]
ProblemExplorer yesterday at 9:20 PM
[flagged]
billbuild yesterday at 8:52 PM
This is amazing! It's actually how many people think spatially, who are not involved in politics versus congressional districts and census tracts.
readthenotes1 yesterday at 8:28 PM
The USPS is losing money hand over fist delivering the unwanted junk mail and Christmas cards we throw away once the tree is put away.

I don't think this will stop the bleed, but maybe it'll help that they are charging??

whalesalad yesterday at 8:31 PM
of course they are going to try and monetize this. that's trump's america.