Hacker News new | ask | show | jobs
by freddie_mercury 1098 days ago
I have this problem all the time.

I live in Vietnam and my address looks something like

561/34/13 Điện Biên Phủ, Phương 25, Quận Tân Bình, TP. Hồ Chí Minh

The ways this usually fails with websites:

They tell me a slash isn't allowed, like they know my address better than me.

They tell me I need a post code. There are no post codes in Vietnam.

They tell me I need a state or province. Hồ Chí Minh City is a city without a province. (There are five such cities that have the same rank as a province and thus aren't contained within one.)

They have no concept of phương ("ward") and quận ("district"), without which the rest of my address is anything from ambiguous to useless. They often have a "second address line" where I can put this in but they often have limitations that make it impossible to enter. (Like not allowing commas, or only allowing 15 characters, or not allowing periods, and I don't even remember what all problems I run into the years with it.)

And all for what?

12 comments

This reminds me of forms explicitly requesting filling-in your name "exactly as written in your passport", only to directly refuse any non-ascii characters (like any accents).
They probably mean the name as written in the Machine Readable Zone (MRZ) name field of the passport. Each issuing country chooses how to transliterate names to match the MRZ encoding as needed. The MRZ allows the characters 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ< and no others. The Visual Inspection Zone (VIZ) CAN contain characters outside this set, though SEVIS recommends including a transliteration into the MRZ character set as well.
They might have meant the spelling at the bottom, the part filled with <<<<<<<<<<< there I believe that only ASCII is used.

eg: https://en.wikipedia.org/wiki/Passport#/media/File:ROC_Natio...

Some cheat codes I use when ordering parts from overseas, in case useful:

I set postal code to 700000 for HCMC (in theory, we have postal codes defined in VN. We just don't use them).

Usually I set province = Hồ Chí Minh City and then am able to select city = Hồ Chí Minh City as well (even though this is incorrect, as you say).

The lack of slashes is still often a show-stopper for me too, as is insufficient space in the address field. I live not that far from 1806/127/2/6/15/48/2P Huỳnh Tấn Phát, which I imagine delivery drivers just love.

Even with all the tricks, I've occasionally been unable to pay for services online, and had to find alternatives. Sometimes I'll also see Vietnam, Viet Nam and Việt Nam as separate options on a country selector. When importing something expensive from overseas, this does not exactly fill me with confidence.

Yeah I use those tricks too. As you say they work 90% of the time. Sometimes I have to write "P 25 Q Tan Binh" or even "P25QTanBinh" if the second address line has stupid restrictions.

I also use 700000 for HCMC even though that isn't actually accurate for anything except the main post office in District 1. You can actually put in any number since no website does anything with it. Which you sometimes have to do when they tell you that "700000 is too long for a post code, must be 5 digits or less".

AFAIK the "accurate" post codes for Vietnam (that no one ever uses) are:

https://phaata.com/thi-truong-logistics/zip-code-hcm-ho-chi-...

> They tell me I need a state or province. Hồ Chí Minh City is a city without a province. (There are five such cities that have the same rank as a province and thus aren't contained within one.)

Common in London, too -- even on British websites. They'll require a city and a county, at which point I need to enter "London" for both. Things will still be delivered correctly, fortunately.

This is because delivery is made by people who can understand things, including limitations of software. The moment these people are replaced by robots is the moment you stop recieving mail :/
Except if you need to send something to this address, why would you care what is input?

Even when using it for shipping, what I do is to repeat information. They want a "province"? I have no idea what this is (I am French) so I repeat the name of the city, or I put a region. When the letter/package Congress to France the address won't be correctly formatted anyway so they will do a best match - and it always worked without problems.

Sale for phone numbers. I usually try 0000000000 which often get rejected, and then 010101010101 which usually is accepted (sorry for the prob who uses this number in the Paris region).

Your address is now going to be one of my favourite tests for ever more, hope that's okay?
Prepare for pushback in the form of "Who the hell will be using our site from Vietnam?"

Personally, I think a correct response is "Hey man, you wanted to sell things on the World Wide Web. If you want to exclude Vietnam, Main Street has storefronts for you to rent"

Happened to me yesterday I’m from New Zealand, trying to buy something from a Chinese website There was obviously some localisation code for New Zealand, but 1st it incorrecly tries to validate phone number, then 2nd it asks for address and prefills the rest of it completely wrong (Canterbury is NOT a state, and it is not a mail destination , and the abbreviation CAN is not recognised by anyone as Canterbury.

I absolutely hate it when you try to give a company some money, and they just fail to close the sale!

Same problem here with ordering from AliExpress to Germany.

They try to make some localization and validation and fail greatly with that.

The province doesn't matter in German addresses at all. But when entering the ZIP code it always presented me the city as the main city in the province, which is not my city. My city is 20km away.

At the end I put everything again into the second address field, which allowed some free form input.

It's surprising how many developers complain about this, here in HN and otherwise, yet STILL we have those crappy validations and autofill all over the internet.
It's worse. Few months ago we wanted to buy some specific books/toys from a local brand (we're in Poland). It was a relatively modern, small company, with appropriately modern and slick website - you'd expect everything to go smoothly, right? Unfortunately, we weren't able to complete the purchase, because whoever made their checkout page had a bright idea to integrate with...

...wait for it...

... an AI-powered address validation system, offered by some random local startup. That validation system tried to provide autocomplete and attempted to automatically segment the address in a seemingly free-form field, but something in the integration got botched, and it wasn't able to identify house numbers - and without identifying one, it would not let the check-out process to continue.

I've actually tracked down the startup making this "address validator" (who in the right mind funded them, and why companies pay for this, is beyond me); they had a demo form on the landing page, and it correctly segmented my address - which is why I know it's the integration with the particular seller that got botched. Nevertheless, I'm still in shock - why on Earth would someone do this in the first place? It's strictly worse than having multiple fields - name, street, address part 2, zip code, city, etc. Multiple fields are already bad for reasons discussed in this thread, but a single free-form field that's parsed by "AI" into colored segments as you type? What in the fuck.

Address validation is one of the major textbook cases of developers going out of their way to make their software worse.

And from the company owner's point of view: Imagine spending extra money on development that stops users from completing a purchase.

These cases are the perfect answer to "Why do we need senior developers on our team who have good judgment?" This is why--to prevent software like this from even being written in the first place.

Yeah, hard agree on this. Companies need to actually need to make an effort to know their audience & how things works there before even launching there. But nowadays research is secondary to most of them.
There are post codes in Vietnam, believe it or not. Though I doubt any local delivery service actually look at it.

Hanoi post code is in the 100000 range (used to be 10000), Saigon's 700000

Yeah I know that "technically" we have post codes, though I've never met anyone who knows that or knows what their post code is. And I've never received any mail that uses it (not even from the government).
Your story reminded me how Chinese students could not enroll in a well known Dutch university online, because their last name was less than4 characters long.
Also wanted to know from your exp, what are some good apps that actually considers localisation even being an international company?
Off the top of my head I can't think of any that are GOOD.

But a decent number of them appear to switch off most/all validation once you select a non-US address, which I think is a perfectly acceptable thing to do. (That's if they even support a non-US address, that is.) I've never seen any data but I wonder how much help validating addresses even is.

The "must have a postal code" is by far the biggest problem. I can't recall a website that actually can cope with not having a postal code.

In practice you can put in any number and the local postal delivery here will ignore it/figure it out since it won't be the first time a foreigner has put the wrong address on something in Vietnam.

I've seen some sites use Google maps API to suggest your exact address, pretty cool
Oh good grief those are annoying though. "We've found a more exact version of the address you entered" no you haven't, you've randomly substituted my neighbour's house number and dropped the county name. It's even worse for my office address: it's a large building shared by many companies; without the correct company name the receptionist cannot contact the right recipient. The APIs though like to either replace the company name with a random unrelated one or drop it entirely.

Wonder how many misdeliveries these features cause? Both my and GP's annoyances can be solved simply by leaving the entered data unmangled. I've supplied precisely what needs to go on the packaging to get the item to me. All of the text is necessary, sufficient and in the correct order. Don't change those things. You don't know better.

When moving in, some two years ago, to an apartment located close to the very centre of Kraków - one of the biggest and well-known cities in Poland - I discovered that Google somehow got the postal code wrong for the entire street. The code they had on record actually pointed some 20-30 kilometers outside of Kraków. It took more than a year of sending corrections to Google Maps before they finally fixed the postal code... of my building alone. The rest of the street still has the wrong code.

Want to know why I bothered to try and get it fixed all this time? Because this little mistake made it nearly impossible to order food via any of the food order services. Uber Eats, Glovo, Pyszne.pl, etc., in their infinite tech startup wisdom, all integrated with Google API to fetch postal codes based on address, and use them to filter out restaurants that can deliver to the user's location. With my address mistakenly mapping to a village 20+ kilometers outside of Kraków, do you care to guess how many options I had to order from?

That, plus it also messed up ordering taxis via FreeNow and Bolt, which also integrate with Google API for stupid reasons. This also means the drivers need to use separate apps to navigate around the center, because Google doesn't have data on which roads are banned for traffic except buses and taxis, and the parent companies are too cheap to license from a provider that has this data. All while in the apps themselves, if your route starts, ends, or even crosses anywhere near the city center, the estimated time data shoots up to some ridiculous values, while the map gets entirely confused, as Google Maps integration is adamant that the route we're on is physically impossible.

Shopify does this to my address. I live at 106 and Shopify sites like to decide that I live at 106 bis, the next building over. That building only has a shared mailbox between three families, so packages that end up there are lost forever with no accountability.