|
|
|
|
|
by terribleperson
1250 days ago
|
|
To me, this is very similar to the recent post about email address validation. Very often, companies feel the need to validate certain inputs themselves and do a terrible job, when there's a better solution. When it comes to addresses, if they're in the U.S. there is an easy way to validate delivery addresses - the USPS. They offer free access to an API that includes address validation, and thankfully most shipping services now use it. Some services still screw things up, but its less of a problem than it used to be. I notice that the Royal Mail equivalent is paid. Perhaps that's part of the problem, or perhaps the Royal Mail validator fails addresses with slashes in it. I also noticed that the Royal Mail is a publicly traded company. I'll uh, refrain from commenting on that. |
|
Unfortunately not all. My street "number", like 100,000 other houses near me, includes a letter in the middle. USPS will happily validate it correctly, but there are still websites I encounter from time to time that complain or refuse to work.
Where I am, 100 years ago, if your house wasn't inside a city, it simply didn't have an address. The fire departments got together and created a geographic encoding scheme that would allow them to find a house if they needed to. In the 1960s, the USPS adopted it as official. New homes continue to be issued addresses according to the scheme, even though it is not rural at all - it's inside one of the largest metro areas of the US.