Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to deal with address inputs that can be from multiple countries?

Most of my websites in the past have been rather limited to the United States when it came to displaying addresses. On a project I'm working on right now, however, users can add events from all over the world. My problem is how to go about dealing with the different way in which addresses are displayed across the world. For example, City/State/Zip is just a US thing.

I was figuring I would alter the inputs displayed based on the country selected but I have no idea how I'm supposed to know the way every single country does addresses.

Ideas?

like image 306
Andrew.S Avatar asked May 20 '10 00:05

Andrew.S


People also ask

How do you show an address in a country?

For domestic mail (mail within the USA), we omit the country name. For all other countries, we write the country name as the last line, by itself, in all CAPITAL LETTERS, with no accompanying notations such as postal codes, or hints as to which continent the country is on.

How do you address mail to Italy from the US?

For Italian addresses: The recipient's surname is usually written before the first name. The door number is usually stated after the street name on the second line. The postcode is stated first on the third line, followed by the town, then the two-letter abbreviation of the province.


1 Answers

First of all be careful with what you make mandatory. Don't use validations like "ZIP code must contain only numbers".

Then, you should have a minimal amount of fields - Country, City, Zip Code, and 2 lines for Address.

Check out for example this book ordering site with world-wide delivery. Put a book in your basket and head to checkout to see: https://securepayment.bookdepository.co.uk/checkout/summary

like image 157
Meh Avatar answered Sep 27 '22 23:09

Meh