Find file
Fetching contributors…
Cannot retrieve contributors at this time
918 lines (900 sloc) 25.2 KB
<?php
class Geography {
static $STATES = array(
'US'=>array(
'AL'=>"Alabama",
'AK'=>"Alaska",
'AZ'=>"Arizona",
'AR'=>"Arkansas",
'CA'=>"California",
'CO'=>"Colorado",
'CT'=>"Connecticut",
'DE'=>"Delaware",
'DC'=>"District Of Columbia",
'FL'=>"Florida",
'GA'=>"Georgia",
'HI'=>"Hawaii",
'ID'=>"Idaho",
'IL'=>"Illinois",
'IN'=>"Indiana",
'IA'=>"Iowa",
'KS'=>"Kansas",
'KY'=>"Kentucky",
'LA'=>"Louisiana",
'ME'=>"Maine",
'MD'=>"Maryland",
'MA'=>"Massachusetts",
'MI'=>"Michigan",
'MN'=>"Minnesota",
'MS'=>"Mississippi",
'MO'=>"Missouri",
'MT'=>"Montana",
'NE'=>"Nebraska",
'NV'=>"Nevada",
'NH'=>"New Hampshire",
'NJ'=>"New Jersey",
'NM'=>"New Mexico",
'NY'=>"New York",
'NC'=>"North Carolina",
'ND'=>"North Dakota",
'OH'=>"Ohio",
'OK'=>"Oklahoma",
'OR'=>"Oregon",
'PA'=>"Pennsylvania",
'RI'=>"Rhode Island",
'SC'=>"South Carolina",
'SD'=>"South Dakota",
'TN'=>"Tennessee",
'TX'=>"Texas",
'UT'=>"Utah",
'VT'=>"Vermont",
'VA'=>"Virginia",
'WA'=>"Washington",
'WV'=>"West Virginia",
'WI'=>"Wisconsin",
'WY'=>"Wyoming"
),
/**
Canadian Provinces
*/
'CA'=>array(
"BC"=>"British Columbia",
"ON"=>"Ontario",
"NL"=>"Newfoundland and Labrador",
"NS"=>"Nova Scotia",
"PE"=>"Prince Edward Island",
"NB"=>"New Brunswick",
"QC"=>"Quebec",
"MB"=>"Manitoba",
"SK"=>"Saskatchewan",
"AB"=>"Alberta",
"NT"=>"Northwest Territories",
"NU"=>"Nunavut",
"YT"=>"Yukon Territory"
),
/**
Mexican States
*/
'MX'=>array(
"AG"=>"Aguascalientes",
"BC"=>"Baja California Norte",
"BS"=>"Baja California Sur",
"CH"=>"Chihuahua",
"CL"=>"Colima",
"CM"=>"Campeche",
"CO"=>"Coahuila",
"CS"=>"Chiapas",
"DF"=>"Distrito Federal",
"DG"=>"Durango",
"GR"=>"Guerrero",
"GT"=>"Guanajuato",
"HG"=>"Hidalgo",
"JA"=>"Jalisco",
"MI"=>"Michoacan",
"MO"=>"Morelos",
"NA"=>"Nayarit",
"NL"=>"Nuevo Leon",
"OA"=>"Oaxaca",
"PU"=>"Puebla",
"QR"=>"Quintana Roo",
"QT"=>"Queretaro",
"SI"=>"Sinaloa",
"SL"=>"San Luis Potosi",
"SO"=>"Sonora",
"TB"=>"Tabasco",
"TL"=>"Tlaxcala",
"TM"=>"Tamaulipas",
"VE"=>"Veracruz",
"YU"=>"Yucatan",
"ZA"=>"Zacatecas"
),
/**
German States
*/
'DE'=>array(
'BW'=>"Baden-Württemberg",
'BY'=>"Bavaria (Bayern)",
'BE'=>"Berlin",
'BB'=>"Brandenburg BB",
'HB'=>"Bremen (Freie Hansestadt Bremen)",
'HH'=>"Hamburg",
'HE'=>"Hesse (Hessen)",
'MV'=>"Mecklenburg-Vorpommern",
'NI'=>"Lower Saxony (Niedersachsen)",
'NW'=>"North Rhine-Westphalia (Nordrhein-Westfalen)",
'RP'=>"Rhineland-Palatinate (Rheinland-Pfalz)",
'SL'=>"Saarland",
'SN'=>"Saxony (Sachsen)",
'ST'=>"Saxony-Anhalt (Sachsen-Anhalt)",
'SH'=>"Schleswig-Holstein",
'TH'=>"Thuringia (Thüringen)",
),
/**
Australian States
*/
'AU'=>array(
"NSW"=>"New South Wales",
"VIC"=>"Victoria",
"QLD"=>"Queensland",
"TAS"=>"Tasmania",
"SA"=>"South Australia",
"WA"=>"Western Australia",
"NT"=>"Northern Territory",
"ACT"=>"Australian Capital Terrirory"
),
/**
United Kingdom Counties
*/
'GB'=>array("Aberdeenshire"=>"Aberdeenshire","Angus/Forfarshire"=>"Angus/Forfarshire","Argyllshire"=>"Argyllshire",
"Ayrshire"=>"Ayrshire","Banffshire"=>"Banffshire","Bedfordshire"=>"Bedfordshire","Berkshire"=>"Berkshire",
"Berwickshire"=>"Berwickshire","Blaenau Gwent"=>"Blaenau Gwent","Bridgend"=>"Bridgend",
"Buckinghamshire"=>"Buckinghamshire","Buteshire"=>"Buteshire","Caerphilly"=>"Caerphilly","Caithness"=>"Caithness",
"Cambridgeshire"=>"Cambridgeshire","Cardiff"=>"Cardiff","Carmarthenshire"=>"Carmarthenshire",
"Ceredigion"=>"Ceredigion","Cheshire"=>"Cheshire","Clackmannanshire"=>"Clackmannanshire",
"Conwy"=>"Conwy","Cornwall"=>"Cornwall","Cromartyshire"=>"Cromartyshire","Cumberland"=>"Cumberland",
"Denbighshire"=>"Denbighshire","Derbyshire"=>"Derbyshire","Devon"=>"Devon","Dorset"=>"Dorset",
"Dumfriesshire"=>"Dumfriesshire","Dunbartonshire/Dumbartonshire"=>"Dunbartonshire/Dumbartonshire",
"Durham"=>"Durham","East Lothian/Haddingtonshire"=>"East Lothian/Haddingtonshire","Essex"=>"Essex","Fife"=>"Fife",
"Flintshire"=>"Flintshire","Gloucestershire"=>"Gloucestershire","Gwynedd"=>"Gwynedd","Hampshire"=>"Hampshire",
"Herefordshire"=>"Herefordshire","Hertfordshire"=>"Hertfordshire","Huntingdonshire"=>"Huntingdonshire",
"Inverness-shire"=>"Inverness-shire","Isle of Anglesey"=>"Isle of Anglesey","Kent"=>"Kent",
"Kincardineshire"=>"Kincardineshire","Kinross-shire"=>"Kinross-shire","Kirkcudbrightshire"=>"Kirkcudbrightshire",
"Lanarkshire"=>"Lanarkshire","Lancashire"=>"Lancashire","Leicestershire"=>"Leicestershire",
"Lincolnshire"=>"Lincolnshire","Merthyr Tydfil"=>"Merthyr Tydfil","Middlesex"=>"Middlesex",
"Midlothian/Edinburghshire"=>"Midlothian/Edinburghshire","Monmouthshire"=>"Monmouthshire",
"Morayshire"=>"Morayshire","Nairnshire"=>"Nairnshire","Neath Port Talbot"=>"Neath Port Talbot",
"Newport"=>"Newport","Norfolk"=>"Norfolk","Northamptonshire"=>"Northamptonshire",
"Northumberland"=>"Northumberland","Nottinghamshire"=>"Nottinghamshire","Orkney"=>"Orkney",
"Oxfordshire"=>"Oxfordshire","Peeblesshire"=>"Peeblesshire","Pembrokeshire"=>"Pembrokeshire",
"Perthshire"=>"Perthshire","Powys"=>"Powys","Renfrewshire"=>"Renfrewshire",
"Rhondda Cynon Taff"=>"Rhondda Cynon Taff","Ross-shire"=>"Ross-shire","Roxburghshire"=>"Roxburghshire",
"Rutland"=>"Rutland","Selkirkshire"=>"Selkirkshire","Shetland"=>"Shetland","Shropshire"=>"Shropshire",
"Somerset"=>"Somerset","Staffordshire"=>"Staffordshire","Stirlingshire"=>"Stirlingshire","Suffolk"=>"Suffolk",
"Surrey"=>"Surrey","Sussex"=>"Sussex","Sutherland"=>"Sutherland","Swansea"=>"Swansea","Torfaen"=>"Torfaen",
"Vale of Glamorgan"=>"Vale of Glamorgan","Warwickshire"=>"Warwickshire",
"West Lothian/Linlithgowshire"=>"West Lothian/Linlithgowshire","Westmorland"=>"Westmorland",
"Wigtownshire"=>"Wigtownshire","Wiltshire"=>"Wiltshire",
"Worcestershire"=>"Worcestershire","Wrexham"=>"Wrexham","Yorkshire"=>"Yorkshire"
),
// Albania: Prefectures ("qarks")
'AL' => array(
'BER' => 'Berat',
'DIB' => 'Dib&euml;r',
'DUR' => 'Durr&euml;s',
'ELB' => 'Elbasan',
'FIE' => 'Fier',
'GJI' => 'Gjirokast&euml;r',
'KOR' => 'Kor&ccedil;&euml;',
'KUK' => 'Kuk&euml;s',
'LEZ' => 'Lezh&euml;',
'SHK' => 'Shkod&euml;r',
'TIR' => 'Tiran&euml;',
'VLO' => 'Vlor&euml;'
),
// Switzerland: Cantons
'CH' => array(
'AG' => 'Aargau',
'AI' => 'Appenzell Innerrhoden',
'AR' => 'Appenzell Ausserrhoden',
'BE' => 'Bern',
'BL' => 'Basel-Landschaft',
'BS' => 'Basel-Stadt',
'FR' => 'Freiburg',
'GE' => 'Genf',
'GL' => 'Glarus',
'JU' => 'Graub&#252;nden',
'JU' => 'Jura',
'LU' => 'Luzern',
'NE' => 'Neuenburg',
'NW' => 'Nidwalden',
'OW' => 'Obwalden',
'SG' => 'St. Gallen',
'SH' => 'Schaffhausen',
'SO' => 'Solothurn',
'SZ' => 'Schwyz',
'TG' => 'Thurgau',
'TI' => 'Tessin',
'UR' => 'Uri',
'VD' => 'Waadt',
'VS' => 'Wallis',
'ZG' => 'Zug',
'ZH' => 'Z&#252;rich'
),
// Spain: Provinces
'ES' => array(
'AA' => '&Aacute;lava' ,
'AB' => 'Albacete' ,
'AN' => 'Alicante' ,
'AM' => 'Almer&iacute;a' ,
'AS' => 'Asturias' ,
'AV' => '&Aacute;vila' ,
'BD' => 'Badajoz' ,
'BL' => 'Baleares' ,
'BR' => 'Barcelona' ,
'BU' => 'Burgos' ,
'CC' => 'C&aacute;ceres' ,
'CD' => 'C&aacute;diz' ,
'CN' => 'Cantabria' ,
'CS' => 'Castell&oacute;n' ,
'CE' => 'Ceuta' ,
'CR' => 'Ciudad Real' ,
'CO' => 'C&oacute;rdoba' ,
'CU' => 'Cuenca' ,
'GN' => 'Gerona' ,
'GD' => 'Granada' ,
'GJ' => 'Guadalajara' ,
'GP' => 'Guip&uacute;zcoa' ,
'HL' => 'Huelva' ,
'HS' => 'Huesca' ,
'JA' => 'Ja&eacute;n' ,
'AC' => 'La Coru&ntilde;a' ,
'LR' => 'La Rioja' ,
'LP' => 'Las Palmas' ,
'LN' => 'Le&oacute;n' ,
'LD' => 'L&eacute;rida' ,
'LG' => 'Lugo' ,
'MD' => 'Madrid' ,
'MG' => 'M&aacute;laga' ,
'ME' => 'Melilla' ,
'MR' => 'Murcia' ,
'NV' => 'Navarra' ,
'OR' => 'Orense' ,
'PL' => 'Palencia' ,
'PV' => 'Pontevedra' ,
'SL' => 'Salamanca' ,
'SC' => 'Santa Cruz de Tenerife' ,
'SG' => 'Segovia' ,
'SV' => 'Sevilla' ,
'SR' => 'Soria' ,
'TG' => 'Tarragona' ,
'TE' => 'Teruel' ,
'TD' => 'Toledo' ,
'VN' => 'Valencia' ,
'VD' => 'Valladolid' ,
'VZ' => 'Vizcaya' ,
'ZM' => 'Zamora' ,
'ZG' => 'Zaragoza'
),
// Finland: Regions
'FI' => array(
'&Aring;AL' => '&Aring;land',
'EKA' => 'Etel&auml;-Karjala [South Karelia]',
'EPO' => 'Etel&auml;-Pohjanmaa [South Ostrobothnia]',
'ESA' => 'Etel&auml;-Savo',
'KAI' => 'Kainuu',
'KH&Auml;' => 'Kanta-H&auml;me',
'KPO' => 'Keski-Pohjanmaa [Central Ostrobothnia]',
'KSO' => 'Keski-Suomi [Central Finland]',
'KYM' => 'Kymenlaakso (Kymmenedalen)',
'LAP' => 'Lappi [Lapland]',
'PH&Auml;' => 'P&auml;ij&auml;t-H&auml;me',
'PIR' => 'Pirkanmaa',
'POH' => 'Pohjanmaa [Ostrobothnia]',
'PKA' => 'Pohjois-Karjala [North Karelia]',
'PPO' => 'Pohjois-Pohjanmaa [North Ostrobothnia]',
'PSA' => 'Pohjois-Savo',
'SAT' => 'Satakunta',
'UUS' => 'Uusimaa (Nyland)',
'VSS' => 'Varsinais-Suomi (Egentliga Finland)'
),
// France: Regions
'FR' => array(
'ALS' => 'Alsace',
'AQU' => 'Aquitaine',
'AUV' => 'Auvergne',
'BAS' => 'Basse-Normandie [Lower Normandy]',
'BOU' => 'Bourgogne [Burgundy]',
'BRE' => 'Bretagne [Brittany]',
'CEN' => 'Centre',
'CHA' => 'Champagne - Ardenne',
'COR' => 'Corse',
'FRA' => 'Franche-Comt&eacute;',
'HAU' => 'Haute-Normandie [Upper Normandy]',
'ILE' => '&Icirc;le-de-France',
'LAN' => 'Languedoc - Roussillon',
'LIM' => 'Limousin',
'LOR' => 'Lorraine',
'MID' => 'Midi - Pyr&eacute;n&eacute;es',
'NOR' => 'Nord - Pas-de-Calais',
'PAY' => 'Pays de la Loire',
'PIC' => 'Picardie',
'POI' => 'Poitou - Charentes',
'PRO' => 'Provence - Alpes - C&ocirc;te d\'Azur',
'RHO' => 'Rh&ocirc;ne - Alpes'
),
// Greece: Regions
'GR' => array(
'AOR' => '&Aacute;gio &Oacute;ros [Mount Athos]',
'AMT' => 'Anatolik&iacute; Makedon&iacute;a &amp; Thrak&iacute; [East Macedonia &amp; Thrace]',
'ATT' => 'Attik&iacute; [Attica]',
'DEL' => 'Dytik&iacute; Ell&aacute;da [Western Greece]',
'DMD' => 'Dytik&iacute; Makedon&iacute;a [West Macedonia]',
'ION' => 'I&oacute;nia Nisi&aacute; [Ionian Islands]',
'IPI' => '&Iacute;piros [Epirus]',
'KMD' => 'Kedrik&iacute; Makedon&iacute;a [Central Macedonia]',
'KRI' => 'Kr&iacute;ti [Crete]',
'NAI' => 'N&oacute;tio Aiga&iacute;o [South Aegean]',
'PEL' => 'Pelop&oacute;nnisos [Peloponnese]',
'SEL' => 'Stere&aacute; Ell&aacute;da [Central Greece]',
'THE' => 'Thessal&iacute;a [Thessaly]',
'VAI' => 'V&oacute;rio Aiga&iacute;o [Northern Aegean]'
),
// Hungary: Counties
'HU' => array(
'BAC' => 'B&aacute;cs-Kiskun',
'BAR' => 'Baranya',
'BEK' => 'B&eacute;k&eacute;s',
'BOR' => 'Borsod-Aba&uacute;j-Zempl&eacute;n',
'BUD' => 'Budapest',
'CSO' => 'Csongr&aacute;d',
'FEJ' => 'Fej&eacute;r',
'GY&Ouml;' => 'Gyor-Moson-Sopron',
'HAJ' => 'Hajd&uacute;-Bihar',
'HEV' => 'Heves',
'JAS' => 'J&aacute;sz-Nagykun-Szolnok',
'KOM' => 'Kom&aacute;rom-Esztergom',
'NOG' => 'N&oacute;gr&aacute;d',
'PES' => 'Pest',
'SOM' => 'Somogy',
'SZA' => 'Szabolcs-Szatm&aacute;r-Bereg',
'TOL' => 'Tolna',
'VAS' => 'Vas',
'VES' => 'Veszpr&eacute;m',
'ZAL' => 'Zala'
),
// Ireland: Counties
'IE' => array(
'G' => 'Galway (incl. Galway City)',
'LM' => 'Leitrim',
'MO' => 'Mayo',
'RN' => 'Roscommon',
'SO' => 'Sligo',
'CW' => 'Carlow',
'D' => 'Dublin',
'DR' => 'D&uacute;n Laoghaire-Rathdown',
'FG' => 'Fingal',
'KE' => 'Kildare',
'KK' => 'Kilkenny',
'LS' => 'Laois',
'LD' => 'Longford',
'LH' => 'Louth',
'MH' => 'Meath',
'OY' => 'Offaly',
'SD' => 'South Dublin',
'WH' => 'Westmeath',
'WX' => 'Wexford',
'WW' => 'Wicklow',
'CE' => 'Clare',
'C' => 'Cork (incl. Cork City)',
'KY' => 'Kerry',
'LK' => 'Limerick (incl. Limerick City)',
'NT' => 'North Tipperary',
'ST' => 'South Tipperary',
'WD' => 'Waterford (incl. Waterford City)',
'CN' => 'Cavan',
'DL' => 'Donegal',
'MIN' => 'Monaghan'
),
// Netherlands: Provinces
'NL' => array(
'D' => 'Drenthe',
'Fl' => 'Flevoland',
'Fr' => 'Friesland',
'Gld' => 'Gelderland',
'Gr' => 'Groningen',
'L' => 'Limburg',
'N-B' => 'Noord-Brabant',
'N-H' => 'Noord-Holland',
'O' => 'Overijssel',
'U' => 'Utrecht',
'Z' => 'Zeeland',
'Z-H' => 'Zuid-Holland'
),
// Romania: Counties
'RO' => array(
'ALB' => 'Alba',
'ARA' => 'Arad',
'ARG' => 'Arges',
'BAC' => 'Bacau',
'BIH' => 'Bihor',
'BIS' => 'Bistrita-Nasaud',
'BOT' => 'Botosani',
'BRA' => 'Braila',
'BRS' => 'Brasov',
'BUC' => 'Bucuresti',
'BUZ' => 'Buzau',
'CAL' => 'Calarasi',
'CAR' => 'Caras-Severin',
'CLU' => 'Cluj',
'CON' => 'Constanta',
'COV' => 'Covasna',
'DAM' => 'D&acirc;mbovita',
'DOL' => 'Dolj',
'GAL' => 'Galati',
'GIU' => 'Giurgiu',
'GOR' => 'Gorj',
'HAR' => 'Harghita',
'HUN' => 'Hunedoara',
'IAL' => 'Ialomita',
'IAS' => 'Iasi',
'ILF' => 'Ilfov',
'MAR' => 'Maramures',
'MEH' => 'Mehedinti',
'MUR' => 'Mures',
'NEA' => 'Neamt',
'OLT' => 'Olt',
'PRA' => 'Prahova',
'SAL' => 'Salaj',
'SAT' => 'Satu Mare',
'SIB' => 'Sibiu',
'SUC' => 'Suceava',
'TEL' => 'Teleorman',
'TIM' => 'Timis',
'TUL' => 'Tulcea',
'VAL' => 'V&acirc;lcea',
'VAS' => 'Vaslui',
'VRA' => 'Vrancea'
),
// Serbia: Districts
'SR' => array(
'BOR' => 'Bor',
'BRA' => 'Branicevo',
'GBE' => 'Grad Beograd&nbsp;',
'JAB' => 'Jablanica',
'KOL' => 'Kolubara',
'MAC' => 'Macva',
'MOR' => 'Moravica',
'NIS' => 'Ni&scaron;ava',
'PCI' => 'Pcinja',
'PIR' => 'Pirot',
'POD' => 'Podunavlje&nbsp;[Danube]',
'POM' => 'Pomoravlje',
'RSN' => 'Rasina',
'RSK' => 'Ra&scaron;ka',
'SUM' => '&Scaron;umadija',
'TOP' => 'Toplica',
'ZAJ' => 'Zajecar',
'ZLA' => 'Zlatibor',
'JBK' => 'Ju&#382;na Backa&nbsp;',
'JBN' => 'Ju&#382;ni Banat&nbsp;',
'SBK' => 'Severna Backa&nbsp;',
'SBN' => 'Severni Banat&nbsp;',
'SRB' => 'Srednji Banat&nbsp;',
'SRE' => 'Srem',
'ZBK' => 'Zapadna Backa&nbsp;[West Backa]'
),
// Sweden: Counties ("l&auml;n")
'SE' => array(
'BLE' => 'Blekinge l&auml;n',
'DAL' => 'Dalarnas l&auml;n',
'G&Auml;V' => 'G&auml;vleborgs l&auml;n',
'GOT' => 'Gotlands l&auml;n',
'HAL' => 'Hallands l&auml;n',
'J&Auml;M' => 'J&auml;mtlands l&auml;n',
'J&Ouml;N' => 'J&ouml;nk&ouml;pings l&auml;n',
'KAL' => 'Kalmar l&auml;n',
'KRO' => 'Kronobergs l&auml;n',
'NOR' => 'Norrbottens l&auml;n',
'&Ouml;RE' => '&Ouml;rebro l&auml;n',
'&Ouml;ST' => '&Ouml;sterg&ouml;tlands l&auml;n',
'SKA' => 'Sk&aring;ne l&auml;n',
'S&Ouml;D' => 'S&ouml;dermanlands l&auml;n',
'STO' => 'Stockholms l&auml;n',
'UPP' => 'Uppsala l&auml;n',
'V&Auml;R' => 'V&auml;rmlands l&auml;n',
'V&Auml;S' => 'V&auml;sterbottens l&auml;n',
'VNL' => 'V&auml;sternorrlands l&auml;n',
'VML' => 'V&auml;stmanlands l&auml;n',
'VG&Ouml;' => 'V&auml;stra G&ouml;talands l&auml;n'
),
// Czech Republic: Regions
'CZ' => array(
'JC' => 'Jihocesk&yacute; kraj&nbsp;[South Bohemian Region]',
'JM' => 'Jihomoravsk&yacute; kraj&nbsp;[South Moravian Region]',
'KA' => 'Karlovarsk&yacute; kraj&nbsp;[Karlovy Vary Region]',
'KR' => 'Kr&aacute;lov&eacute;hradeck&yacute; kraj&nbsp;[Hradec Kr&aacute;lov&eacute; Region]',
'LI' => 'Libereck&yacute; kraj&nbsp;[Liberec Region]',
'MO' => 'Moravskoslezsk&yacute; kraj&nbsp;[Moravian-Silesian Region]',
'OL' => 'Olomouck&yacute; kraj&nbsp;[Olomouc Region]',
'PA' => 'Pardubick&yacute; kraj&nbsp;[Pardubice Region]',
'PL' => 'Plzensk&yacute; kraj&nbsp;[Plzen Region]',
'PR' => 'Praha&nbsp;(Hlavni mesto Praha) [Prague]',
'ST' => 'Stredocesk&yacute; kraj&nbsp;[Central Bohemian Region]',
'US' => '&Uacute;steck&yacute; kraj&nbsp;[&Uacute;st&iacute; Region]',
'VY' => 'Vysocina',
'ZL' => 'Zl&iacute;nsk&yacute; kraj&nbsp;[Zl&iacute;n Region]'
),
/**
Japanese Prefectures
*/
'JP'=>array(
"Aichi" => "Aichi",
"Akita" => "Akita",
"Aomori" => "Aomori",
"Chiba" => "Chiba",
"Ehime" => "Ehime",
"Fukui" => "Fukui",
"Fukuoka" => "Fukuoka",
"Fukushima" => "Fukushima",
"Gifu" => "Gifu",
"Gumma" => "Gumma",
"Hiroshima" => "Hiroshima",
"Hokkaido" => "Hokkaido",
"Hyogo" => "Hyogo",
"Ibaraki" => "Ibaraki",
"Ishikawa" => "Ishikawa",
"Iwate" => "Iwate",
"Kagawa" => "Kagawa",
"Kagoshima" => "Kagoshima",
"Kanagawa" => "Kanagawa",
"Kochi" => "Kochi",
"Kumamoto" => "Kumamoto",
"Kyoto" => "Kyoto",
"Mie" => "Mie",
"Miyagi" => "Miyagi",
"Miyazaki" => "Miyazaki",
"Nagano" => "Nagano",
"Nagasaki" => "Nagasaki",
"Nara" => "Nara",
"Niigata" => "Niigata",
"Oita" => "Oita",
"Okayama" => "Okayama",
"Okinawa" => "Okinawa",
"Osaka" => "Osaka",
"Saga" => "Saga",
"Saitama" => "Saitama",
"Shiga" => "Shiga",
"Shimane" => "Shimane",
"Shizuoka" => "Shizuoka",
"Tochigi" => "Tochigi",
"Tokushima" => "Tokushima",
"Tokyo" => "Tokyo",
"Tottori" => "Tottori",
"Toyama" => "Toyama",
"Wakayama" => "Wakayama",
"Yamagata" => "Yamagata",
"Yamaguchi" => "Yamaguchi",
"Yamanashi" => "Yamanashi"
),
/**
Provinces of China
*/
'CN'=>array(
'BJ'=>'Beijing',
'TJ'=>'Tianjin',
'HE'=>'Hebei',
'SX'=>'Shanxi',
'NM'=>'Inner Mongolia',
'LN'=>'Liaoning',
'JL'=>'Jilin',
'HL'=>'Heilongjiang',
'SH'=>'Shanghai',
'JS'=>'Jiangsu',
'ZJ'=>'Zhejiang',
'AH'=>'Anhui',
'FJ'=>'Fujian',
'JX'=>'Jiangxi',
'SD'=>'Shandong',
'HA'=>'Henan',
'HB'=>'Hubei',
'HN'=>'Hunan',
'GD'=>'Guangdong',
'GX'=>'Guangxi Zhuang',
'HI'=>'Hainan',
'CQ'=>'Chongqing',
'SC'=>'Sichuan',
'GZ'=>'Guizhou',
'YN'=>'Yunnan',
'XZ'=>'Tibet (Xizang)',
'SN'=>'Shaanxi',
'GS'=>'Gansu',
'QH'=>'Qinghai',
'NX'=>'Ningxia Hui',
'XJ'=>'Xinjiang Uyghur',
'HK'=>'Hong Kong (Xianggang)',
'MC'=>'Macau (Aomen)',
'TW'=>'Taiwan'
),
/**
Indian States and Union Territories
*/
'IN'=>array(
'AP'=>'Andhra Pradesh',
'AR'=>'Arunachal Pradesh',
'AS'=>'Assam',
'BR'=>'Bihar',
'CG'=>'Chhattisgarh',
'GA'=>'Goa',
'GJ'=>'Gujarat',
'HR'=>'Haryana',
'HP'=>'Himachal Pradesh',
'JK'=>'Jammu and Kashmir',
'JH'=>'Jharkhand',
'KA'=>'Karnataka',
'KL'=>'Kerala',
'MP'=>'Madhya Pradesh',
'MH'=>'Maharashtra',
'MN'=>'Manipur',
'ML'=>'Meghalaya',
'MZ'=>'Mizoram',
'NL'=>'Nagaland',
'OR'=>'Orissa',
'PB'=>'Punjab',
'RJ'=>'Rajasthan',
'SK'=>'Sikkim',
'TN'=>'Tamil Nadu',
'TR'=>'Tripura',
'UP'=>'Uttar Pradesh',
'UK'=>'Uttarakhand',
'WB'=>'West Bengal',
'AN'=>'Andaman and Nicobar Islands',
'CH'=>'Chandigarh',
'DB'=>'Dadra and Nagar Haveli',
'DD'=>'Daman and Diu',
'LD'=>'Lakshadweep',
'ND'=>'National Capital Territory',
'PY'=>'Pondicherry'
)
);
static $COUNTRIES = array(
"US" => "United States",
"GB" => "United Kingdom",
"AF" => "Afghanistan",
"AL" => "Albania",
"DZ" => "Algeria",
"AS" => "American Samoa",
"AD" => "Andorra",
"AO" => "Angola",
"AI" => "Anguilla",
"AQ" => "Antarctica",
"AG" => "Antigua And Barbuda",
"AR" => "Argentina",
"AM" => "Armenia",
"AW" => "Aruba",
"AU" => "Australia",
"AT" => "Austria",
"AZ" => "Azerbaijan",
"BS" => "Bahamas",
"BH" => "Bahrain",
"BD" => "Bangladesh",
"BB" => "Barbados",
"BY" => "Belarus",
"BE" => "Belgium",
"BZ" => "Belize",
"BJ" => "Benin",
"BM" => "Bermuda",
"BT" => "Bhutan",
"BO" => "Bolivia",
"BA" => "Bosnia And Herzegowina",
"BW" => "Botswana",
"BV" => "Bouvet Island",
"BR" => "Brazil",
"IO" => "British Indian Ocean Territory",
"BN" => "Brunei Darussalam",
"BG" => "Bulgaria",
"BF" => "Burkina Faso",
"BI" => "Burundi",
"KH" => "Cambodia",
"CM" => "Cameroon",
"CA" => "Canada",
"CV" => "Cape Verde",
"KY" => "Cayman Islands",
"CF" => "Central African Republic",
"TD" => "Chad",
"CL" => "Chile",
"CN" => "China",
"CX" => "Christmas Island",
"CC" => "Cocos (Keeling) Islands",
"CO" => "Colombia",
"KM" => "Comoros",
"CG" => "Congo",
"CD" => "Congo, The Democratic Republic Of The",
"CK" => "Cook Islands",
"CR" => "Costa Rica",
"CI" => "Cote D'Ivoire",
"HR" => "Croatia (Local Name: Hrvatska)",
"CU" => "Cuba",
"CY" => "Cyprus",
"CZ" => "Czech Republic",
"DK" => "Denmark",
"DJ" => "Djibouti",
"DM" => "Dominica",
"DO" => "Dominican Republic",
"TP" => "East Timor",
"EC" => "Ecuador",
"EG" => "Egypt",
"SV" => "El Salvador",
"GQ" => "Equatorial Guinea",
"ER" => "Eritrea",
"EE" => "Estonia",
"ET" => "Ethiopia",
"FK" => "Falkland Islands (Malvinas)",
"FO" => "Faroe Islands",
"FJ" => "Fiji",
"FI" => "Finland",
"FR" => "France",
"FX" => "France, Metropolitan",
"GF" => "French Guiana",
"PF" => "French Polynesia",
"TF" => "French Southern Territories",
"GA" => "Gabon",
"GM" => "Gambia",
"GE" => "Georgia",
"DE" => "Germany",
"GH" => "Ghana",
"GI" => "Gibraltar",
"GR" => "Greece",
"GL" => "Greenland",
"GD" => "Grenada",
"GP" => "Guadeloupe",
"GU" => "Guam",
"GT" => "Guatemala",
"GN" => "Guinea",
"GW" => "Guinea-Bissau",
"GY" => "Guyana",
"HT" => "Haiti",
"HM" => "Heard And Mc Donald Islands",
"VA" => "Holy See (Vatican City State)",
"HN" => "Honduras",
"HK" => "Hong Kong",
"HU" => "Hungary",
"IS" => "Iceland",
"IN" => "India",
"ID" => "Indonesia",
"IR" => "Iran (Islamic Republic Of)",
"IQ" => "Iraq",
"IE" => "Ireland",
"IL" => "Israel",
"IT" => "Italy",
"JM" => "Jamaica",
"JP" => "Japan",
"JO" => "Jordan",
"KZ" => "Kazakhstan",
"KE" => "Kenya",
"KI" => "Kiribati",
"KP" => "Korea, Democratic People's Republic Of",
"KR" => "Korea, Republic Of",
"KW" => "Kuwait",
"KG" => "Kyrgyzstan",
"LA" => "Lao People's Democratic Republic",
"LV" => "Latvia",
"LB" => "Lebanon",
"LS" => "Lesotho",
"LR" => "Liberia",
"LY" => "Libyan Arab Jamahiriya",
"LI" => "Liechtenstein",
"LT" => "Lithuania",
"LU" => "Luxembourg",
"MO" => "Macau",
"MK" => "Macedonia, Former Yugoslav Republic Of",
"MG" => "Madagascar",
"MW" => "Malawi",
"MY" => "Malaysia",
"MV" => "Maldives",
"ML" => "Mali",
"MT" => "Malta",
"MH" => "Marshall Islands",
"MQ" => "Martinique",
"MR" => "Mauritania",
"MU" => "Mauritius",
"YT" => "Mayotte",
"MX" => "Mexico",
"FM" => "Micronesia, Federated States Of",
"MD" => "Moldova, Republic Of",
"MC" => "Monaco",
"MN" => "Mongolia",
"MS" => "Montserrat",
"MA" => "Morocco",
"MZ" => "Mozambique",
"MM" => "Myanmar",
"NA" => "Namibia",
"NR" => "Nauru",
"NP" => "Nepal",
"NL" => "Netherlands",
"AN" => "Netherlands Antilles",
"NC" => "New Caledonia",
"NZ" => "New Zealand",
"NI" => "Nicaragua",
"NE" => "Niger",
"NG" => "Nigeria",
"NU" => "Niue",
"NF" => "Norfolk Island",
"MP" => "Northern Mariana Islands",
"NO" => "Norway",
"OM" => "Oman",
"PK" => "Pakistan",
"PW" => "Palau",
"PA" => "Panama",
"PG" => "Papua New Guinea",
"PY" => "Paraguay",
"PE" => "Peru",
"PH" => "Philippines",
"PN" => "Pitcairn",
"PL" => "Poland",
"PT" => "Portugal",
"PR" => "Puerto Rico",
"QA" => "Qatar",
"RE" => "Reunion",
"RO" => "Romania",
"RU" => "Russian Federation",
"RW" => "Rwanda",
"KN" => "Saint Kitts And Nevis",
"LC" => "Saint Lucia",
"VC" => "Saint Vincent And The Grenadines",
"WS" => "Samoa",
"SM" => "San Marino",
"ST" => "Sao Tome And Principe",
"SA" => "Saudi Arabia",
"SN" => "Senegal",
"SC" => "Seychelles",
"SL" => "Sierra Leone",
"SG" => "Singapore",
"SK" => "Slovakia (Slovak Republic)",
"SI" => "Slovenia",
"SB" => "Solomon Islands",
"SO" => "Somalia",
"ZA" => "South Africa",
"GS" => "South Georgia, South Sandwich Islands",
"ES" => "Spain",
"LK" => "Sri Lanka",
"SH" => "St. Helena",
"PM" => "St. Pierre And Miquelon",
"SD" => "Sudan",
"SR" => "Suriname",
"SJ" => "Svalbard And Jan Mayen Islands",
"SZ" => "Swaziland",
"SE" => "Sweden",
"CH" => "Switzerland",
"SY" => "Syrian Arab Republic",
"TW" => "Taiwan",
"TJ" => "Tajikistan",
"TZ" => "Tanzania, United Republic Of",
"TH" => "Thailand",
"TG" => "Togo",
"TK" => "Tokelau",
"TO" => "Tonga",
"TT" => "Trinidad And Tobago",
"TN" => "Tunisia",
"TR" => "Turkey",
"TM" => "Turkmenistan",
"TC" => "Turks And Caicos Islands",
"TV" => "Tuvalu",
"UG" => "Uganda",
"UA" => "Ukraine",
"AE" => "United Arab Emirates",
"UM" => "United States Minor Outlying Islands",
"UY" => "Uruguay",
"UZ" => "Uzbekistan",
"VU" => "Vanuatu",
"VE" => "Venezuela",
"VN" => "Viet Nam",
"VG" => "Virgin Islands (British)",
"VI" => "Virgin Islands (U.S.)",
"WF" => "Wallis And Futuna Islands",
"EH" => "Western Sahara",
"YE" => "Yemen",
"YU" => "Yugoslavia",
"ZM" => "Zambia",
"ZW" => "Zimbabwe"
);
}