Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: International Addresses

by Stegalex (Chaplain)
on Mar 06, 2002 at 19:25 UTC ( [id://149804]=note: print w/replies, xml ) Need Help??


in reply to International Addresses

Look at Locale::Country and Locale::Subcountry on the CPAN. These modules encapsulate the ISO-3166 standard codes for countries and states, etc.

I like chicken.

Replies are listed 'Best First'.
Re: Re: International Addresses
by krazken (Scribe) on Mar 06, 2002 at 22:02 UTC
    Those seem pretty good to use for lookup table type stuff on a country by country basis, but do you know of anything that does actual address parsing for a particular country? Like that big nasty regex for a vaild email address, only for mailing addresses instead.
      Sorry, I don't know of such a module, and may I say that if you are looking for something that will always correctly parse all addresses for a particular country, you are probably relieving yourself while facing into the breeze. That being said, I think that what you are doing is not very different from a practice called "address correction" in which the postal service corrects the wording of your address to conform to country standards. In the U.S., the software leader in this space is Group One. Also, the postal service should have well publicized regs for this. I wish you luck as this sounds like a thankless task! I like chicken.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://149804]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found