Live data from Hacker News

Put the zip code first

zipcodefirst.com

161–170 of 330 posts

Re: Put the zip code first

#161
post #149

Earlier quoted context omitted.

ZIP+4? I think that's literally enough digits to give every house in the US (about 150,000,000 apparently) its own identifier.

Only 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

That happens, and worse. I've lived in multiple areas that have had their zip code changed. Area codes, too, sometime more than once.

Re: Put the zip code first

#162
post #82
post #75

Earlier quoted context omitted.

Yeah it should auto fill but not stop you from changing it, best experience 98% of the time. I just looked it up and apparently there's some cases of zip codes that do go across state lines too, but it's rare.

There is a canonical full address for every mailbox in the US. Would be curious to see what these houses show. My experience living in towns that received mail from other towns is your canonical address IS the other town.

FWIW I have received mail from the USPS in places that had no canonical full address as well. It's not the case in reality that the USPS only delivers mail to mailboxes that have an associated entry in their canonical database here in "messy" reality.

Re: Put the zip code first

#164

US-centric. I typed a Mexico postal code (it’s five digits) and got routed to somewhere in Maine. So - yeah the whole “I can tell you’re in the US just by the zip code” premise is entirely flawed.

In the mid-1990's, I requested information from a major multinational corporation (IBM) that had a significant presence in my country. They somehow managed to mangle the six characters of a Canadian postal code, which alternates between letters and digits, into a five digit zip code. Making it even more perplexing, the envelope was addressed by hand and came from New York state. Some Americans seem to think that the rest of the world is a mirror of them, and will go through unusual contortions to maintain that belief. (To be fair: there is another level above that which is Anglo-centric, which allows for just enough variation between English speaking nations.)

I have seen websites that more-or-less takes the author's advice though. They are country specific. They are backed by the postal system's database. They present a list of addresses that match up with the postal code. They do not work very well when a particular address does not have a postal code. And yes, that happens.

Re: Put the zip code first

#165
I like how instead of just rephrasing the website’s premise to make it clear he only cares about the US, he added some ip-based geolocation to select a snarky response based on where you are. Essentially the site argues back to you if you’re not in the US or something. Why did this person even bother creating the website if he’s so hostile and angry.

Re: Put the zip code first

#166
post #69

> From those 5 characters you can determine the city, the state, and the country False. Many zip codes include more than one city, and some even cross multiple states. And you can't always tell the difference between codes from different countries. Now you're not just instantly filling the rest of the form, you're implementing fancy multi-country filtering logic, editable drop downs, etc. Given the obvious incompeten…

This 1000 times. I’ve tried implementing what OP has mentioned, and quickly learned it isn’t possible. A city can also exist in multiple zip codes. And there can be multiple cities with the same name in the same state. So, to be safe, you have to enter city, state, and zip.

> A city can also exist in multiple zip codes.

Sure but a zip code belongs to only one city and one state, right?

Re: Put the zip code first

#167
Ehh... US-centric. Better to use significance order: Country, then postal (most countries have postal), then region, city, and street address. Best, however, is to _not_ separate the address into fields. Instead, allow a free text field for the person doing data entry to put in the address in _their_ format and then parse it on the backend. This gets you the most flexibility and allows you to encounter and handle corner cases by using (my favorite test data) public addresses from all over the world. _I_ routinely test my address entry by Googling McDonald's locations and feeding them into my system. Handle an inscrutable address like any other bad data and say, politely, that your system does not understand the data.

All that said, free-form entry is a hard sell. My _customers_ expect field data entry, so I implement field data entry. I just re-order my checks to be more forgiving until the data entry is complete.

I was implementing a customer service address entry using significance order 25 years ago. As I already _knew_ that I had a US-centric customer base (we sold long distance to sorority and fraternity members), entering US ZIP first saved a lot of time and more highly leveraged the US postal address cleaner that we had already purchased for our mass marketing mailers. The people working the call center _loved_ it, as they could focus more on their call turn-over than on data entry.

Re: Put the zip code first

#168
post #69

> From those 5 characters you can determine the city, the state, and the country False. Many zip codes include more than one city, and some even cross multiple states. And you can't always tell the difference between codes from different countries. Now you're not just instantly filling the rest of the form, you're implementing fancy multi-country filtering logic, editable drop downs, etc. Given the obvious incompeten…

This 1000 times. I’ve tried implementing what OP has mentioned, and quickly learned it isn’t possible. A city can also exist in multiple zip codes. And there can be multiple cities with the same name in the same state. So, to be safe, you have to enter city, state, and zip.

There are enough ZIP+4 codes for about a billion addresses. Many addresses I've lived at in the US have had a unique ZIP+4 code.

Re: Put the zip code first

#170

Earlier quoted context omitted.

Yup, the second sentence in the post is incorrect. > From those 5 characters you can determine the city, the state, and the country. You can't infer the country from a postcode.

In the example, you might at least be able to cut down your menu choices to Maine or Mexico.

The form stopped accepting input at five characters. I could not enter a "zip code" for my country even if I wanted to.

Even if they fixed that, there are other issues. (You pretty much need to cross-reference it with a database, which assumes said database even exists.)

Post reply on HN