Slashdot Mirror


Address Formatting for International Mailing?

linuxbaby asks: "Anyone have any advice or wisdom from experience about address formatting for international shipping? I'm starting to doubt the process of asking individual questions of 'name, company, address, city, state, postalcode, country' because of complaints or misunderstandings from places like Ireland (no postalcodes), Germany (postalcode goes before city), Japan and England (many lines of address info needed). Maybe the best approach is to just get the country as a option-select list of 2-character country codes, but leave the other lines wide open ('address1', 'address2', 'address3', 'address4') for the person to fill in as they see fit. The point here is not data mining, but shipping packages as accurately as possible, anywhere in the world. Thoughts?"

84 comments

  1. wrong place to ask by datazone · · Score: 2, Insightful

    you need to speak with your shipping company.
    They do this for a living. They should be able to give you all the information you need.

    --
    Its spelt "L-I-N-U-X", but pronunced as "Free Beer"
    1. Re:wrong place to ask by Red+Moose · · Score: 1

      Judging from your UID, I'm surprised you even posted that as it's so customary on SLashdot for people to ask thigns that they could find out in 5 mins starting with a phonebook.

      --

      Acting stupid isn't much fun when there's someone around who knows better

  2. Use a multiline input box by keesh · · Score: 1

    Use a multiline input box and don't try to manually split it up into various fields. Let the user do that. Maybe stick with a dropdown box for Country is all.

    1. Re:Use a multiline input box by ivano · · Score: 1

      but then they forget to add their country or postalcode and you can't ship the product. No the author is stuck in a hard place. He has to make sure that the address is good enough for a shipment to the country without pissing off the user forcing them to, say, enter there US state when they live Japan like so many forms are (well it's a lot better in the last 5 years I admit)

    2. Re:Use a multiline input box by Mage+Powers · · Score: 1

      I'd hope a person wanting something shipped to them would know how to format an address to themselves, but what the author of this could do is link to a site thats shows/explains different ways to format an address. Wikipedia might be a good place to start, if it's not there, just start one and then people can throw stuff in, Like I'd mention canada post's postal code finder.

    3. Re:Use a multiline input box by Anonymous Coward · · Score: 0

      I'd hope a person wanting something shipped to them would know how to format an address to themselves ...
      You keep on hoping.

      I ship at least a dozen packages a week to customers, and get maybe a couple ambiguous addresses a month. That's about a 5% failure rate. The usual one is leaving off street/lane/place/avenue/court in a ZIP code area where there are several similarly-named (and numbered) streets. The next most common is leaving out east/west/north/south in the street designation.

      Heck, *I* get mail for somone on the other side of High Street whenever the "West" is left off, even though our names are nothing alike.

  3. thanks for asking by Anonymous Coward · · Score: 0, Flamebait
    you probably realise how many non-american users get pissed off when the compulsory field of state has to be filled in! I mean are americans that stupid? An what is it with zip code? My advice (I make web sites in belgium so lots of languages) is that don't call it zip code call it postal code (the french are happier with this). And don't make things like postal code only 5 characters long etc. Some country addresses require a box number too. The address 1 and address 2 is good but you are relying to much on the users filling it in correctly - imagine posting to England without a post-code. I guess the answer is there is no answer.

    ciao

    1. Re:thanks for asking by DavidTC · · Score: 1
      Even in America you shouldn't have zip codes be five characters...zip codes can have route numbers after them that make the post office happy, like 30001-3284. They're like sub-zip codes that tell the post office 'what part of the zip code' should be getting it, and is much easier than sorting based on the street, like they normally have to do.

      Granted, you don't need those, and almost no one has their code memorized, but you shouldn't disallow them.

      --
      If corporations are people, aren't stockholders guilty of slavery?
  4. Effective Addressing for International Mail by TRS-80 · · Score: 5, Informative

    FRANK'S COMPULSIVE GUIDE TO POSTAL ADDRESSES is probably the best resource you're going to find on the topic - it covers every continent and most countries, with details on postcodes, street addresses and more. Very geeky, but also highly useful.

    1. Re:Effective Addressing for International Mail by fm6 · · Score: 1

      Useful, perhaps, but Frank seems easily sidetracked. He wastes a lot of his time (and yours) explaining things you don't really need to know, like why he calls a section "Britain and Ireland" and not "United Kingdom and Ireland" or how the UK can be a country that contains other country.

    2. Re:Effective Addressing for International Mail by jabuzz · · Score: 3, Informative

      Add to that, his description of address formats for the United Kingdom are a load of rubbish, and don't remotely follow the correct addresses for properties laid out by the Royal Mail. Then again must people in the United Kingdon don't either, but that is still no excues for not following the proper Royal Mail approved address format.

    3. Re:Effective Addressing for International Mail by fm6 · · Score: 1

      Frank probably just "reversed-engineered" addresses he'd seen. Like most geeks, he prefers learning by doing, not by reading the documentation.

  5. Freeform! by pv2b · · Score: 3, Informative

    There's nothing more annoying than forms that require you to enter your address in a specific way that doesn't fit for that particular company. If you're shipping to only one country, that's fine, but otherwise:

    What's wrong with just letting the user enter the address in a freeform text field? The user probably knows what his own address is, and can write it in a form that the local post office can deliver to. Just include a dropdown box for the country, and that should be all there's to it.

    1. Re:Freeform! by gl4ss · · Score: 1

      I'd second that.
      give them a free space to slap the address into.

      however, I suspect that companies like the postal code and other boxes as seperate.. and then requiring something valid seeming into each box because that way more people will actually fill out the REAL address.

      but for stuff that the user actually wants to provide a valid address for freeform should do nicely.

      --
      world was created 5 seconds before this post as it is.
    2. Re:Freeform! by Anonymous Coward · · Score: 0

      What's wrong with it??? OMG, nothing really eh, oh, except it's tragically wrong. Terribly, terribly wrong. Sure, use a single unparsable text field. At the same time, say good-bye to proper design, data integrity and manipulation.

      You really need to rethink this. Oh, and by the way, yes, I am an MMI designer.

      You know, questions, and answers such as I've seen here, really leave me shaking my head. Is this really the best we're capable of? If so, dear Lord, please, help us all ...

    3. Re:Freeform! by Anonymous Coward · · Score: 0

      "a MMI" ~ sry

    4. Re:Freeform! by Anonymous Coward · · Score: 0

      Sure, use a single unparsable text field. At the same time, say good-bye to proper design, data integrity and manipulation.

      Under what circumstances would you want to parse or manipulate individual components of multinational addresses? I've worked on dozens of online ordering systems, and never needed to do this once.

    5. Re:Freeform! by Anonymous Coward · · Score: 0

      Sigh ... howabout data aggregation, validation, verification, inter-operability with vendors EDI requirements, etc...

      So, you've worked on dozens of transactional systems, eh? Pity ..

    6. Re:Freeform! by Anonymous Coward · · Score: 0

      data aggregation, validation, verification, inter-operability with vendors EDI requirements, etc...

      If you are doing any of those things, you already know what format you want the data in. This guy just wants to post stuff to people.

      So, you've worked on dozens of transactional systems, eh? Pity ..

      Why? I think you are overestimating the necessity of all that for the average business.

    7. Re:Freeform! by DavidTC · · Score: 1
      No, 'MMI' is presumably pronounced 'em-em-eye', and thus 'an' is correct.

      Unless it's prounounced 'Mmmy' or something, which I rather doubt.

      --
      If corporations are people, aren't stockholders guilty of slavery?
    8. Re:Freeform! by mindstormpt · · Score: 1

      I agree it is the best way, but are you certain everyone would write a complete address? I suspect a lot of them would forget the postcode, some others would forget the city, etc...

    9. Re:Freeform! by Bitsy+Boffin · · Score: 1

      Freeform is all very well, until you have to use the address programatically.

      The classic example would be calculating accurate shipping costs, in that case typically you would want to know country, region, and maybe even city.

      In a freeform field, it wouldn't be possible to distinguish these.

      --
      NZ Electronics Enthusiasts: Check out my Trade Me Listings
  6. google for prior art by hankaholic · · Score: 2, Informative

    Google is your friend. I found a good example quickly, about the fourth entry (one of the first three is the result of the submitter having asked this exact question on oreillynet.com):

    There's an example of what looks like a good solution used at https://www.theperlreview.com/cgi-bin/subscribe.cg i/up

    They make some fields required (name and country would make sense) and others (such as state) are marked "required for some countries", with a big freeform text area marked "Mailing label" with the text "International subscribers: You can tell us what your mailing label should be, following your country's address format".

    This seems a fair way of doing so, and that which fails your parser's ability to determine (ie, countries for which you don't know the convention) can be checked manually, with an additional contact-the-customer-and-verify step if you are really unsure.

    As you contact customers and learn more about their specific formatting needs, update your parser -- use it to check the freeform address format, and perhaps warn the user if it doesn't seem to be valid (but allow them to continue anyways).

    --
    Somebody get that guy an ambulance!
  7. Universal Postal Union by eyeball · · Score: 4, Informative

    Try the Universal Postal Union, specifically documents they have on properly addressing international addresses.

    Also, this looks interesting: International Address Standard UPU S42-1

    (BTW, I know nothing about this stuff, but I found it via Wikipedia, which these days is proving itself more useful than Google.)

    --

    _______
    2B1ASK1
  8. The UPS Store by moonboy · · Score: 1

    Try a UPS Store if you have one near you. The have software that takes the guesswork out of shipping Internationally. Also, you're not necessarily limited to shipping with UPS. Some stores also ship DHL and FedEx.

    --

    Co-founder and designer at Music Nearby: http://musicnearby.com
    1. Re:The UPS Store by Larry+Lightbulb · · Score: 1

      The last time we tried to use a UPS store for sending anything to England they wouldn't believe the address didn't have a house number.

  9. Universal Postal Union by 200_success · · Score: 2, Interesting

    You can get the addressing standard and the worldwide database from the Universal Postal Union.

  10. But zip is a "checksum" they should check! by bluGill · · Score: 2, Informative

    Zip codes, in countries that use them, are checksums. You need them in a separate field because you should check with the post office of that country to make sure it matches with the city. If the zip code and city/state do not match up you should make me verify the address. If the two match up odds are the address is good enough to get things to the right person.

    If you can get someone's mail to the right zip code the post office doesn't really need the rest of the address, just the name. (Though it is much easier to deal with full addresses, so only try this when other options fail) This doesn't work so well if you name is common, but if you name is slightly obscure (which is most names, since obscure only means nobody else in town shares it) you are probably the only one in town with that name, and they can figure out where you live.

    In short, the name and street address are checksums to each other, the local post office will notice a mismatch and try to correct them if they can. City/state, and zip are checksums to each other, and you should check them to be sure you get to the right town.

    Now of course each country is different, but for most there is some variation of the above that you should use to verify the address is likely to be correct.

    Of course checksum isn't the right term. There is math involved. However the concept is the same.

    1. Re:But zip is a "checksum" they should check! by Anonymous Coward · · Score: 1, Interesting

      If you can get someone's mail to the right zip code the post office doesn't really need the rest of the address, just the name. (Though it is much easier to deal with full addresses, so only try this when other options fail) This doesn't work so well if you name is common, but if you name is slightly obscure (which is most names, since obscure only means nobody else in town shares it) you are probably the only one in town with that name, and they can figure out where you live.
      You've never lived in rural America, have you? With some variability based on population size, most American small towns have about a dozen *extremely* common surnames in addition to the more "obscure", as you put it, ones. Typically the common last names will be between 10 and 30 percent of the population, but I've seen some places where fewer about ten last names made up almost *half* the population. Combine that with number of juniors, IIIs, etc. that may be truncated or mangled in mailing information (my mother-in-law gets mail for "Mrs. Iv" all the time) and your advice starts risking a not-insignificant failure rate.
    2. Re:But zip is a "checksum" they should check! by DavidTC · · Score: 2, Interesting
      Yeah, each town has a people who lived here before this was a town, and possibly still own half the place. They also have families that are amazingly fertile, where greatgranddad had 5 kids and now the ones with that name number in a hundreds and half the damn town has someone with that last name as their second cousin. Sometimes these are even the same family.

      OTOH, I know someone with a unique three letter first name, and he lives in a small town where everyone knows him. He has great fun telling people to addess mail to his first name and zip and leave off everything else. He's even gotten an international letter that was:

      {three letter name} {zip code}
      USA

      I.e., using six letters and five numbers, he is uniquely identified in the world. ;)

      --
      If corporations are people, aren't stockholders guilty of slavery?
    3. Re:But zip is a "checksum" they should check! by r00t · · Score: 1
      "amazingly fertile, where greatgranddad had 5 kids"

      That's not fertile at all. Haven't you ever met a Catholic family? My great-great-grandfather had 17 kids. One of my wife's friends has 10 kids, and another one has 8 at age 26. My granddad (and his wife too, sheesh! It takes two!) had 7. My great grandparents had 8.

      Now, a small family would be me. I'm already 30, and I only have a 4th on the way. But hey, the wife's good for another 20 years. I can surely get another 10, no problem.

      Protestants, athiests, and homosexuals would quickly go extinct without straight Catholics to produce them. (remember, birth control is a sin)

    4. Re:But zip is a "checksum" they should check! by duffbeer703 · · Score: 1

      You'd be suprised what gets through.

      I once received a letter from an elderly relative in Ireland addressed to:

      <my name>
      <my town>
      NY
      USA

      --
      Conformity is the jailer of freedom and enemy of growth. -JFK
    5. Re:But zip is a "checksum" they should check! by compwizrd · · Score: 1

      friend of mine has done the same thing, and his name isn't even all that unique.. but he works in a mail sorting facility at a university.. and he's probably the only one named that there.

      i've gotten mail for me that only had a city/postal code on it, no name.

      they used the return address to figure out who it was most likely to go to..a slight advantage of living in a rural area for almost 20 years and the post office people knowing who everyone is.

    6. Re:But zip is a "checksum" they should check! by jamesh · · Score: 1

      It still works though for your example. If everyone with the same last name is probably related, then you can probably just figure out a likely candidate and they'll pass it on to the correct person anyway.

      A few 'probablys' in that paragraph, but it's the postal service. what do you expect :)

  11. ZIP codes by Dark$ide · · Score: 2, Insightful

    Here in the UK we have a mishmash of numbers and letters for our post codes. So whatever you do, don't try to validate it. RG21 7EJ WC1P 1AA E22 3NL EH22 3NL are all valid. There is nothing that pisses me off more than when an internet site tries to validate post code as 5digits or 5digits hyphen 4dgits. Give me a freeform text box, I'll give you my address in the form that MY post office will understand.

    --

    Sigs. We don't need no steenking sigs.

    1. Re:ZIP codes by Random832 · · Score: 1

      you can't even validate it as "2 groups of 3-4 alphanumeric"? it doesn't look very freeform to me.

      --
      We've secretly replaced Slashdot with new Folgers Crystals - let's see if it notices.
    2. Re:ZIP codes by welshie · · Score: 2, Informative
      UK Postcodes CAN be validated - without an address lookup database.

      There is a limited character set : Not all letters are valid in all positions (C, I, K, M, O, V, are not valid in the last two characters), the last three characters are ALWAYS in the form digit letter letter, a UK postcode ALWAYS begins with at least one letter, and ALWAYS contains at least two digits. The recommended layout is to put a space before the last three characters.

      [A-Z]{1,2}\d[A-Z\d]? \d[ABD-HJLNP-UW-Z]{2}

      Within the UK, most sensible address forms will ask for a postcode and a building number or name, and look up on a database sold by Royal Mail (known as PAF, or Postal Address File).

      The Netherlands postcode scheme is really much more clever. It includes check digit algorithms that will tell you if the building number should be odd, even, neither, either)

    3. Re:ZIP codes by moonbender · · Score: 1

      The Netherlands postcode scheme is really much more clever. It includes check digit algorithms that will tell you if the building number should be odd, even, neither, either)

      So two houses next to each other (or facing each other) typically have a different postal code?

      --
      Switch back to Slashdot's D1 system.
    4. Re:ZIP codes by Anonymous Coward · · Score: 0

      No, but the opposite side of the street does. Houses are typically numberes 1,3,5,7,... on one side of the street, and 2,4,6,... on the other.
      Even better, numbering in a street starts on the side closest to the center of the city. And odd numbers are on the left.
      Easy, eh?

    5. Re:ZIP codes by moonbender · · Score: 1

      No, but the opposite side of the street does.

      Yes, that's what I meant when I said "facing each other". I'm in Germany; we don't have seperate postal codes per side of the street - TBH that still sounds kind of odd ;) - but our house numbering scheme is identical, down to the rule to start closest to the city center.

      --
      Switch back to Slashdot's D1 system.
    6. Re:ZIP codes by markxz · · Score: 1

      So two houses next to each other (or facing each other) typically have a different postal code?

      This is the case in the UK as well (although I don't think you would have to look up the computer to find out the side of the street)
      It is confused by some high volume customers having a dedicated box and postcode rather that share a code with their neighbours.

  12. Universal Postal Union by wintermute1974 · · Score: 1

    The Universal Postal Union has been around since 1874, ensuring that post can be mailed around the world without issue.

    The UPU has 190 member countries, and those countries submit mailing information to the UPU, making it the most extensive repository of postal information on earth.

    If you are looking for information on addresses, I would start (and probably stop) with the UPU.

  13. Addressing in England by DjReagan · · Score: 2, Interesting

    Actually while it's customary to have many lines of address in England, all that is actually required is the house number, and the post-code. Everything else can be derived from those two. Having all the extra info just makes sure if you get the post-code wrong, it will still get to the destination.

    --
    "When I grow up, I want to be a weirdo"
    1. Re:Addressing in England by soliptic · · Score: 1
      You are absolutely correct - in theory.

      On the otherhand it rather overestimates the Royal Mail to actually work this way. I remember hearing about someone once who sent 50 or 60 letters addressed in this fashion. Something like 3 arrived! :o

    2. Re:Addressing in England by DjReagan · · Score: 1

      Then again, delivering a fully addressed envelope is overestimating the Royal Mail these days.

      --
      "When I grow up, I want to be a weirdo"
    3. Re:Addressing in England by qcope · · Score: 1

      A popular view of British postcodes, but not quite correct. Sad that I know this but do a "postcode lookup" DT10 1NA, with a house number of 1 and you'll find that there are 3 distinct properties.... Its this sort of thing that makes software almost work!

  14. duh by Anonymous Coward · · Score: 0

    This has to be the most worthless topic I have every seen.
    "Hey, I'm too much of a moron to go to the UPS, Fedex, or USPS (etc) to figure this out..."

  15. When in doubt, by HotNeedleOfInquiry · · Score: 1

    I ask them to send me an email with their name and address formatted exactly as is their custom.

    --
    "Eve of Destruction", it's not just for old hippies anymore...
  16. Use a multiline input PAGES by Saeed+al-Sahaf · · Score: 1
    ...because of complaints or misunderstandings from places like Ireland (no postalcodes), Germany (postalcode goes before city), Japan and England (many lines of address info needed)...

    How about localized input pages? No one says you have to use the same input page for every country (and it's unlikely you send to more than a 6 or 8 that use different formats), you know that is is possible to tell where visitors come from. How you combine that data into one table is up to you, but shouldn't be a problem.

    --
    "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
    1. Re:Use a multiline input PAGES by yuri+benjamin · · Score: 1

      Saeed read my mind.
      I would do it slighlty diffently - instead of the input page being presented based on IP_based_guess, I would suggest A dropdown box for country to start with, and that takes them to a form based on that country.
      You can get the prefered format from each country's post office's website, eg www.nzpost.co.nz - just search the site for something like "addressing guidelines".

      --
      You make the mistake of thinking you can educate the fundamental stupidity out of people. You can't.
  17. don't sweat it *too* much by Anonymous Coward · · Score: 0

    Hey, it's the CDBaby dude! Rock on.

    I ship CDs and other things overseas, not a LOT but maybe 2-3 pieces per week.

    I've discovered that the foreign post offices don't really care that much. Not as much as the foreign buyers would have you believe (I've never had a problem shipping to Germany for instance using the "american" address layout). The mail goes through as long as all the info is there, somewhere. Some Asian post offices like to see the address in both English and the native language though (good luck with that one).

    Just have a country pull-down then 3 address lines (folks with more lines can combine). At least one address line should be filled out. Also have City, State, Postal Code, and make them all optional. Yeah, what does city/state mean for some folks, but they can manage.

    I know, you're a business and you don't want to have people complaining all the time, or force people to jam their address into the wrong box. But honestly I don't know how you could please everybody without customizing the address form for different countries (and adding a "please choose your country" step or using dynamic HTML or otherwise cluttering up the checkout process).

    I think just having free-form address fields will actually confuse people, who are used to having labeled fields.

    1. Re:don't sweat it *too* much by Anonymous Coward · · Score: 0

      I think just having free-form address fields will actually confuse people

      Wow, your faith in humanity is even less than mine!

      Seriously, people can manage to write their address down on a piece of paper without fields and drop-downs, what makes you think that they can't type their address into a box the same way?

    2. Re:don't sweat it *too* much by DavidTC · · Score: 1
      I think you should provide US address fields, (Or whatever country you ship the most to.) but you should also have a 'freeform' area that says 'If you are international and your address doesn't fit above, please put the entire address in this field instead.'. And gray out the other fields when anything gets typed in there, except the country field. Let them either jam it into the US fields, or they can type it out how it's supposed to look. (Hopefully they know what their address looks like.)

      And make sure you can accept non-latin characters in there. Just try pasting in some cyrillic characters and see if you get them. If you get them and can get them onto your address label, you can get any unicode.

      There are places where it looks like the address will fit, but their post office wants the address the other way around. With area at the top, street in the middle, and name at the bottom.

      And then, if you're mailing international from the US, you have to put the country below that, on its own line, no matter what. Don't forget to stick that line in if they forgot it on their address, or put it in the wrong place. Just because their know their address doesn't mean they remembered to put their country in the right place for the US.

      --
      If corporations are people, aren't stockholders guilty of slavery?
    3. Re:don't sweat it *too* much by yuri+benjamin · · Score: 1

      Seriously, people can manage to write their address down on a piece of paper without fields and drop-downs, what makes you think that they can't type their address into a box the same way?

      Heh! I work in a contact centre. about 20% of my customers can't spell the name of their street. About 10% can't even pronounce it.
      And yet these people order stuff on "Teh Intarweb" all the time.

      In Auckland, New Zealands largest city (Actually a collection of four cities and a dozen towns that grew and merged into one sprawling metropolis) there are people who put down an address like "123 Streetname, Auckland" with no suburb or postal code. There are often several streets with the same name due to Auckland having been separate cities once upon a time (Auckland proper, Manukau, North Shore and Waitakere).
      These end up "Return to sender".

      --
      You make the mistake of thinking you can educate the fundamental stupidity out of people. You can't.
  18. Support International Character Sets by ddewey · · Score: 1

    I ordered a Firefox T-shirt from the Mozilla Store with international shipping to China. I filled out the shipping address in Chinese characters, but a few days later they sent me an email that said the address just showed up as a bunch of question marks in their software. Thankfully they agreed to let me email them the address as a gif image and they printed out the gif and stuck it on the package. I received the shipment about ten days later.

    If you provide the option of international shipping you should really make sure your software works with international character sets.

    1. Re:Support International Character Sets by DNS-and-BIND · · Score: 1

      China Post understands pinyin just fine, thankyouverymuch. Freakin' showoff.

      --
      Shutting down free speech with violence isn't fighting fascism. It IS fascism!
    2. Re:Support International Character Sets by ddewey · · Score: 1

      You're probably correct if you're sending it to a part of China like Beijing where Mandarin is their first language, but where I live Mandarin is not most people's first language and the people that deliver the mail typically don't understand pinyin. China Post does employ people that read the pinyin and write in the characters next to it, but they usually do a pretty sloppy job and I frequently have problems with such mail being misdirected or delayed.

      I have a friend at a school here who frequently gets mail from foreign countries. Now when any mail addressed in English or pinyin is sent to someone at the school it ends up in her box, because the mail room just assumes it must be for her. It's a pretty annoying situation for her.

    3. Re:Support International Character Sets by DNS-and-BIND · · Score: 1
      That's why someone hand-scribbles the address in Chinese during processing. I live in a smaller city outside Hangzhou, so don't tell me it doesn't happen.

      As for your friend...Chinese efficiency. What can I say?

      --
      Shutting down free speech with violence isn't fighting fascism. It IS fascism!
  19. Huh? by Anonymous Coward · · Score: 0

    England (many lines of address info needed).

    What? You need:

    Name
    House number
    Post code

    To get something to somebody. It's usually a good idea to include a bit of redundancy, most people use:

    Name
    House number Road Name
    City
    Post Code

  20. They Know Best, Not Your Database by soliptic · · Score: 4, Informative
    I work at an educational institution, as part of the student support team for some Distance Learning programmes. We have somewhere over 1000 students in somewhere over 90 countries.

    I think frankly your best bet here is to be freeform. They know best how their addresses are written. So long as the country goes last, to get the parcel from your country out to the appropriate country, the rest of the address should be written to their custom so that their postal service will be most likely to deliver it.

    I've seen all the things you describe - stuff like "90167 Bucharest" where the postcode precedes the city - and you're just not going to cope with all that if you try and enforce a complex system of validation.

    Our database just has Address1-Address5 (use as many or as few as you want), Postcode (this can be blank), Country (this can't be).

    When we tried entering a lot of addresses into the address book software of a certain well-known courier company, we ran into all sorts of problems. It would keep insisting on postcodes where they weren't appropriate, and so on. It's just more hassle than it's worth, and creates more problems (with literally not being able to enter what you know is correct) than it solves (stopping accidental bad data entry).

  21. Coordinates by degraeve · · Score: 1

    I can't wait until we just give our coordinates as an address.

    beam pkg via UPS to 42.3750 N, 71.1060 W -THX

    1. Re:Coordinates by ibennetch · · Score: 1
      beam pkg via UPS to 42.3750 N, 71.1060 W -THX
      Hmm, I suppose that would be a useful feature for a hospital* to have.

      *at least, that's what I see there when I look at the map... ;-)

      To try to keep this on-topic, I seem to remember something about a proposed system (I think I read about it here) to come up with a decent coordinat-based world-wide grid system for addresses. But I completely forget any details of it other than that it was supposed to be rather precise and short (I think two groups of three charachters, something like A3B FD4 or something along those lines).
    2. Re:Coordinates by Blackeagle_Falcon · · Score: 1

      I laugh at your pathetic degrees, minutes, and seconds! Real geeks use UTM. 12 N 413400 3698000

    3. Re:Coordinates by Muad'Dave · · Score: 1
      Amateur radio operators (among others) use Maidenhead Locator Squares for general location specification. You can add as many digits as necessary to get the desired precision. For HF work, it's sufficient for me to specify "FM17". For VHF work, I use FM17fr.

      --
      Tiller's Rule: Never use a word in written form that you've only heard and never read. You will end up looking foolish.
  22. Ireland & Postcodes by Celt · · Score: 1

    As someone that born/lives in Ireland its extremnely annoying when I order stuff on-line and even when I select Ireland I am still prompted to enter a postcode.
    This generally ends up being N/A or 12345, surely forms should forgo the postcode once Ireland is selected?

    The nearest thing Ireland has to a postcode is Dublin 4 or Dublin 1.

    --
    "WebTV: bringing the Internet into the shallow end of the gene pool since 1995" - Martin Bishop
  23. The more general question by Ankh · · Score: 4, Insightful

    I see this question as a special case of, how should I constrain data supplied by a user?

    Other good examples are telephone numbers (not all countries use ten digits, and sometimes you need to add a note like ask for extension 36914 or ask the receptionist to page me, I don't have a direct line), gender (it may surprise you to know that not everyone identifies as male or female, and not everyone is happy with saying which label they want to apply, so make it optional) and even country (is Taiwan a country? It depends who you ask).

    You need always to be aware that when a computer model of the external physical world disagrees with the external physical world, it's the model that's inaccurate or wrong, not the external physical world. This sounds pretty obvious, but look at the replies to this article and you'll see suggestions that might make me unable to give me my address.

    I've had Web forms ask for my Canadian postal code (by the way, spaces are significant in UK postal codes, and are not in Canadian ones), and then tell me (because they re-used some JacaScript) that a postal code must be five digits. When I tried 00000, the server-side software tried matching that to the billing address of my credit card. As a result I was unable to buy an airline ticket!

    In that case I used the 'phone. It took an hour on hold on an 800 number to place the order, because they had to process my credit card by hand, since their computer system didn't allow Canadian customers to fly from US destinations; I wonder how many millions of dollars they had lost before someone took the time to fight this? In the end I got a letter from support saying I should have used the Canadian and not the US Web page, and when I wrote back saying that's what I had done in fact, and please forward this to the programmers, I got a reply saying the bug was fixed.

    It's still pretty common to find Web sites whose programmers don't have the concept Some people live outside the US. let alone Some people live in the US but have foreign credit cards, as they are temporary residents.

    So when you use the billing address as a "checksum" against the credit card, and find they are different, the right thing to do is to ask the customer for confirmation and then believe the customer.

    Keep a record of the information, so that if they complain later you can work out where they asked things to be shipped, and maybe recover. Obviously, your goal is to deliver the package, so you want clear text that is written to be easily understood, not a legal disclaimer in all-caps that's there so you can slither out of the clutches of a disgruntled customer!

    The principles are early quality It's cheaper and more effective to get good data early on than to correct data later. Using input fields like house number, street name, postal region, county and so forth can help, as can parsing what they type, identifying the various parts, and asking the uer if they are correct. allow the user to insist If the user says their postal code is BEWARE OF THE DOG, the Post Office might not agree, but maybe it's the only way they can work out how to get an extra line of text onto the address label. It's probably better to let them do this than to lose them as a customer. Don't over-model If you are not going to need the individual address fields later, why are you making the customer type them in a form? Identify the mininum you know you'll need and ask yourself if it's really enough. Large forms aer intimidating, and people may be discouraged or complete them incorrectly because they are overwhelemed. Your database may only have twenty customers today, but when it has half a million addresses, consider the cost of storing an extra dozen fields per customer when you don't need them. The Real World is Right

    --
    Live barefoot!
    free engravings/woodcuts
  24. Address Format by austinnichols101 · · Score: 1
    I work with Microsoft Axapta (http://www.microsoft.com/BusinessSolutions/Axapta /default.aspx) and the product has a bit more than just the standard address fields (although the approach could probably be expanded upon.

    One table keeps track of countries (3-Digit/2-Digit/2-Character ISO 3166 code, country name) along with a code for address format. I tend to set up a 1 address format per country even if multiple countries use the same format.

    The address format is displayed as a series of rows in a grid and lets you build an ordered list of fields that make up the address. Here are the choices:

    Address
    Postal (Zip) Code
    City
    County
    State
    Country
    Street Name

    Once you've selected you can select a separator and a newline (flag). Here's the format for a US address:

    Address[Newline=Y]
    City[Newline=N][Separator=", "]
    State[Newline=N][Separator=" "]
    Zip[ ][NewLine=Y]
    Country[NewLine=N]

    What I like about this setup is that the data model is consistent. What I don't expecially like but can live with is that you need a supporting code routine to read/write addresses - you can't just grab them from the table and expect them to look perfect.

    From the UI, the application lets you enter the first two lines of the address then tab to the zip field and enter a postal code. There's a supporting postal code that has the city/state/county/country info that will populate the rest of the fields (so it's less typing) along with a textarea that displays the entire address as it will print.

    1. Re:Address Format by adamjaskie · · Score: 1

      Does it let you skip the postal code field?

      --
      /usr/games/fortune
    2. Re:Address Format by austinnichols101 · · Score: 1

      It does, but the results aren't always what I would like to see. When I saw how they were handling addresses I though to myself that this was an interesting way to deal with the problem but that I could improve upon the implementation.

  25. The correct solution.... by joto · · Score: 1
    ...is probably what you've suggested yourself.

    (I'm happy to be of any help later too :-)

  26. Foreign Characters by packrat0x · · Score: 2, Insightful

    What if it is easier (for the customer and local Post Office) to use foreign characters in the address label? If you are adding free form text fields, you might want to be prepared for Unicode support of various languages.

    --
    227-3517
  27. Travelocity certainly can't do it by StateOfTheUnion · · Score: 1
    Thank god that someone recongnizes this . . . 6 months ago I bought a airkine ticket from Travelocity and had it shipped to Spain. . . They completely screwed up the address. They have a country field in their delivery address section, but they seem to have no clue what to do with the rest of the information.

    They got the region (state) wrong. Barcelona is not just a city, its also a region (equivalent to a state in Spain). Someone decided that it must be my city (It's not). They seem to have no way of handling the neighborhood (subset of a city but bigger than a street) and of course they didn't put the zip in the right place (before the city).

    It took two and a half weeks and several calls to FedEx to sort this out. Travelocity's customer service absolutely refused to take ownership of the problem. They seem to think that they know my address better than I do. Kudos to those of you that recoginize that the US doesn't set the standard for international addressing.

    Needless to say, I tell most of the expats I meet to avoid Travelocity like the plague . . .

    1. Re:Travelocity certainly can't do it by The+Cydonian · · Score: 2, Interesting
      Which, again, is one of the pleasures of ex-pat life in Singapore. See, Singapore is a city, state, region and country all rolled into one, and every building here has a unique postal code, so as long as I get my postal code right, I know my address can handle any mutilation by any shipping company.

      The downside, of course, is that postal codes, by extension, become traceable private information, so you'd have to start zealously guarding that as well.

  28. Associative not relational databases by jbolden · · Score: 2, Interesting

    Which you are discussion is very difficult to do using relational databases. The whole theory of associative databases is to allow data usually in a particular form but to allow for exceptions. Its an entirely different theory of datamodeling and needs to be introduced at the earliest stages of design.

    That's a lot to ask for a small percentage of the market. It may not be the case for most business that, "'better to let them do this than to lose them as a customer" it might just be better to lose them as a customer in terms of profits.

    OTOH for people who just need to have flexability associative rather than relational models give one most of the advantages of a rigid relational system with requiring rigidity.

    1. Re:Associative not relational databases by Ankh · · Score: 1

      Thanks for the reply - you make a good point.

      The relational model is an approximation, of course, and where it doesn't quite fit, you have to decide whether to lose a few customers or to tweak your model.

      In the case of addresses, "use alternative address for this customer" is just fine for most purposes, especially if the final printed package will be checked by a human when the label is fastened, and fits within a relational database.

      Liam

      --
      Live barefoot!
      free engravings/woodcuts
    2. Re:Associative not relational databases by jbolden · · Score: 1

      That BTW depends on how you do your shipping. Most people don't ship like the person who started this thread. They automated address correction software, automated customer tracking, for small packages they send the stuff to a presort house, use intellegent inserters... There may not be a human fastening the label at all.

    3. Re:Associative not relational databases by Ankh · · Score: 1

      True, I was trying to reply in the context of the original question. If you subcontract to a fulfillment house, for example, you may well have to supply fields provided by their Web service API or whatever. But if you design some flexibility into your system from the beginning, the extra customer service can help you grow, and even if you have to deal with a small percentage of orders by hand or weed them out and send them to a separate agent it might still be worth it, as long as you can do the filtering automatically.

      Liam

      --
      Live barefoot!
      free engravings/woodcuts
  29. Ditto by MarkusQ · · Score: 1

    I'm working outside the US at the moment, and my offical address is (in the local language) something along the lines of "In this district of this town, take the road to the Monistary, turn left when you see a sign saying such and such, and look for so and so; it's building #1."

    --MarkusQ

  30. fraud by r00t · · Score: 1

    No, we will be checking that your billing address
    matches the shipping address. Sorry. Shipping to
    Romania or Nigeria is also a no-go.

    1. Re:fraud by Ankh · · Score: 1

      Maybe you are shipping things that your country doesn't allow to be sent to those places, I don't know. I don't see anything wrong with sending things to Romania or Nigeria, as long as you get paid.

      If you require that my billing address match the shipping address, you had beeter not be in the gift business. I have many times sent people christmas or birthday presents that I ordered online. I paid, and the item was shipped elsewhere. Even Amazon manages this.

      Liam

      --
      Live barefoot!
      free engravings/woodcuts
  31. The way I do it by webhat · · Score: 1

    [Company Name]
    [c/o] First & LastName
    StreetName Number[-Appartment/Suite]
    COUNTRYCODE PostalCode, City
    Country

    AFAIK the internationally accepted way of putting a country code in is as part of, ie preceding, the postalcode. I just append country for the casual reader, such as the postman.

    Which means my PC in Switzerland is:

    CH [pc], Zurich

    and my PC in The Netherlands is:

    NL [pc], Amsterdam

    --
    'I am become Shiva, destroyer of worlds'
    1. Re:The way I do it by webhat · · Score: 1


      For those thinking I forgot the state, this is part of the postalcode.

      --
      'I am become Shiva, destroyer of worlds'
  32. Easy. by Electroly · · Score: 1

    Free-form text entry box.

    The user knows how to write an address that will end up at their doorstep. You don't need to hold their hands (or step on them) with City, State, Zip, etc. fields.

  33. Incompletely specified from a UI point of view by pocari · · Score: 1
    How cooperative are the users? Are you just being nosy and forcing them to register for something so you can send them junk mail? Then you probably need to check everything and be annoying. But if they're paying money for something that they won't get if they screw up their address, then they are probably motivated to type the information correctly.

    Also, will a human being review the label before shipment anyway? Will you get a phone number or e-mail address so you can catch mistakes that slip through? That remains the best way to make sure you get it right.

    I find it extremely irritating to pick a country out of a list of all the countries in the world. Instead of a drop-down list, it would be better to let them type the country name and correct the typos and common misspellings. (When you do so, you might want to give the user another chance to check for other problems.) Are your customers really equally likely to be in any of the world's countries?

    Finally, the USPS didn't like the format of many of the addresses in my Palm Pilot when I tried out Endicia a few months ago. I am actually pretty careful about these things, and have done bulk mail encoding before. But the post office wants addresses to look as ugly and institutional as possible. So if you used the USPS's pretty extensive checks, you would be irritating your customers who like to get their mail addressed to "One Broadway" instead of 1 BROADWAY ST or "451 Second St., Apartment #31" instead of 451 2ND ST UNIT 31. I would rather address mail to my customers using the way they want to see their addresses, not how the post office computers say they should look.