Hacker News new | ask | show | jobs
by iamacyborg 4 days ago
Google Maps have an address API some companies use when filling out addresses for shipments.

Despite my building existing for over 10 years, putting in “flat number, building name” into that system will be rewritten to “house number, building name road” which is an address on a he other side of town (and London ain’t exactly small).

I’ve had multiple orders go missing as a result.

2 comments

Falsehoods programmers believe about addresses...

The only universal address input is a freeform text box. Optionally with a country, which should also be a freeform text box because countries get created and destroyed and you won't remember to update it. City or district is probably okay - as a freeform text box - addresses without one can write (no district). But street addresses are different everywhere and must be freeform unless you're the government of that region.

This is why we have postcodes.

More concretely, a postcode is usually specific to between 7 and 30 dwellings, in the usual case it's about 15 houses.

Contrary to common belief, they're not always on the same street, but in the vast majority of cases (like maybe 99%) house number + postcode is sufficient. Definitely flat number + building name/number + postcode should get your stuff there.

Yeah, the google maps address thing just overwrites my post code, and some senders in the US don’t appear to pay attention to that.