by greggyb · 4y ago · 0 comments
To grossly oversimplify, ZIP codes are essentially mail delivery routes. They are paths, not borders.
My ZIP code is serviced by the post office of a neighboring town. Almost every single online service I interact with that needs my address refuses to accept my actual town in my address, but instead replaces it, based on the ZIP code, with the neighboring town. The same is true for most GPS navigation.
However, USPS also maintains in their addressing database a list of "recognized" or secondary city names for a ZIP code. For ZIP codes that span multiple towns this list can be fairly long. As far as USPS is concerned these city names are not "recommended" but nonetheless interchangeable, so you can e.g. write the name of your town on mail to the nearby town containing the post office. It's also common for the "recognized" list to include special cases like "Campus" if there's a university or sometimes names of large corporate facilities.
This is all just to solidify the point that, as far as USPS is concerned, ZIP codes are the organizational unit on which mail is routed and town names are only for human convenience. Ultimately this convention extends to each house since the 11-digit ZIP+4+DP (included in the IMB barcode) should uniquely identify a physical location at which mail is delivered.
I'm as guilty as everyone else about this.
[0] Specifically, the address information that the sender typically writes on the front of an envelope. As you noted, the information in the IMB barcode is also sufficient information.
The USPS wants, for most delivery points, address (street and number), city, state, and zip, but the state is always superfluous, the city is I think also always superfluous (though I can imagine a situation where the same address existed in two different jurisdictions sharing a zip code), and the address (with even nine-digits of a ZIP) is sometimes superfluous (and not just for the special post-office +4 codes like -9999 for general delivery.)
If you have a full 11-digit ZIP, it is supposed to be unique for at least residential addresses (and I would assume all addresses that the USPS delivers to; anything more specific would be internal.)
Publication 28 becomes far more important if you are a bulk mailer, because when you pay bulk rates or in general enter mail via a business mail entry unit (BMEU), your discounts for bulk mailing are contingent on your preparing the mailpieces exactly the way USPS wants them. This means you need to validate addresses against USPS's database, format them exactly as expected, and include an IMB barcode from the start. This ensures that it will all process through the automated equipment which saves USPS some money and justifies the bulk discounts... along with other bulk mail requirements like presorting by destination, bundling/bagging according to USPS's shipping specs, etc.
IMB barcodes nominally identify exactly where the mail should be delivered, i.e. to the "delivery point" or physical spot, but I'm not sure if this is universally true. There are a lot of sort of odd cases, for example PO boxes have their own ZIP codes and the ZIP+4 on a PO box is typically the ZIP and the box number... but large post offices often have five digit box numbers, in which case curiously the specification is that the ZIP+4 should use the last four digits of the box number. The way this oddity has been explained to me is just that the ZIP+4 was originally conceived as ZIP plus a four-digit route number, but PO boxes have never been handled as "routes," so the +4 is actually sort of meaningless and just needed to be filled with something. But I assume in the case of IMBs the +4 and DP are used to resolve the issue of five-digit PO boxes with the same last four. This also gets weird with the post offices that have lettered PO boxes (e.g. "PO Drawer H," a valid address in a rural PO in my area), I have no idea how this is handled with IMB.
Example from some time ago:
United Nations
New York, New York
was sufficient.Or
Macy's
Herald Square
New York, New York
These days with the volume of mail and high automation, there's a good chance this will come back or take forever to get delivered. So don't try this at home, kids.They're not even paths! They're just collections of points with no meanings between points. E.g. a GeoJSON "MultiPoint"
For mail delivery, the name of the post office is appropriate. For other things it may not be. Constant problem for school districts, for example.
Also one author noted that the USPS uses "ZIP" code but the O'Reilly style book has "Zip" code.
Off topic for this posting but FORTRAN became Fortran around 1990, but it's still COBOL.
The all-caps convention is not the common one in most languages with a Latin alphabet, but we're talking about English here.
(Luckily the local post office tolerates adding a 9 in front and still delivers.)
If your address is not in the US, you do not have a ZIP code. A ZIP code is type of postal code. There are many more postal code varieties than ZIPs.
Companies that ship internationally should not use validation rules for US addresses for non-US addresses.
ZIP codes have actually been 11 digits for a while now, though you can obviously still use just 5 or 9 and the USPS will figure the rest out.
I know. ZIP codes need 9 numbers.
No, wait, that’s 11 for the last 31 years.