From 1618fba67dd9c9ef905e3291e7e0a7b78a1b3a03 Mon Sep 17 00:00:00 2001 From: Olu Amey Date: Mon, 2 Jan 2023 11:47:46 -0500 Subject: [PATCH] Country model --- app/Controllers/Myfit.php | 634 +++++++++++------------------------- app/Models/myfitCountry.php | 287 ++++++++++++++++ 2 files changed, 474 insertions(+), 447 deletions(-) create mode 100644 app/Models/myfitCountry.php diff --git a/app/Controllers/Myfit.php b/app/Controllers/Myfit.php index 919410c..8068638 100644 --- a/app/Controllers/Myfit.php +++ b/app/Controllers/Myfit.php @@ -10,21 +10,22 @@ class Myfit extends BaseController { use ResponseTrait; - private function apiData(){ + private function apiData() + { - return array ( - 0 => - array ( - 'payload' => - array ( - 0 => - array ( - 'id' => 57, - 'ID' => 57, - 'post_author' => 1, - 'post_date' => '2021-02-05T00:19:28.000Z', - 'post_date_gmt' => '2021-02-05T00:19:28.000Z', - 'post_content' => ' + return array( + 0 => + array( + 'payload' => + array( + 0 => + array( + 'id' => 57, + 'ID' => 57, + 'post_author' => 1, + 'post_date' => '2021-02-05T00:19:28.000Z', + 'post_date_gmt' => '2021-02-05T00:19:28.000Z', + 'post_content' => '

The gut is part of the digestive tract and especially the intestine or stomach.

@@ -123,34 +124,34 @@ class Myfit extends BaseController

Including a probiotic or prebiotic supplement to your food is one of many ways to improve your gut health. Prebiotics give "food" goal is to promote the growth of useful bacteria in the gut, while probiotics are suited to live bacteria. Have it in mind that\'s not all probiotic supplements will give a benefit. 

', - 'post_title' => 'How To Detox Your Gut Daily', - 'post_excerpt' => '', - 'post_status' => 'publish', - 'comment_status' => 'closed', - 'ping_status' => 'closed', - 'post_password' => '', - 'post_name' => 'how-to-detox-your-gut-daily', - 'to_ping' => '', - 'pinged' => '', - 'post_modified' => '2021-02-05T00:19:29.000Z', - 'post_modified_gmt' => '2021-02-05T00:19:29.000Z', - 'post_content_filtered' => '', - 'post_parent' => 0, - 'guid' => 'https://blog.mermsemr.com/?p=57', - 'menu_order' => 0, - 'post_type' => 'post', - 'post_mime_type' => '', - 'comment_count' => 0, - 'meta_value' => '2021/02/Gut.jpg', - ), - 1 => - array ( - 'id' => 52, - 'ID' => 52, - 'post_author' => 1, - 'post_date' => '2021-01-27T00:50:15.000Z', - 'post_date_gmt' => '2021-01-27T00:50:15.000Z', - 'post_content' => ' + 'post_title' => 'How To Detox Your Gut Daily', + 'post_excerpt' => '', + 'post_status' => 'publish', + 'comment_status' => 'closed', + 'ping_status' => 'closed', + 'post_password' => '', + 'post_name' => 'how-to-detox-your-gut-daily', + 'to_ping' => '', + 'pinged' => '', + 'post_modified' => '2021-02-05T00:19:29.000Z', + 'post_modified_gmt' => '2021-02-05T00:19:29.000Z', + 'post_content_filtered' => '', + 'post_parent' => 0, + 'guid' => 'https://blog.mermsemr.com/?p=57', + 'menu_order' => 0, + 'post_type' => 'post', + 'post_mime_type' => '', + 'comment_count' => 0, + 'meta_value' => '2021/02/Gut.jpg', + ), + 1 => + array( + 'id' => 52, + 'ID' => 52, + 'post_author' => 1, + 'post_date' => '2021-01-27T00:50:15.000Z', + 'post_date_gmt' => '2021-01-27T00:50:15.000Z', + 'post_content' => '

The invented vaccine to tackle the widely spread virus is effective against new variants of the coronavirus and referred to as "Moderna".The vaccine effectively immunises us to protect the entire global community from the continued peril of morbidity and death from critical acute respiratory syndrome.

@@ -189,34 +190,34 @@ class Myfit extends BaseController

After the vaccine have been taken, a two months follow-up should be considered.

', - 'post_title' => 'COVID-19 Vaccine', - 'post_excerpt' => '', - 'post_status' => 'publish', - 'comment_status' => 'closed', - 'ping_status' => 'closed', - 'post_password' => '', - 'post_name' => 'covid-19-vaccine', - 'to_ping' => '', - 'pinged' => '', - 'post_modified' => '2021-01-27T01:27:27.000Z', - 'post_modified_gmt' => '2021-01-27T01:27:27.000Z', - 'post_content_filtered' => '', - 'post_parent' => 0, - 'guid' => 'https://blog.mermsemr.com/?p=52', - 'menu_order' => 0, - 'post_type' => 'post', - 'post_mime_type' => '', - 'comment_count' => 0, - 'meta_value' => '2021/01/COVID-19-vaccine_002.jpg', - ), - 2 => - array ( - 'id' => 26, - 'ID' => 26, - 'post_author' => 1, - 'post_date' => '2020-02-04T17:32:30.000Z', - 'post_date_gmt' => '2020-02-04T17:32:30.000Z', - 'post_content' => ' + 'post_title' => 'COVID-19 Vaccine', + 'post_excerpt' => '', + 'post_status' => 'publish', + 'comment_status' => 'closed', + 'ping_status' => 'closed', + 'post_password' => '', + 'post_name' => 'covid-19-vaccine', + 'to_ping' => '', + 'pinged' => '', + 'post_modified' => '2021-01-27T01:27:27.000Z', + 'post_modified_gmt' => '2021-01-27T01:27:27.000Z', + 'post_content_filtered' => '', + 'post_parent' => 0, + 'guid' => 'https://blog.mermsemr.com/?p=52', + 'menu_order' => 0, + 'post_type' => 'post', + 'post_mime_type' => '', + 'comment_count' => 0, + 'meta_value' => '2021/01/COVID-19-vaccine_002.jpg', + ), + 2 => + array( + 'id' => 26, + 'ID' => 26, + 'post_author' => 1, + 'post_date' => '2020-02-04T17:32:30.000Z', + 'post_date_gmt' => '2020-02-04T17:32:30.000Z', + 'post_content' => '

Coronavirus is gradually elevating itself to be a pandemic. It is highly infectious, known to have established itself in Southeast Asia-China in Wuhan, Hubei Province. It is also likely to be person-to-person spread.

@@ -239,34 +240,34 @@ class Myfit extends BaseController ', - 'post_title' => 'Corona Virus', - 'post_excerpt' => '', - 'post_status' => 'publish', - 'comment_status' => 'closed', - 'ping_status' => 'open', - 'post_password' => '', - 'post_name' => 'corona-virus', - 'to_ping' => '', - 'pinged' => '', - 'post_modified' => '2021-09-06T14:04:09.000Z', - 'post_modified_gmt' => '2021-09-06T14:04:09.000Z', - 'post_content_filtered' => '', - 'post_parent' => 0, - 'guid' => 'https://blog.mermsemr.com/?p=26', - 'menu_order' => 0, - 'post_type' => 'post', - 'post_mime_type' => '', - 'comment_count' => 0, - 'meta_value' => '2020/02/coronavirus.jpg', - ), - 3 => - array ( - 'id' => 23, - 'ID' => 23, - 'post_author' => 1, - 'post_date' => '2019-06-19T12:38:30.000Z', - 'post_date_gmt' => '2019-06-19T12:38:30.000Z', - 'post_content' => ' + 'post_title' => 'Corona Virus', + 'post_excerpt' => '', + 'post_status' => 'publish', + 'comment_status' => 'closed', + 'ping_status' => 'open', + 'post_password' => '', + 'post_name' => 'corona-virus', + 'to_ping' => '', + 'pinged' => '', + 'post_modified' => '2021-09-06T14:04:09.000Z', + 'post_modified_gmt' => '2021-09-06T14:04:09.000Z', + 'post_content_filtered' => '', + 'post_parent' => 0, + 'guid' => 'https://blog.mermsemr.com/?p=26', + 'menu_order' => 0, + 'post_type' => 'post', + 'post_mime_type' => '', + 'comment_count' => 0, + 'meta_value' => '2020/02/coronavirus.jpg', + ), + 3 => + array( + 'id' => 23, + 'ID' => 23, + 'post_author' => 1, + 'post_date' => '2019-06-19T12:38:30.000Z', + 'post_date_gmt' => '2019-06-19T12:38:30.000Z', + 'post_content' => '

Many individuals don’t really know that why some of them get to be distinctly dependent on drugs by just using it for a single time or how drugs change the mind to cultivate urgent medication mishandle. They @@ -333,34 +334,34 @@ contemplations. This is called state of mind issue and might be brought about by medications, for example, cocaine, amphetamines as well as heroin. ', - 'post_title' => 'Use of Drug and your Health', - 'post_excerpt' => '', - 'post_status' => 'publish', - 'comment_status' => 'closed', - 'ping_status' => 'open', - 'post_password' => '', - 'post_name' => 'use-of-drug-and-your-health', - 'to_ping' => '', - 'pinged' => '', - 'post_modified' => '2021-09-06T14:04:22.000Z', - 'post_modified_gmt' => '2021-09-06T14:04:22.000Z', - 'post_content_filtered' => '', - 'post_parent' => 0, - 'guid' => 'https://blog.mermsemr.com/?p=23', - 'menu_order' => 0, - 'post_type' => 'post', - 'post_mime_type' => '', - 'comment_count' => 0, - 'meta_value' => '2020/07/drugshealth.jpg', - ), - 4 => - array ( - 'id' => 21, - 'ID' => 21, - 'post_author' => 1, - 'post_date' => '2019-06-19T11:28:43.000Z', - 'post_date_gmt' => '2019-06-19T11:28:43.000Z', - 'post_content' => ' + 'post_title' => 'Use of Drug and your Health', + 'post_excerpt' => '', + 'post_status' => 'publish', + 'comment_status' => 'closed', + 'ping_status' => 'open', + 'post_password' => '', + 'post_name' => 'use-of-drug-and-your-health', + 'to_ping' => '', + 'pinged' => '', + 'post_modified' => '2021-09-06T14:04:22.000Z', + 'post_modified_gmt' => '2021-09-06T14:04:22.000Z', + 'post_content_filtered' => '', + 'post_parent' => 0, + 'guid' => 'https://blog.mermsemr.com/?p=23', + 'menu_order' => 0, + 'post_type' => 'post', + 'post_mime_type' => '', + 'comment_count' => 0, + 'meta_value' => '2020/07/drugshealth.jpg', + ), + 4 => + array( + 'id' => 21, + 'ID' => 21, + 'post_author' => 1, + 'post_date' => '2019-06-19T11:28:43.000Z', + 'post_date_gmt' => '2019-06-19T11:28:43.000Z', + 'post_content' => '

It can take an ordinary youthful couple up to 12 months to get pregnant.  Doctors typically suggest patients in their 20s and mid 30s attempt to get pregnant or possibly not utilize anti-conception @@ -403,34 +404,34 @@ issues, for example, tubal check, endometriosis along with uterine variations from the norm, and in addition other reproductive organ issue that need to be treated with any surgery.

', - 'post_title' => 'Pregnancy delay, when to call a reproductive specialist.', - 'post_excerpt' => '', - 'post_status' => 'publish', - 'comment_status' => 'closed', - 'ping_status' => 'open', - 'post_password' => '', - 'post_name' => 'pregnancy-delay-when-to-call-a-reproductive-specialist', - 'to_ping' => '', - 'pinged' => '', - 'post_modified' => '2021-09-06T14:04:33.000Z', - 'post_modified_gmt' => '2021-09-06T14:04:33.000Z', - 'post_content_filtered' => '', - 'post_parent' => 0, - 'guid' => 'https://blog.mermsemr.com/?p=21', - 'menu_order' => 0, - 'post_type' => 'post', - 'post_mime_type' => '', - 'comment_count' => 0, - 'meta_value' => '2020/07/pregnancy-delay.jpg', - ), - 5 => - array ( - 'id' => 15, - 'ID' => 15, - 'post_author' => 1, - 'post_date' => '2019-06-19T11:25:21.000Z', - 'post_date_gmt' => '2019-06-19T11:25:21.000Z', - 'post_content' => ' + 'post_title' => 'Pregnancy delay, when to call a reproductive specialist.', + 'post_excerpt' => '', + 'post_status' => 'publish', + 'comment_status' => 'closed', + 'ping_status' => 'open', + 'post_password' => '', + 'post_name' => 'pregnancy-delay-when-to-call-a-reproductive-specialist', + 'to_ping' => '', + 'pinged' => '', + 'post_modified' => '2021-09-06T14:04:33.000Z', + 'post_modified_gmt' => '2021-09-06T14:04:33.000Z', + 'post_content_filtered' => '', + 'post_parent' => 0, + 'guid' => 'https://blog.mermsemr.com/?p=21', + 'menu_order' => 0, + 'post_type' => 'post', + 'post_mime_type' => '', + 'comment_count' => 0, + 'meta_value' => '2020/07/pregnancy-delay.jpg', + ), + 5 => + array( + 'id' => 15, + 'ID' => 15, + 'post_author' => 1, + 'post_date' => '2019-06-19T11:25:21.000Z', + 'post_date_gmt' => '2019-06-19T11:25:21.000Z', + 'post_content' => '

Tracking your health and fitness should be a pivotal part of your training. It helps you to -

@@ -441,29 +442,29 @@ variations from the norm, and in addition other reproductive organ issue

', - 'post_title' => 'Benefits of your Health Tracking', - 'post_excerpt' => '', - 'post_status' => 'publish', - 'comment_status' => 'closed', - 'ping_status' => 'open', - 'post_password' => '', - 'post_name' => 'benefits-of-your-health-tracking', - 'to_ping' => '', - 'pinged' => '', - 'post_modified' => '2021-09-06T14:03:21.000Z', - 'post_modified_gmt' => '2021-09-06T14:03:21.000Z', - 'post_content_filtered' => '', - 'post_parent' => 0, - 'guid' => 'https://blog.mermsemr.com/?p=15', - 'menu_order' => 0, - 'post_type' => 'post', - 'post_mime_type' => '', - 'comment_count' => 0, - 'meta_value' => '2020/07/health-tracking.jpg', - ), - ), - ), - ); + 'post_title' => 'Benefits of your Health Tracking', + 'post_excerpt' => '', + 'post_status' => 'publish', + 'comment_status' => 'closed', + 'ping_status' => 'open', + 'post_password' => '', + 'post_name' => 'benefits-of-your-health-tracking', + 'to_ping' => '', + 'pinged' => '', + 'post_modified' => '2021-09-06T14:03:21.000Z', + 'post_modified_gmt' => '2021-09-06T14:03:21.000Z', + 'post_content_filtered' => '', + 'post_parent' => 0, + 'guid' => 'https://blog.mermsemr.com/?p=15', + 'menu_order' => 0, + 'post_type' => 'post', + 'post_mime_type' => '', + 'comment_count' => 0, + 'meta_value' => '2020/07/health-tracking.jpg', + ), + ), + ), + ); } @@ -471,283 +472,22 @@ variations from the norm, and in addition other reproductive organ issue public function index() { $rawData = $this->apiData(); - $res1= $rawData[0]['payload']; + $res1 = $rawData[0]['payload']; - // var_dump($res1); + // var_dump($res1); return $this->response->setJson($res1); } - public function country(){ + public function country() + { + //$this->load->model('myfitCountry', 'mCountry'); - $countryList = array( - "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 Herzegovina", - "BW" => "Botswana", - "BV" => "Bouvet Island", - "BR" => "Brazil", - "BQ" => "British Antarctic Territory", - "IO" => "British Indian Ocean Territory", - "VG" => "British Virgin Islands", - "BN" => "Brunei", - "BG" => "Bulgaria", - "BF" => "Burkina Faso", - "BI" => "Burundi", - "KH" => "Cambodia", - "CM" => "Cameroon", - "CA" => "Canada", - "CT" => "Canton and Enderbury Islands", - "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 - Brazzaville", - "CD" => "Congo - Kinshasa", - "CK" => "Cook Islands", - "CR" => "Costa Rica", - "HR" => "Croatia", - "CU" => "Cuba", - "CY" => "Cyprus", - "CZ" => "Czech Republic", - "CI" => "Côte d’Ivoire", - "DK" => "Denmark", - "DJ" => "Djibouti", - "DM" => "Dominica", - "DO" => "Dominican Republic", - "NQ" => "Dronning Maud Land", - "DD" => "East Germany", - "EC" => "Ecuador", - "EG" => "Egypt", - "SV" => "El Salvador", - "GQ" => "Equatorial Guinea", - "ER" => "Eritrea", - "EE" => "Estonia", - "ET" => "Ethiopia", - "FK" => "Falkland Islands", - "FO" => "Faroe Islands", - "FJ" => "Fiji", - "FI" => "Finland", - "FR" => "France", - "GF" => "French Guiana", - "PF" => "French Polynesia", - "TF" => "French Southern Territories", - "FQ" => "French Southern and Antarctic 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", - "GG" => "Guernsey", - "GN" => "Guinea", - "GW" => "Guinea-Bissau", - "GY" => "Guyana", - "HT" => "Haiti", - "HM" => "Heard Island and McDonald Islands", - "HN" => "Honduras", - "HK" => "Hong Kong SAR China", - "HU" => "Hungary", - "IS" => "Iceland", - "IN" => "India", - "ID" => "Indonesia", - "IR" => "Iran", - "IQ" => "Iraq", - "IE" => "Ireland", - "IM" => "Isle of Man", - "IL" => "Israel", - "IT" => "Italy", - "JM" => "Jamaica", - "JP" => "Japan", - "JE" => "Jersey", - "JT" => "Johnston Island", - "JO" => "Jordan", - "KZ" => "Kazakhstan", - "KE" => "Kenya", - "KI" => "Kiribati", - "KW" => "Kuwait", - "KG" => "Kyrgyzstan", - "LA" => "Laos", - "LV" => "Latvia", - "LB" => "Lebanon", - "LS" => "Lesotho", - "LR" => "Liberia", - "LY" => "Libya", - "LI" => "Liechtenstein", - "LT" => "Lithuania", - "LU" => "Luxembourg", - "MO" => "Macau SAR China", - "MK" => "Macedonia", - "MG" => "Madagascar", - "MW" => "Malawi", - "MY" => "Malaysia", - "MV" => "Maldives", - "ML" => "Mali", - "MT" => "Malta", - "MH" => "Marshall Islands", - "MQ" => "Martinique", - "MR" => "Mauritania", - "MU" => "Mauritius", - "YT" => "Mayotte", - "FX" => "Metropolitan France", - "MX" => "Mexico", - "FM" => "Micronesia", - "MI" => "Midway Islands", - "MD" => "Moldova", - "MC" => "Monaco", - "MN" => "Mongolia", - "ME" => "Montenegro", - "MS" => "Montserrat", - "MA" => "Morocco", - "MZ" => "Mozambique", - "MM" => "Myanmar [Burma]", - "NA" => "Namibia", - "NR" => "Nauru", - "NP" => "Nepal", - "NL" => "Netherlands", - "AN" => "Netherlands Antilles", - "NT" => "Neutral Zone", - "NC" => "New Caledonia", - "NZ" => "New Zealand", - "NI" => "Nicaragua", - "NE" => "Niger", - "NG" => "Nigeria", - "NU" => "Niue", - "NF" => "Norfolk Island", - "KP" => "North Korea", - "VD" => "North Vietnam", - "MP" => "Northern Mariana Islands", - "NO" => "Norway", - "OM" => "Oman", - "PC" => "Pacific Islands Trust Territory", - "PK" => "Pakistan", - "PW" => "Palau", - "PS" => "Palestinian Territories", - "PA" => "Panama", - "PZ" => "Panama Canal Zone", - "PG" => "Papua New Guinea", - "PY" => "Paraguay", - "YD" => "People's Democratic Republic of Yemen", - "PE" => "Peru", - "PH" => "Philippines", - "PN" => "Pitcairn Islands", - "PL" => "Poland", - "PT" => "Portugal", - "PR" => "Puerto Rico", - "QA" => "Qatar", - "RO" => "Romania", - "RU" => "Russia", - "RW" => "Rwanda", - "RE" => "Réunion", - "BL" => "Saint Barthélemy", - "SH" => "Saint Helena", - "KN" => "Saint Kitts and Nevis", - "LC" => "Saint Lucia", - "MF" => "Saint Martin", - "PM" => "Saint Pierre and Miquelon", - "VC" => "Saint Vincent and the Grenadines", - "WS" => "Samoa", - "SM" => "San Marino", - "SA" => "Saudi Arabia", - "SN" => "Senegal", - "RS" => "Serbia", - "CS" => "Serbia and Montenegro", - "SC" => "Seychelles", - "SL" => "Sierra Leone", - "SG" => "Singapore", - "SK" => "Slovakia", - "SI" => "Slovenia", - "SB" => "Solomon Islands", - "SO" => "Somalia", - "ZA" => "South Africa", - "GS" => "South Georgia and the South Sandwich Islands", - "KR" => "South Korea", - "ES" => "Spain", - "LK" => "Sri Lanka", - "SD" => "Sudan", - "SR" => "Suriname", - "SJ" => "Svalbard and Jan Mayen", - "SZ" => "Swaziland", - "SE" => "Sweden", - "CH" => "Switzerland", - "SY" => "Syria", - "ST" => "São Tomé and Príncipe", - "TW" => "Taiwan", - "TJ" => "Tajikistan", - "TZ" => "Tanzania", - "TH" => "Thailand", - "TL" => "Timor-Leste", - "TG" => "Togo", - "TK" => "Tokelau", - "TO" => "Tonga", - "TT" => "Trinidad and Tobago", - "TN" => "Tunisia", - "TR" => "Turkey", - "TM" => "Turkmenistan", - "TC" => "Turks and Caicos Islands", - "TV" => "Tuvalu", - "UM" => "U.S. Minor Outlying Islands", - "PU" => "U.S. Miscellaneous Pacific Islands", - "VI" => "U.S. Virgin Islands", - "UG" => "Uganda", - "UA" => "Ukraine", - "SU" => "Union of Soviet Socialist Republics", - "AE" => "United Arab Emirates", - "GB" => "United Kingdom", - "US" => "United States", - "ZZ" => "Unknown or Invalid Region", - "UY" => "Uruguay", - "UZ" => "Uzbekistan", - "VU" => "Vanuatu", - "VA" => "Vatican City", - "VE" => "Venezuela", - "VN" => "Vietnam", - "WK" => "Wake Island", - "WF" => "Wallis and Futuna", - "EH" => "Western Sahara", - "YE" => "Yemen", - "ZM" => "Zambia", - "ZW" => "Zimbabwe", - "AX" => "Åland Islands", - ); - return $this->response->setJson($countryList); + + $mCountry = new \App\Models\myfitCountry(); + return $this->response->setJson( $mCountry->getSiteCountries([])); + // return $this->response->setJson( []); } diff --git a/app/Models/myfitCountry.php b/app/Models/myfitCountry.php new file mode 100644 index 0000000..57c50eb --- /dev/null +++ b/app/Models/myfitCountry.php @@ -0,0 +1,287 @@ + "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 Herzegovina", + "BW" => "Botswana", + "BV" => "Bouvet Island", + "BR" => "Brazil", + "BQ" => "British Antarctic Territory", + "IO" => "British Indian Ocean Territory", + "VG" => "British Virgin Islands", + "BN" => "Brunei", + "BG" => "Bulgaria", + "BF" => "Burkina Faso", + "BI" => "Burundi", + "KH" => "Cambodia", + "CM" => "Cameroon", + "CA" => "Canada", + "CT" => "Canton and Enderbury Islands", + "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 - Brazzaville", + "CD" => "Congo - Kinshasa", + "CK" => "Cook Islands", + "CR" => "Costa Rica", + "HR" => "Croatia", + "CU" => "Cuba", + "CY" => "Cyprus", + "CZ" => "Czech Republic", + "CI" => "Côte d’Ivoire", + "DK" => "Denmark", + "DJ" => "Djibouti", + "DM" => "Dominica", + "DO" => "Dominican Republic", + "NQ" => "Dronning Maud Land", + "DD" => "East Germany", + "EC" => "Ecuador", + "EG" => "Egypt", + "SV" => "El Salvador", + "GQ" => "Equatorial Guinea", + "ER" => "Eritrea", + "EE" => "Estonia", + "ET" => "Ethiopia", + "FK" => "Falkland Islands", + "FO" => "Faroe Islands", + "FJ" => "Fiji", + "FI" => "Finland", + "FR" => "France", + "GF" => "French Guiana", + "PF" => "French Polynesia", + "TF" => "French Southern Territories", + "FQ" => "French Southern and Antarctic 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", + "GG" => "Guernsey", + "GN" => "Guinea", + "GW" => "Guinea-Bissau", + "GY" => "Guyana", + "HT" => "Haiti", + "HM" => "Heard Island and McDonald Islands", + "HN" => "Honduras", + "HK" => "Hong Kong SAR China", + "HU" => "Hungary", + "IS" => "Iceland", + "IN" => "India", + "ID" => "Indonesia", + "IR" => "Iran", + "IQ" => "Iraq", + "IE" => "Ireland", + "IM" => "Isle of Man", + "IL" => "Israel", + "IT" => "Italy", + "JM" => "Jamaica", + "JP" => "Japan", + "JE" => "Jersey", + "JT" => "Johnston Island", + "JO" => "Jordan", + "KZ" => "Kazakhstan", + "KE" => "Kenya", + "KI" => "Kiribati", + "KW" => "Kuwait", + "KG" => "Kyrgyzstan", + "LA" => "Laos", + "LV" => "Latvia", + "LB" => "Lebanon", + "LS" => "Lesotho", + "LR" => "Liberia", + "LY" => "Libya", + "LI" => "Liechtenstein", + "LT" => "Lithuania", + "LU" => "Luxembourg", + "MO" => "Macau SAR China", + "MK" => "Macedonia", + "MG" => "Madagascar", + "MW" => "Malawi", + "MY" => "Malaysia", + "MV" => "Maldives", + "ML" => "Mali", + "MT" => "Malta", + "MH" => "Marshall Islands", + "MQ" => "Martinique", + "MR" => "Mauritania", + "MU" => "Mauritius", + "YT" => "Mayotte", + "FX" => "Metropolitan France", + "MX" => "Mexico", + "FM" => "Micronesia", + "MI" => "Midway Islands", + "MD" => "Moldova", + "MC" => "Monaco", + "MN" => "Mongolia", + "ME" => "Montenegro", + "MS" => "Montserrat", + "MA" => "Morocco", + "MZ" => "Mozambique", + "MM" => "Myanmar [Burma]", + "NA" => "Namibia", + "NR" => "Nauru", + "NP" => "Nepal", + "NL" => "Netherlands", + "AN" => "Netherlands Antilles", + "NT" => "Neutral Zone", + "NC" => "New Caledonia", + "NZ" => "New Zealand", + "NI" => "Nicaragua", + "NE" => "Niger", + "NG" => "Nigeria", + "NU" => "Niue", + "NF" => "Norfolk Island", + "KP" => "North Korea", + "VD" => "North Vietnam", + "MP" => "Northern Mariana Islands", + "NO" => "Norway", + "OM" => "Oman", + "PC" => "Pacific Islands Trust Territory", + "PK" => "Pakistan", + "PW" => "Palau", + "PS" => "Palestinian Territories", + "PA" => "Panama", + "PZ" => "Panama Canal Zone", + "PG" => "Papua New Guinea", + "PY" => "Paraguay", + "YD" => "People's Democratic Republic of Yemen", + "PE" => "Peru", + "PH" => "Philippines", + "PN" => "Pitcairn Islands", + "PL" => "Poland", + "PT" => "Portugal", + "PR" => "Puerto Rico", + "QA" => "Qatar", + "RO" => "Romania", + "RU" => "Russia", + "RW" => "Rwanda", + "RE" => "Réunion", + "BL" => "Saint Barthélemy", + "SH" => "Saint Helena", + "KN" => "Saint Kitts and Nevis", + "LC" => "Saint Lucia", + "MF" => "Saint Martin", + "PM" => "Saint Pierre and Miquelon", + "VC" => "Saint Vincent and the Grenadines", + "WS" => "Samoa", + "SM" => "San Marino", + "SA" => "Saudi Arabia", + "SN" => "Senegal", + "RS" => "Serbia", + "CS" => "Serbia and Montenegro", + "SC" => "Seychelles", + "SL" => "Sierra Leone", + "SG" => "Singapore", + "SK" => "Slovakia", + "SI" => "Slovenia", + "SB" => "Solomon Islands", + "SO" => "Somalia", + "ZA" => "South Africa", + "GS" => "South Georgia and the South Sandwich Islands", + "KR" => "South Korea", + "ES" => "Spain", + "LK" => "Sri Lanka", + "SD" => "Sudan", + "SR" => "Suriname", + "SJ" => "Svalbard and Jan Mayen", + "SZ" => "Swaziland", + "SE" => "Sweden", + "CH" => "Switzerland", + "SY" => "Syria", + "ST" => "São Tomé and Príncipe", + "TW" => "Taiwan", + "TJ" => "Tajikistan", + "TZ" => "Tanzania", + "TH" => "Thailand", + "TL" => "Timor-Leste", + "TG" => "Togo", + "TK" => "Tokelau", + "TO" => "Tonga", + "TT" => "Trinidad and Tobago", + "TN" => "Tunisia", + "TR" => "Turkey", + "TM" => "Turkmenistan", + "TC" => "Turks and Caicos Islands", + "TV" => "Tuvalu", + "UM" => "U.S. Minor Outlying Islands", + "PU" => "U.S. Miscellaneous Pacific Islands", + "VI" => "U.S. Virgin Islands", + "UG" => "Uganda", + "UA" => "Ukraine", + "SU" => "Union of Soviet Socialist Republics", + "AE" => "United Arab Emirates", + "GB" => "United Kingdom", + "US" => "United States", + "ZZ" => "Unknown or Invalid Region", + "UY" => "Uruguay", + "UZ" => "Uzbekistan", + "VU" => "Vanuatu", + "VA" => "Vatican City", + "VE" => "Venezuela", + "VN" => "Vietnam", + "WK" => "Wake Island", + "WF" => "Wallis and Futuna", + "EH" => "Western Sahara", + "YE" => "Yemen", + "ZM" => "Zambia", + "ZW" => "Zimbabwe", + "AX" => "Åland Islands", + ); + + } + +} \ No newline at end of file