6 ms·
> A city can also exist in multiple zip codes. And there can be multiple cities with the same name in the same state. These are reasons you cannot deduce the Z
by ghostly_s 7mo ago
> A city can also exist in multiple zip codes. And there can be multiple cities with the same name in the same state.
These are reasons you cannot deduce the Zip from the city, not the opposite. A ZIP+4 actually encodes all other information for a US address.
- Someone1234 7mo agoNobody knows their +4 code. You cannot ask for information 90%+ of people won't have.
- tokyobreakfast 7mo agoOf course they do. Let me uh just grab my utility bill...
- fingerlocks 7mo agoIf asking for the zip first was more common then we quickly learn those four extra digits because the auto fill benefits would be immediately obvious
- awesome_dude 7mo agoWhy? I have a 4 digit postcode, I have to look it up every time I have to fill in an address form for delivery. I've had people screw 1 digit up in that postcode and their items (a laptop in one case) went to the completely wrong city. A code sounds foolproof, until you realise most people don't engage with them for most of their lives - you don't tell the uber driver the zip/post code you are waiting in, and travelling to, nobody does. edit: just to add - Magic numbers are bad. Software engineers know that a number that's undocumented in code is unmaintainable, a zip code is worse.
- Dylan16807 7mo ago> I have a 4 digit postcode, I have to look it up every time I have to fill in an address form for delivery. > A code sounds foolproof, until you realise most people don't engage with them for most of their lives - you don't tell the uber driver the zip/post code you are waiting in, and travelling to, nobody does. When the above comments said +4, they meant knowing the second half of the nine digit zip code. Basically everyone in the US knows the first 5 digits. It's really easy to memorize them. If you can remember your city, you can remember your zip code. And in the US you use it all the time, so it stays memorized. > edit: just to add - Magic numbers are bad. Software engineers know that a number that's undocumented in code is unmaintainable, a zip code is worse. That complaint about magic numbers is completely off base. Magic strings are just as bad in software. "Beverly Hills" and 90210 are equal sins on the magic front.
- awesome_dude 7mo ago> Basically everyone in the US knows the first 5 digits. It's really easy to memorize them. If you can remember your city, you can remember your zip code. And in the US you use it all the time, so it stays memorized. What's the 5 digits for Yonkers New York (edited because I originally had NYC) > That complaint about magic numbers is completely off base. Magic strings are just as bad in software. "Beverly Hills" and 90210 are equal sins on the magic front. For the same reasons, that's why it would be: Beverly Hills, Los Angelos County, California, USA, 90210
- Dylan16807 7mo ago> What's the 5 digits for Yonkers New York (edited because I originally had NYC) Nobody sends packages where the destination is an entire city. If someone gives me an address inside Yonkers, it'll have the zip code in the address. I've never had to look up a zip code in my life. > For the same reasons, that's why it would be: Beverly Hills, Los Angelos County, California, USA, 90210 Which reasons? That has nothing to do with magic numbers, except that a 'magic full mailing address' is still bad, you don't shove that into the middle of your code either. If you're looking at the "made a typo" reason then that's where showing the address after putting in the zip code will give you the same verification but faster.
- awesome_dude 7mo agoHeh, you should take a minute to look the answer up - ZIP Codes 10701, 10702 (post office), 10703–10705, 10707 (shared with Tuckahoe, NY), 10708 (shared with Bronxville, NY), 10710, 10583 (shared with Scarsdale, NY)
- Dylan16807 7mo agoIs that information supposed to change my mind about something? If you put in any of those numbers it can prefill the city name, with enough accuracy that you don't need to change it. Did I imply anywhere that cities only have one zip code before you asked about Yonkers? I said if you can remember your city name you can remember your zip code. That doesn't imply you would use a list to get from one to the other.
- bluGill 7mo agoYour zip plus 4 changes. It isn't worth trying to know as it isn't supposed to be constlnt. If you send a lot of mail there is a discount for using it but you have to update everyone's address often (iirt at least 4x per year)
- fingerlocks 7mo agoSource? The numbers correspond to the USPS distribution centers and carrier routes. If the numbers are changing that would imply an increase in zip code subdivisions, making each zip code a better address predictor for a given individual.
- bluGill 7mo agohttps://faq.usps.com/s/article/ZIP-Code-The-Basics https://faq.usps.com/s/article/ZIP-Code-The-Basics I don't know how to link to the correct question but there is why did my code change.
- PaulDavisThe1st 7mo ago10% of the US population is 35 million people. That's a pretty weird version of "nobody".
- collingreen 7mo agoThis is a bad hill to die on for a ux conversation. "10% can feel kind a big number when 100% is huge" is a funny argument, as is trying to be pedantic about "nobody knows" as a shortcut for "most people won't know and you can't rely on any particular user knowing". If 10% is big enough to matter I can't wait to tell you about 90%!
- PaulDavisThe1st 7mo agoI'm not suggesting that one would design for the 10%, but I also think that writing off 10% - "nobody" - (particularly of a large number of people) is pretty dumb too.
- albedoa 7mo ago> "10% can feel kind a big number when 100% is huge" is a funny argument That would be a funny argument if it were the one being made.
- tokyobreakfast 7mo agoWrong. There can also be multiple cities in the same ZIP code. There is not a 1:1 relationship with a 5-digit ZIP as everyone is assuming here.
- Twey 7mo agoZIP+4? I think that's literally enough digits to give every house in the US (about 150,000,000 apparently) its own identifier.
- bombcar 7mo agoOnly if there's never more than 10,000 addresses in a single zip code, which means that if you enforce that, you can force a zip code to appear by building enough house
- axiolite 7mo agoThat happens, and worse. I've lived in multiple areas that have had their zip code changed. Area codes, too, sometime more than once.
- Twey 7mo agoI think my point is that if you're going to make people learn a 9-digit identifier for their house you might as well make that identifier unique and then that's the only information they need to fill in. Having non-unique 9-digit identifiers feels wasteful.
- kube-system 7mo agoThere are far more addresses than there are houses
- collingreen 7mo agoZip isn't uniformly distributed numbers though so you dont have the equivalent of that many digits of decimal numbers. Other comments have more detail but just for the top level example the first number is the zone and goes from 0 on the east coast to 9 on the west.
- bombcar 7mo agoA ZIP+4 does not encode all information. Proof: a post office has its own zip code, for PO Boxes. The +4 is the last four digits of the post office box. If the Post Office has more than 10,000 boxes, the +4 will be duplicated.
- twodave 7mo agoYeah, anyone who has had to work with USPS bar codes should know that internally these are called routing codes, and they come in 5, 9 and even 11 digit variants. The 11-digit one narrows down to a specific delivery point, but even that isn’t enough to derive an address (just enough to know whether you’re looking at the right one or not). Zip+4 codes also change frequently because they aren’t based on locations but on delivery routes and sequencing.
- fn-mote 7mo ago> Zip+4 codes also change frequently because they aren’t based on locations but on delivery routes and sequencing. This was news for me. I know the few zip+4 I memorize never change. I think the source for the parent is AI slop. See [1]. > Due to an increase in population or to the improve postal operations, the US Postal Service® will occasionally add a new ZIP Code or change ZIP Code boundaries. The plus four digits encode: > [67] : Sector or Several Blocks > [89] : Segment or One Side of a Street Note that this contradicts the parent. [1]: https://faq.usps.com/s/article/ZIP-Code-The-Basics https://faq.usps.com/s/article/ZIP-Code-The-Basics
- twodave 7mo agoThe census bureau (very) periodically publishes zip code data (which is where some places get their geolocation info). If you work with enough addresses you’ll find some zip+4s that are wildly far away from where they used to be. There are paid services that have better accuracy, but I’m not sure how they acquire their data.
- bombcar 7mo ago