Hacker News new | ask | show | jobs
by cf0ed2aa-bdf5 2408 days ago
Assuming what is and isn't valid for user inputs is a dangerous game because there are always exceptions.

I ran into a similar issue with many online retailers when I was living in the inner city of Mannheim, Germany because a lot of online systems make assumptions on how a valid address looks.

Addresses in Mannheim's inner city follow the format "Char Number, Number". "A1,1" is a valid address if you want to send a letter to the district court. A1 being the city block the court is located at and 1 being the house number within that block.

I didn't get to do a lot of online shopping for years when I lived there.

2 comments

Simple workaround would be putting in a human-readable long string. Anything like, "Daniel's residence, A1,1". Post people know how to read.

Upd: reaction to this suggestion shows that some people don't understand how post office operates. They go to great lengths to understand where to deliver the mail/parcel. In most cases, addresses like "big yellow house with a red door overlooking the cliff near the lighthouse" would work. So the only challenge here is to get past the whatever dumb rule the service developer imposed on the address format. Likely it is just filter by string length.

Post people know how to read, but I think now most nail sorting/routing is done with computers and OCR. I sometimes get mail addressed to people who used to live at my address but have long since moved. I tried writing “return to sender, addressee not at this address” or similar things but the mail kept coming back to me. I finally went into the post office and they said that the machines would just rescan the address and send it right back to my address for delivery. So I think relying on postal employees to see/interpret things on address labels is no longer a viable approach in many places.
No, not really. Sorting is always manual when automation fails.

In your case, automation actually didn't fail, it just didn't recognize your additional instruction. Probably, you could have just patched the address with an easily removable piece of tape and that would definitely trigger a human attention, and delivery would go where it should

-My parents (living in rural Norway) once had a postcard delivered where the address given was simply their first names - no last name, no street, no town, no nothing.

Having a database in which every citizen's domicile is registered does have its occasional advantages.

Similarly, there was a story going round a few years back about mail being delivered in Iceland where instead of an address there was a map to the house to be delivered: http://i.imgur.com/1GVjLKF.jpg
I live in Japan. I once had a package delivered from overseas where their printers couldn’t print CJK fonts and thus the whole address resulted in just small empty boxes. The post office inferred my address from the post code + my name and delivered it correctly. There wasn’t even a (noticeable) delay.
> Probably, you could have just patched the address with an easily removable piece of tape and that would definitely trigger a human attention, and delivery would go where it should

Fair point. And that was the advice given to me by the postal service.

Cross through the wrong address. Every year or two somebody from the management agency tidies the noticeboard for the building I live in and removes my hand written sign explaining how this works. Then, next September/October when lots of people move in (some fraction of the occupants are students) the noticeboard gets envelopes pinned to it with undeliverable mail. I write a fresh sign.

The sign is a flowchart, it says first, is this mail for a different address? If so, either redeliver it (duh) or write "Misdelivered" in bold leters and put it into any postbox.

If not, but you don't recognise the recipient, strike through the whole address in black pen and write clearly "Not at this address" then put it into the postbox.

This won't stop you getting more mail by the way, I still get letters labelled "Urgent" with the name of the previous owner years after I bought this place. But it does stop literally the same mail coming back since the OCR will reject the crossed out address -- it's just that the sender may not have any effective process for what to do when they get the mail back undeliverable.

Carmel, California used to have deliverable descriptive addresses like that. Been years, don't know if they still do.
> They go to great lengths to understand where to deliver the mail/parcel

Only for private unregistered mail. Registered mail is required to specify the address accurately.

Define 'accuracy' though. That's what this whole thread is about. When what you're comparing against is itself wrong, what does accuracy mean? Also, "big yellow house with a red door" etc. is in fact accurate for that place.
That's the whole issue: a random coder decides "and this is my idea what's acceptable: Google Maps/whatever finds it from the input string; worksforme, done!" without second thought or even authority to make such decision; this, an operational decision, gradually becomes doctrine, even dogma.
A friend of mine living there works around it by using „Quadrat A1 1“ (translated: square A1 1 - since most blocks are roughly a square in Mannheim) and it seems to work okay.

But the naming in Mannheim causes a lot of issues, I remember early navigation systems having a hard time with the format. A IIRC TomTom even crashed when trying to announce the street.

That is actually a pretty clever solution, I wish I had thought of that back then.