# The problem we had was that we were getting data reports which had ISO # country codes and then the FIPS subdivision codes. So to turn that # back into a place, we needed to produce a table of ISO country/FIPS # name. The easiest way to do THAT was to get a regular FIPS dictionary, # and convert the counbtry code... Except that seemed not to exist. So # here's the one I produced. # # FIPS appear to map many to each ISO. Actually, usually this is a 1-1 # relationship. Sometimes it isn't. In the file fips(-) means there's no # single fips code for this ISO. tryfips(..) contains a colon delimited # string of possible FIPS codes. Eg; ISO(PL) {occupied palestine} maps # to fips(WE) {west bank} or fips(GZ) {gaza}. # # The fields are comma delimited, the names should all be 7bit ASCII # representations. I apologise to any countries I've misnamed. I went # with ISO ones where appropriate. # # field 1 = name. Other fields; "tld()" => top level domain. "fips()" => # FIPS 10-4 code. "iso()" => ISO 3166-2 code. "tryfips()" => possible # fips entries for this area. "notes()" => human readable notes about # the area. # # # iso and fips codes which have a 1-1 relationship. # tlds are generally the iso code. Afghanistan,fips(AF),iso(AF) Albania,fips(AL),iso(AL) Algeria,fips(AG),iso(DZ) American Samoa,fips(AQ),iso(AS) Andorra,fips(AN),iso(AD) Angola,fips(AO),iso(AO) Anguilla,fips(AV),iso(AI) Antarctica,fips(AY),iso(AQ) Antigua and Barbuda,fips(AC),iso(AG) Argentina,fips(AR),iso(AR) Armenia,fips(AM),iso(AM) Aruba,fips(AA),iso(AW) Australia,fips(AS),iso(AU) Austria,fips(AU),iso(AT) Azerbaijan,fips(AJ),iso(AZ) Bahamas,fips(BF),iso(BS) Bahrain,fips(BA),iso(BH) Bangladesh,fips(BG),iso(BD) Barbados,fips(BB),iso(BB) Belarus,fips(BO),iso(BY) Belgium,fips(BE),iso(BE) Belize,fips(BH),iso(BZ) Benin,fips(BN),iso(BJ) Bermuda,fips(BD),iso(BM) Bhutan,fips(BT),iso(BT) Bolivia,fips(BL),iso(BO) Bosnia and Herzegovina,fips(BK),iso(BA) Botswana,fips(BC),iso(BW) Bouvet Island,fips(BV),iso(BV),tld(bv) Brazil,fips(BR),iso(BR) British Indian Ocean Territory,fips(IO),iso(IO) Brunei Darussalam,fips(BX),iso(BN) Bulgaria,fips(BU),iso(BG) Burkina Faso,fips(UV),iso(BF) Burundi,fips(BY),iso(BI) Cambodia,fips(CB),iso(KH) Cameroon,fips(CM),iso(CM) Canada,fips(CA),iso(CA) Cape Verde,fips(CV),iso(CV) Cayman Islands,fips(CJ),iso(KY) Central African Republic,fips(CT),iso(CF) Chad,fips(CD),iso(TD) Chile,fips(CI),iso(CL) Christmas Island,fips(KT),iso(CX) Cocos (Keeling) Islands,fips(CK),iso(CC) Colombia,fips(CO),iso(CO) Comoros,fips(CN),iso(KM) Democratic Republic of the Congo,fips(CF),iso(CD) Cook Islands,fips(CW),iso(CK) Costa Rica,fips(CS),iso(CR) Cote d'Ivoire,fips(IV),iso(CI) Croatia,fips(HR),iso(HR) Cuba,fips(CU),iso(CU) Cyprus,fips(CY),iso(CY) Czech Republic,fips(EZ),iso(CZ) Denmark,fips(DA),iso(DK) Djibouti,fips(DJ),iso(DJ) Dominica,fips(DO),iso(DM) Dominican Republic,fips(DR),iso(DO) Ecuador,fips(EC),iso(EC) Egypt,fips(EG),iso(EG) El Salvador,fips(ES),iso(SV) Equatorial Guinea,fips(EK),iso(GQ) Eritrea,fips(ER),iso(ER) Estonia,fips(EN),iso(EE) Ethiopia,fips(ET),iso(ET) Falkland Islands (Malvinas),fips(FK),iso(FK) Faroe Islands,fips(FO),iso(FO) Federated States of Micronesia,fips(FM),iso(FM) Fiji,fips(FJ),iso(FJ) Finland,fips(FI),iso(FI) France,fips(FR),iso(FR) French Guiana,fips(FG),iso(GF) French Polynesia,fips(FP),iso(PF) French Southern Territories,fips(FS),iso(TF),tld(tf),tryfips(JU:TE:EU:BS) Gabon,fips(GB),iso(GA) Gambia,fips(GA),iso(GM) Georgia,fips(GG),iso(GE) Germany,fips(GM),iso(DE) Ghana,fips(GH),iso(GH) Gibraltar,fips(GI),iso(GI) Greece,fips(GR),iso(GR) Greenland,fips(GL),iso(GL) Grenada,fips(GJ),iso(GD) Guadeloupe,fips(GP),iso(GP) Guam,fips(GQ),iso(GU) Guatemala,fips(GT),iso(GT) Guernsey,fips(GK),iso(GG) Guinea-Bissau,fips(PU),iso(GW) Guinea,fips(GV),iso(GN) Guyana,fips(GY),iso(GY) Haiti,fips(HA),iso(HT) Heard Island and McDonald Islands,fips(HM),iso(HM) Honduras,fips(HO),iso(HN) Hong Kong,fips(HK),iso(HK) Hungary,fips(HU),iso(HU) Iceland,fips(IC),iso(IS) India,fips(IN),iso(IN) Indonesia,fips(ID),iso(ID) Iran,fips(IR),iso(IR) Iraq,fips(IZ),iso(IQ) Isle of Man,fips(IM),iso(IM) Israel,fips(IS),iso(IL) Italy,fips(IT),iso(IT) Jamaica,fips(JM),iso(JM) Japan,fips(JA),iso(JP) Jersey,fips(JE),iso(JE) Jordan,fips(JO),iso(JO) Kazakhstan,fips(KZ),iso(KZ) Kenya,fips(KE),iso(KE) Kiribati,fips(KR),iso(KI) Democratic People's Republic of Korea (North Korea),fips(KN),iso(KP) Republic of Korea (South Korea),fips(KS),iso(KR) Republic of Ireland,fips(EI),iso(IE) Kuwait,fips(KU),iso(KW) Kyrgyzstan,fips(KG),iso(KG) Laos,fips(LA),iso(LA) Latvia,fips(LG),iso(LV) Lebanon,fips(LE),iso(LB) Lesotho,fips(LT),iso(LS) Liberia,fips(LI),iso(LR) Libya,fips(LY),iso(LY) Liechtenstein,fips(LS),iso(LI) Lithuania,fips(LH),iso(LT) Luxembourg,fips(LU),iso(LU) Macau,fips(MC),iso(MO) Republic of Macedonia,fips(MK),iso(MK) Madagascar,fips(MA),iso(MG) Malawi,fips(MI),iso(MW) Malaysia,fips(MY),iso(MY) Maldives,fips(MV),iso(MV) Mali,fips(ML),iso(ML) Malta,fips(MT),iso(MT) Marshall Islands,fips(RM),iso(MH) Martinique,fips(MB),iso(MQ) Mauritania,fips(MR),iso(MR) Mauritius,fips(MP),iso(MU) Mayotte,fips(MF),iso(YT) Mexico,fips(MX),iso(MX) Moldova,fips(MD),iso(MD) Monaco,fips(MN),iso(MC) Mongolia,fips(MG),iso(MN) Montenegro,fips(MJ),iso(ME),tld(me) Montserrat,fips(MH),iso(MS) Morocco,fips(MO),iso(MA) Mozambique,fips(MZ),iso(MZ) Myanmar,fips(BM),iso(MM) Namibia,fips(WA),iso(NA) Nauru,fips(NR),iso(NR) Nepal,fips(NP),iso(NP) Netherlands Antilles,fips(NT),iso(AN) Netherlands,fips(NL),iso(NL) New Caledonia,fips(NC),iso(NC) New Zealand,fips(NZ),iso(NZ) Nicaragua,fips(NU),iso(NI) Niger,fips(NG),iso(NE) Nigeria,fips(NI),iso(NG) Niue,fips(NE),iso(NU) Norfolk Island,fips(NF),iso(NF) Northern Mariana Islands,fips(CQ),iso(MP) Norway,fips(NO),iso(NO) Oman,fips(MU),iso(OM) Pakistan,fips(PK),iso(PK) Palau,fips(PS),iso(PW) Panama,fips(PM),iso(PA) Papua New Guinea,fips(PP),iso(PG) Paraguay,fips(PA),iso(PY) People's Republic of China,fips(CH),iso(CN) Peru,fips(PE),iso(PE) Philippines,fips(RP),iso(PH) Pitcairn Islands,fips(PC),iso(PN) Poland,fips(PL),iso(PL) Portugal,fips(PO),iso(PT) Puerto Rico,fips(RQ),iso(PR) Qatar,fips(QA),iso(QA) Republic of China /Taiwan,fips(TW),iso(TW) Republic of Uganda,fips(UG),iso(UG) Reunion,fips(RE),iso(RE) Romania,fips(RO),iso(RO) Russian Federation,fips(RS),iso(RU) Rwanda,fips(RW),iso(RW) Saint Helena,fips(SH),iso(SH) Saint Kitts and Nevis,fips(SC),iso(KN) Saint Lucia,fips(ST),iso(LC) Saint Pierre and Miquelon,fips(SB),iso(PM),tld(pm) Saint Vincent and the Grenadines,fips(VC),iso(VC) Samoa,fips(WS),iso(WS) San Marino,fips(SM),iso(SM) Sao Tome and Principe,fips(TP),iso(ST) Saudi Arabia,fips(SA),iso(SA) Senegal,fips(SG),iso(SN) Serbia,fips(RB),iso(RS),tld(rs) Seychelles,fips(SE),iso(SC) Sierra Leone,fips(SL),iso(SL) Singapore,fips(SN),iso(SG) Slovakia,fips(LO),iso(SK) Slovenia,fips(SI),iso(SI) Solomon Islands,fips(BP),iso(SB) Somalia,fips(SO),iso(SO) South Africa,fips(SF),iso(ZA) South Georgia and the South Sandwich Islands,fips(SX),iso(GS) Spain,fips(SP),iso(ES) Sri Lanka,fips(CE),iso(LK) Sudan,fips(SU),iso(SD) Suriname,fips(NS),iso(SR) Svalbard and Jan Mayen,fips(SV),iso(SJ),tld(sj) Swaziland,fips(WZ),iso(SZ) Sweden,fips(SW),iso(SE) Switzerland,fips(SZ),iso(CH) Syria,fips(SY),iso(SY) Tajikistan,fips(TI),iso(TJ) United Republic of Tanzania,fips(TZ),iso(TZ) Thailand,fips(TH),iso(TH) Timor-Leste/East Timor,fips(TT),iso(TL),tld(tl) Togo,fips(TO),iso(TG) Tokelau,fips(TL),iso(TK) Tonga,fips(TN),iso(TO) Trinidad and Tobago,fips(TD),iso(TT) Tunisia,fips(TS),iso(TN) Turkey,fips(TU),iso(TR) Turkmenistan,fips(TX),iso(TM) Turks and Caicos Islands,fips(TK),iso(TC) Tuvalu,fips(TV),iso(TV) Ukraine,fips(UP),iso(UA) United Arab Emirates,fips(AE),iso(AE) United Kingdom,fips(UK),iso(GB),tld(uk) United States,fips(US),iso(US) Uruguay,fips(UY),iso(UY) Uzbekistan,fips(UZ),iso(UZ) Vanuatu,fips(NH),iso(VU) Vatican City,fips(VT),iso(VA) Venezuela,fips(VE),iso(VE) Vietnam,fips(VM),iso(VN) Wallis and Futuna,fips(WF),iso(WF) Western Sahara,fips(WI),iso(EH),tld(-) Yemen,fips(YM),iso(YE) Zambia,fips(ZA),iso(ZM) Zimbabwe,fips(ZI),iso(ZW) U.S. Virgin Islands,fips(VQ),iso(VI) British Virgin Islands,fips(VI),iso(VG),tld(vg) Saint Barthelemy,fips(TB),iso(BL),tld(bl) #ISOs for which we have no direct FIPS. "tryfips" means fips codes which may be a good translation. Aland Islands,fips(-),iso(AX),tld(ax),tryfips(FI) Occupied Palestinian Territory,fips(-),iso(PS),tryfips(WE:GZ),tld(ps) Saint Martin,fips(-),iso(MF),tld(mf),tryfips(NT:GP) United States Minor Outlying Islands,fips(-),iso(UM),tld(um),tryfips(FQ:DQ:KQ:HQ:MQ:JQ:BQ:WQ) #FIPS for which we have no ISO Akrotiri Sovereign Base Area,fips(AX),iso(-),notes(UK cyprus base) Dhekelia Sovereign Base Area,fips(DX),iso(-),notes(UK cyprus base) Ashmore and Cartier Islands,fips(AT),iso(-),notes(uninhabited near Australia) Baker Island,fips(FQ),iso(-),notes(became United States Minor Outlying Islands) Jarvis Island,fips(DQ),iso(-),notes(became United States Minor Outlying Islands) Kingman Reef,fips(KQ),iso(-),notes(became United States Minor Outlying Islands) Midway Islands,fips(MQ),iso(-),notes(became United States Minor Outlying Islands) Johnston Atoll,fips(JQ),iso(-),notes(became United States Minor Outlying Islands) Navassa Island,fips(BQ),iso(-),notes(became United States Minor Outlying Islands) Wake Island,fips(WQ),iso(-),notes(became United States Minor Outlying Islands) Howland Island,fips(HQ),iso(-),notes(uninhabited. Became United States Minor Outlying Islands) Clipperton Island,fips(IP),iso(-),notes(uninhabited. french) Coral Sea Islands,fips(CR),iso(-),notes(uninhabited. Australian) Glorioso Islands,fips(GO),iso(-),notes(almost uninhabited island near mozabique. french) Jan Mayen,fips(JN),iso(-),notes(population 30. Norway) West Bank,fips(WE),iso(-),notes(iso is as Palestine) Gaza Strip,fips(GZ),iso(-),notes(iso is as Palestine) Juan de Nova Island,fips(JU),iso(-),notes(part of French Southern Territories) Tromelin Island,fips(TE),iso(-),notes(part of French Southern Territories) Europa Island,fips(EU),iso(-),notes(uninhabited. Part of French Southern Territories) Bassas da India,fips(BS),iso(-),notes(uninhabited. part of French Southern Territories) Paracel Islands,fips(PF),iso(-),notes(uninhabited. Disputed by VN PRC and taiwan) Spratly Islands,fips(PG),iso(-),notes(uninhabited. Disputed by VN PRC malaysia phillipines and taiwan)