this post was submitted on 23 Jan 2025
474 points (99.6% liked)

Mildly Interesting

17855 readers
4 users here now

This is for strictly mildly interesting material. If it's too interesting, it doesn't belong. If it's not interesting, it doesn't belong.

This is obviously an objective criteria, so the mods are always right. Or maybe mildly right? Ahh.. what do we know?

Just post some stuff and don't spam.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] undefined@lemmy.hogru.ch 10 points 1 week ago (2 children)

Luckily my application only has to work in Canada and the US.

Sometimes one of my customers will ship to Mexico, and I just don’t validate those addresses because they’re a nightmare.

Do you know of a great validator for the UK? My validation provider offers international validation but I just don’t trust that it’s accurate and take it on a country by country basis.

[–] QuarterSwede@lemmy.world 5 points 1 week ago

Validators in the US aren’t great either btw. They’re always getting our address wrong or won’t validate zip+4 codes, which is supremely annoying when it’s more accurate.

[–] SquiffSquiff@lemmy.world 3 points 1 week ago* (last edited 1 week ago)

Sorry, only just seen this. I don't work in this sector I am afraid. Some things that might help you:

  • There is no legal definition of a 'valid' address in the UK- If you post it then the Post Office will try to deliver it. If they can work it out from what is written, and they will try very hard, then that's 'an address'. This has been established in law.
  • There is advice on how you should write an address . This is how e.g. a bank or utility will address mail, but see above. TBH at this point you could probably put a What3Words on the envelope and it could work.
  • For most addresses in the UK you will want to correlate the postcode with the street address, as shown here. A street address is a number (or house name, or both) and a street name on one line, e.g. '29 Acacia Road'. Street address + Postcode is how people target e.g. a satnav to an address. A postcode generally relates to a group of addresses, but larger organisations, e.g. a hospital or council office will have a postcode just for them, e.g. 'Buckingham Palace'. Beware that whilst postcodes don't change, new ones are being added all the time and they aren't sequential.