logoalt Hacker News

mananaysiempreyesterday at 11:20 PM2 repliesview on HN

> The order of entering an address is street address, city, state, zip code.

In the US. Most of Europe uses street address; postcode, settlement and optionally province; country. There are still enough occasional warts that you shouldn’t dictate the structre of the second line, though: e.g. in France you’ll usually see things like “75005 Paris” but large institutions that get separate deliveries may list addresses like “75231 Paris CEDEX 05”, where everything but “Paris” is a postcode-like routing instruction. Unless you definitely, absolutely know better, just let people type in whatever postal label they want.


Replies

dylan604today at 3:59 AM

I have mixed opinions on this one. I appreciate the auto populating of City/State when you first enter the Zip. By doing that first, the suggestions of typing in address/street could be a much more accurate list as you've already filtered by state/city. The ones that come up with options from other states when I type in 1234 Main St will give me a list of pretty much every state/city in the country.

terriblepersontoday at 2:39 AM

This feels like the physical equivalent of email validation, though it's harder to properly validate.

Similar to email validation, I've definitely seen people get bit (or, well, their customers getting bit) by people making untrue assumptions about the acceptable form of an address. See: a number of products that can't be ordered for USPS General Delivery simply because the address form won't allow it.