diff --git a/CountryData/CountryDetails.md b/CountryData/CountryDetails.md new file mode 100644 index 0000000..adbb546 --- /dev/null +++ b/CountryData/CountryDetails.md @@ -0,0 +1,256 @@ + +#### List of supported ISO-3166-1 country codes, their codepoint pairs and Flags. + +This table contains a list of supported ISO-3166-1 country codes, their codepoint pairs, Flags, ISO, Unicode and PhoneCode. + +|ISO|flag|Unicode|Name|PhoneCode +|--- |--- |--- |--- |------| +|AD|๐Ÿ‡ฆ๐Ÿ‡ฉ|U+1F1E6 U+1F1E9|Andorra| +376 +|AE|๐Ÿ‡ฆ๐Ÿ‡ช|U+1F1E6 U+1F1EA|United Arab Emirates| +271 +|AF|๐Ÿ‡ฆ๐Ÿ‡ซ|U+1F1E6 U+1F1EB|Afghanistan|+93 +|AG|๐Ÿ‡ฆ๐Ÿ‡ฌ|U+1F1E6 U+1F1EC|Antigua and Barbuda| +1268 +|AI|๐Ÿ‡ฆ๐Ÿ‡ฎ|U+1F1E6 U+1F1EE|Anguilla|+1264 +|AL|๐Ÿ‡ฆ๐Ÿ‡ฑ|U+1F1E6 U+1F1F1|Albania| +355 +|AM|๐Ÿ‡ฆ๐Ÿ‡ฒ|U+1F1E6 U+1F1F2|Armenia|+374 +|AO|๐Ÿ‡ฆ๐Ÿ‡ด|U+1F1E6 U+1F1F4|Angola| +244 +|AQ|๐Ÿ‡ฆ๐Ÿ‡ถ|U+1F1E6 U+1F1F6|Antarctica| +672 +|AR|๐Ÿ‡ฆ๐Ÿ‡ท|U+1F1E6 U+1F1F7|Argentina| +54 +|AS|๐Ÿ‡ฆ๐Ÿ‡ธ|U+1F1E6 U+1F1F8|American Samoa| +1684 +|AT|๐Ÿ‡ฆ๐Ÿ‡น|U+1F1E6 U+1F1F9|Austria| +43 +|AU|๐Ÿ‡ฆ๐Ÿ‡บ|U+1F1E6 U+1F1FA|Australia| +61 +|AW|๐Ÿ‡ฆ๐Ÿ‡ผ|U+1F1E6 U+1F1FC|Aruba|+297 +|AX|๐Ÿ‡ฆ๐Ÿ‡ฝ|U+1F1E6 U+1F1FD|ร…land Islands|+358 +|AZ|๐Ÿ‡ฆ๐Ÿ‡ฟ|U+1F1E6 U+1F1FF|Azerbaijan| +994 +|BA|๐Ÿ‡ง๐Ÿ‡ฆ|U+1F1E7 U+1F1E6|Bosnia and Herzegovina| +387 +|BB|๐Ÿ‡ง๐Ÿ‡ง|U+1F1E7 U+1F1E7|Barbados| +1246 +|BD|๐Ÿ‡ง๐Ÿ‡ฉ|U+1F1E7 U+1F1E9|Bangladesh| +880 +|BE|๐Ÿ‡ง๐Ÿ‡ช|U+1F1E7 U+1F1EA|Belgium| +32 +|BF|๐Ÿ‡ง๐Ÿ‡ซ|U+1F1E7 U+1F1EB|Burkina Faso| +226 +|BG|๐Ÿ‡ง๐Ÿ‡ฌ|U+1F1E7 U+1F1EC|Bulgaria| +359 +|BH|๐Ÿ‡ง๐Ÿ‡ญ|U+1F1E7 U+1F1ED|Bahrain| +973 +|BI|๐Ÿ‡ง๐Ÿ‡ฎ|U+1F1E7 U+1F1EE|Burundi| +257 +|BJ|๐Ÿ‡ง๐Ÿ‡ฏ|U+1F1E7 U+1F1EF|Benin| +229 +|BL|๐Ÿ‡ง๐Ÿ‡ฑ|U+1F1E7 U+1F1F1|Saint Barthรฉlemy| +590 +|BM|๐Ÿ‡ง๐Ÿ‡ฒ|U+1F1E7 U+1F1F2|Bermuda| +1441 +|BN|๐Ÿ‡ง๐Ÿ‡ณ|U+1F1E7 U+1F1F3|Brunei Darussalam| +673 +|BO|๐Ÿ‡ง๐Ÿ‡ด|U+1F1E7 U+1F1F4|Bolivia| +591 +|BQ|๐Ÿ‡ง๐Ÿ‡ถ|U+1F1E7 U+1F1F6|Bonaire, Sint Eustatius and Saba| +599 +|BR|๐Ÿ‡ง๐Ÿ‡ท|U+1F1E7 U+1F1F7|Brazil| +55 +|BS|๐Ÿ‡ง๐Ÿ‡ธ|U+1F1E7 U+1F1F8|Bahamas| +1242 +|BT|๐Ÿ‡ง๐Ÿ‡น|U+1F1E7 U+1F1F9|Bhutan| +975 +|BV|๐Ÿ‡ง๐Ÿ‡ป|U+1F1E7 U+1F1FB|Bouvet Island| +47 +|BW|๐Ÿ‡ง๐Ÿ‡ผ|U+1F1E7 U+1F1FC|Botswana| +267 +|BY|๐Ÿ‡ง๐Ÿ‡พ|U+1F1E7 U+1F1FE|Belarus| +375 +|BZ|๐Ÿ‡ง๐Ÿ‡ฟ|U+1F1E7 U+1F1FF|Belize| +501 +|CA|๐Ÿ‡จ๐Ÿ‡ฆ|U+1F1E8 U+1F1E6|Canada| +1 +|CC|๐Ÿ‡จ๐Ÿ‡จ|U+1F1E8 U+1F1E8|Cocos (Keeling) Islands| +61 +|CD|๐Ÿ‡จ๐Ÿ‡ฉ|U+1F1E8 U+1F1E9|Congo| +243 +|CF|๐Ÿ‡จ๐Ÿ‡ซ|U+1F1E8 U+1F1EB|Central African Republic| +236 +|CG|๐Ÿ‡จ๐Ÿ‡ฌ|U+1F1E8 U+1F1EC|Congo| +242 +|CH|๐Ÿ‡จ๐Ÿ‡ญ|U+1F1E8 U+1F1ED|Switzerland| +41 +|CI|๐Ÿ‡จ๐Ÿ‡ฎ|U+1F1E8 U+1F1EE|Cรดte D'Ivoire| +225 +|CK|๐Ÿ‡จ๐Ÿ‡ฐ|U+1F1E8 U+1F1F0|Cook Islands| +682 +|CL|๐Ÿ‡จ๐Ÿ‡ฑ|U+1F1E8 U+1F1F1|Chile| +56 +|CM|๐Ÿ‡จ๐Ÿ‡ฒ|U+1F1E8 U+1F1F2|Cameroon| +237 +|CN|๐Ÿ‡จ๐Ÿ‡ณ|U+1F1E8 U+1F1F3|China| +86 +|CO|๐Ÿ‡จ๐Ÿ‡ด|U+1F1E8 U+1F1F4|Colombia| +57 +|CR|๐Ÿ‡จ๐Ÿ‡ท|U+1F1E8 U+1F1F7|Costa Rica| +506 +|CU|๐Ÿ‡จ๐Ÿ‡บ|U+1F1E8 U+1F1FA|Cuba| +53 +|CV|๐Ÿ‡จ๐Ÿ‡ป|U+1F1E8 U+1F1FB|Cape Verde| +238 +|CW|๐Ÿ‡จ๐Ÿ‡ผ|U+1F1E8 U+1F1FC|Curaรงao| +599 +|CX|๐Ÿ‡จ๐Ÿ‡ฝ|U+1F1E8 U+1F1FD|Christmas Island| +61 +|CY|๐Ÿ‡จ๐Ÿ‡พ|U+1F1E8 U+1F1FE|Cyprus| +357 +|CZ|๐Ÿ‡จ๐Ÿ‡ฟ|U+1F1E8 U+1F1FF|Czech Republic| +420 +|DE|๐Ÿ‡ฉ๐Ÿ‡ช|U+1F1E9 U+1F1EA|Germany| +49 +|DJ|๐Ÿ‡ฉ๐Ÿ‡ฏ|U+1F1E9 U+1F1EF|Djibouti| +253 +|DK|๐Ÿ‡ฉ๐Ÿ‡ฐ|U+1F1E9 U+1F1F0|Denmark|+45 +|DM|๐Ÿ‡ฉ๐Ÿ‡ฒ|U+1F1E9 U+1F1F2|Dominica| +1767 +|DO|๐Ÿ‡ฉ๐Ÿ‡ด|U+1F1E9 U+1F1F4|Dominican Republic| +1849 +|DZ|๐Ÿ‡ฉ๐Ÿ‡ฟ|U+1F1E9 U+1F1FF|Algeria| +213 +|EC|๐Ÿ‡ช๐Ÿ‡จ|U+1F1EA U+1F1E8|Ecuador| +593 +|EE|๐Ÿ‡ช๐Ÿ‡ช|U+1F1EA U+1F1EA|Estonia| +372 +|EG|๐Ÿ‡ช๐Ÿ‡ฌ|U+1F1EA U+1F1EC|Egypt| +20 +|EH|๐Ÿ‡ช๐Ÿ‡ญ|U+1F1EA U+1F1ED|Western Sahara| +212 +|ER|๐Ÿ‡ช๐Ÿ‡ท|U+1F1EA U+1F1F7|Eritrea| +291 +|ES|๐Ÿ‡ช๐Ÿ‡ธ|U+1F1EA U+1F1F8|Spain| +34 +|ET|๐Ÿ‡ช๐Ÿ‡น|U+1F1EA U+1F1F9|Ethiopia| +251 +|FI|๐Ÿ‡ซ๐Ÿ‡ฎ|U+1F1EB U+1F1EE|Finland| +358 +|FJ|๐Ÿ‡ซ๐Ÿ‡ฏ|U+1F1EB U+1F1EF|Fiji| +679 +|FK|๐Ÿ‡ซ๐Ÿ‡ฐ|U+1F1EB U+1F1F0|Falkland Islands (Malvinas)| +500 +|FM|๐Ÿ‡ซ๐Ÿ‡ฒ|U+1F1EB U+1F1F2|Micronesia| +691 +|FO|๐Ÿ‡ซ๐Ÿ‡ด|U+1F1EB U+1F1F4|Faroe Islands| +298 +|FR|๐Ÿ‡ซ๐Ÿ‡ท|U+1F1EB U+1F1F7|France| +33 +|GA|๐Ÿ‡ฌ๐Ÿ‡ฆ|U+1F1EC U+1F1E6|Gabon| +241 +|GB|๐Ÿ‡ฌ๐Ÿ‡ง|U+1F1EC U+1F1E7|United Kingdom| +44 +|GD|๐Ÿ‡ฌ๐Ÿ‡ฉ|U+1F1EC U+1F1E9|Grenada| +1473 +|GE|๐Ÿ‡ฌ๐Ÿ‡ช|U+1F1EC U+1F1EA|Georgia| +995 +|GF|๐Ÿ‡ฌ๐Ÿ‡ซ|U+1F1EC U+1F1EB|French Guiana| +594 +|GG|๐Ÿ‡ฌ๐Ÿ‡ฌ|U+1F1EC U+1F1EC|Guernsey| +44 +|GH|๐Ÿ‡ฌ๐Ÿ‡ญ|U+1F1EC U+1F1ED|Ghana| +233 +|GI|๐Ÿ‡ฌ๐Ÿ‡ฎ|U+1F1EC U+1F1EE|Gibraltar| +350 +|GL|๐Ÿ‡ฌ๐Ÿ‡ฑ|U+1F1EC U+1F1F1|Greenland| +299 +|GM|๐Ÿ‡ฌ๐Ÿ‡ฒ|U+1F1EC U+1F1F2|Gambia| +220 +|GN|๐Ÿ‡ฌ๐Ÿ‡ณ|U+1F1EC U+1F1F3|Guinea| +224 +|GP|๐Ÿ‡ฌ๐Ÿ‡ต|U+1F1EC U+1F1F5|Guadeloupe| +590 +|GQ|๐Ÿ‡ฌ๐Ÿ‡ถ|U+1F1EC U+1F1F6|Equatorial Guinea| +240 +|GR|๐Ÿ‡ฌ๐Ÿ‡ท|U+1F1EC U+1F1F7|Greece| +30 +|GS|๐Ÿ‡ฌ๐Ÿ‡ธ|U+1F1EC U+1F1F8|South Georgia| +500 +|GT|๐Ÿ‡ฌ๐Ÿ‡น|U+1F1EC U+1F1F9|Guatemala| +502 +|GU|๐Ÿ‡ฌ๐Ÿ‡บ|U+1F1EC U+1F1FA|Guam| +1671 +|GW|๐Ÿ‡ฌ๐Ÿ‡ผ|U+1F1EC U+1F1FC|Guinea-Bissau| +245 +|GY|๐Ÿ‡ฌ๐Ÿ‡พ|U+1F1EC U+1F1FE|Guyana| +592 +|HK|๐Ÿ‡ญ๐Ÿ‡ฐ|U+1F1ED U+1F1F0|Hong Kong| +852 +|HM|๐Ÿ‡ญ๐Ÿ‡ฒ|U+1F1ED U+1F1F2|Heard Island and Mcdonald Islands| +672 +|HN|๐Ÿ‡ญ๐Ÿ‡ณ|U+1F1ED U+1F1F3|Honduras| +504 +|HR|๐Ÿ‡ญ๐Ÿ‡ท|U+1F1ED U+1F1F7|Croatia| +385 +|HT|๐Ÿ‡ญ๐Ÿ‡น|U+1F1ED U+1F1F9|Haiti| +509 +|HU|๐Ÿ‡ญ๐Ÿ‡บ|U+1F1ED U+1F1FA|Hungary| +36 +|ID|๐Ÿ‡ฎ๐Ÿ‡ฉ|U+1F1EE U+1F1E9|Indonesia| +62 +|IE|๐Ÿ‡ฎ๐Ÿ‡ช|U+1F1EE U+1F1EA|Ireland| +353 +|IL|๐Ÿ‡ฎ๐Ÿ‡ฑ|U+1F1EE U+1F1F1|Israel| +972 +|IM|๐Ÿ‡ฎ๐Ÿ‡ฒ|U+1F1EE U+1F1F2|Isle of Man| +44 +|IN|๐Ÿ‡ฎ๐Ÿ‡ณ|U+1F1EE U+1F1F3|India| +91 +|IO|๐Ÿ‡ฎ๐Ÿ‡ด|U+1F1EE U+1F1F4|British Indian Ocean Territory| +246 +|IQ|๐Ÿ‡ฎ๐Ÿ‡ถ|U+1F1EE U+1F1F6|Iraq| +964 +|IR|๐Ÿ‡ฎ๐Ÿ‡ท|U+1F1EE U+1F1F7|Iran| +98 +|IS|๐Ÿ‡ฎ๐Ÿ‡ธ|U+1F1EE U+1F1F8|Iceland| +354 +|IT|๐Ÿ‡ฎ๐Ÿ‡น|U+1F1EE U+1F1F9|Italy| +39 +|JE|๐Ÿ‡ฏ๐Ÿ‡ช|U+1F1EF U+1F1EA|Jersey| +44 +|JM|๐Ÿ‡ฏ๐Ÿ‡ฒ|U+1F1EF U+1F1F2|Jamaica|+1876 +|JO|๐Ÿ‡ฏ๐Ÿ‡ด|U+1F1EF U+1F1F4|Jordan| +962 +|JP|๐Ÿ‡ฏ๐Ÿ‡ต|U+1F1EF U+1F1F5|Japan| +81 +|KE|๐Ÿ‡ฐ๐Ÿ‡ช|U+1F1F0 U+1F1EA|Kenya| +254 +|KG|๐Ÿ‡ฐ๐Ÿ‡ฌ|U+1F1F0 U+1F1EC|Kyrgyzstan| +996 +|KH|๐Ÿ‡ฐ๐Ÿ‡ญ|U+1F1F0 U+1F1ED|Cambodia| +855 +|KI|๐Ÿ‡ฐ๐Ÿ‡ฎ|U+1F1F0 U+1F1EE|Kiribati| +686 +|KM|๐Ÿ‡ฐ๐Ÿ‡ฒ|U+1F1F0 U+1F1F2|Comoros| +269 +|KN|๐Ÿ‡ฐ๐Ÿ‡ณ|U+1F1F0 U+1F1F3|Saint Kitts and Nevis| +1869 +|KP|๐Ÿ‡ฐ๐Ÿ‡ต|U+1F1F0 U+1F1F5|North Korea| +850 +|KR|๐Ÿ‡ฐ๐Ÿ‡ท|U+1F1F0 U+1F1F7|South Korea| +82 +|KW|๐Ÿ‡ฐ๐Ÿ‡ผ|U+1F1F0 U+1F1FC|Kuwait| +965 +|KY|๐Ÿ‡ฐ๐Ÿ‡พ|U+1F1F0 U+1F1FE|Cayman Islands| +1345 +|KZ|๐Ÿ‡ฐ๐Ÿ‡ฟ|U+1F1F0 U+1F1FF|Kazakhstan| +77 +|LA|๐Ÿ‡ฑ๐Ÿ‡ฆ|U+1F1F1 U+1F1E6|Lao People's Democratic Republic| +856 +|LB|๐Ÿ‡ฑ๐Ÿ‡ง|U+1F1F1 U+1F1E7|Lebanon| +961 +|LC|๐Ÿ‡ฑ๐Ÿ‡จ|U+1F1F1 U+1F1E8|Saint Lucia| +1758 +|LI|๐Ÿ‡ฑ๐Ÿ‡ฎ|U+1F1F1 U+1F1EE|Liechtenstein| +423 +|LK|๐Ÿ‡ฑ๐Ÿ‡ฐ|U+1F1F1 U+1F1F0|Sri Lanka| +94 +|LR|๐Ÿ‡ฑ๐Ÿ‡ท|U+1F1F1 U+1F1F7|Liberia| +231 +|LS|๐Ÿ‡ฑ๐Ÿ‡ธ|U+1F1F1 U+1F1F8|Lesotho| +266 +|LT|๐Ÿ‡ฑ๐Ÿ‡น|U+1F1F1 U+1F1F9|Lithuania| +370 +|LU|๐Ÿ‡ฑ๐Ÿ‡บ|U+1F1F1 U+1F1FA|Luxembourg| +352 +|LV|๐Ÿ‡ฑ๐Ÿ‡ป|U+1F1F1 U+1F1FB|Latvia| +371 +|LY|๐Ÿ‡ฑ๐Ÿ‡พ|U+1F1F1 U+1F1FE|Libya| +218 +|MA|๐Ÿ‡ฒ๐Ÿ‡ฆ|U+1F1F2 U+1F1E6|Morocco| +212 +|MC|๐Ÿ‡ฒ๐Ÿ‡จ|U+1F1F2 U+1F1E8|Monaco| +377 +|MD|๐Ÿ‡ฒ๐Ÿ‡ฉ|U+1F1F2 U+1F1E9|Moldova| +373 +|ME|๐Ÿ‡ฒ๐Ÿ‡ช|U+1F1F2 U+1F1EA|Montenegro| +382 +|MF|๐Ÿ‡ฒ๐Ÿ‡ซ|U+1F1F2 U+1F1EB|Saint Martin (French Part)| +590 +|MG|๐Ÿ‡ฒ๐Ÿ‡ฌ|U+1F1F2 U+1F1EC|Madagascar| +261 +|MH|๐Ÿ‡ฒ๐Ÿ‡ญ|U+1F1F2 U+1F1ED|Marshall Islands| +692 +|MK|๐Ÿ‡ฒ๐Ÿ‡ฐ|U+1F1F2 U+1F1F0|Macedonia| +389 +|ML|๐Ÿ‡ฒ๐Ÿ‡ฑ|U+1F1F2 U+1F1F1|Mali| +223 +|MM|๐Ÿ‡ฒ๐Ÿ‡ฒ|U+1F1F2 U+1F1F2|Myanmar| +95 +|MN|๐Ÿ‡ฒ๐Ÿ‡ณ|U+1F1F2 U+1F1F3|Mongolia| +976 +|MO|๐Ÿ‡ฒ๐Ÿ‡ด|U+1F1F2 U+1F1F4|Macao| +853 +|MP|๐Ÿ‡ฒ๐Ÿ‡ต|U+1F1F2 U+1F1F5|Northern Mariana Islands| +1670 +|MQ|๐Ÿ‡ฒ๐Ÿ‡ถ|U+1F1F2 U+1F1F6|Martinique| +596 +|MR|๐Ÿ‡ฒ๐Ÿ‡ท|U+1F1F2 U+1F1F7|Mauritania| +222 +|MS|๐Ÿ‡ฒ๐Ÿ‡ธ|U+1F1F2 U+1F1F8|Montserrat| +1664 +|MT|๐Ÿ‡ฒ๐Ÿ‡น|U+1F1F2 U+1F1F9|Malta| +356 +|MU|๐Ÿ‡ฒ๐Ÿ‡บ|U+1F1F2 U+1F1FA|Mauritius| +230 +|MV|๐Ÿ‡ฒ๐Ÿ‡ป|U+1F1F2 U+1F1FB|Maldives| +960 +|MW|๐Ÿ‡ฒ๐Ÿ‡ผ|U+1F1F2 U+1F1FC|Malawi| +265 +|MX|๐Ÿ‡ฒ๐Ÿ‡ฝ|U+1F1F2 U+1F1FD|Mexico| +52 +|MY|๐Ÿ‡ฒ๐Ÿ‡พ|U+1F1F2 U+1F1FE|Malaysia| +60 +|MZ|๐Ÿ‡ฒ๐Ÿ‡ฟ|U+1F1F2 U+1F1FF|Mozambique| +258 +|NA|๐Ÿ‡ณ๐Ÿ‡ฆ|U+1F1F3 U+1F1E6|Namibia|+264 +|NC|๐Ÿ‡ณ๐Ÿ‡จ|U+1F1F3 U+1F1E8|New Caledonia| +687 +|NE|๐Ÿ‡ณ๐Ÿ‡ช|U+1F1F3 U+1F1EA|Niger| +227 +|NF|๐Ÿ‡ณ๐Ÿ‡ซ|U+1F1F3 U+1F1EB|Norfolk Island| +672 +|NG|๐Ÿ‡ณ๐Ÿ‡ฌ|U+1F1F3 U+1F1EC|Nigeria| +234 +|NI|๐Ÿ‡ณ๐Ÿ‡ฎ|U+1F1F3 U+1F1EE|Nicaragua| +505 +|NL|๐Ÿ‡ณ๐Ÿ‡ฑ|U+1F1F3 U+1F1F1|Netherlands| +31 +|NO|๐Ÿ‡ณ๐Ÿ‡ด|U+1F1F3 U+1F1F4|Norway| +47 +|NP|๐Ÿ‡ณ๐Ÿ‡ต|U+1F1F3 U+1F1F5|Nepal| +977 +|NR|๐Ÿ‡ณ๐Ÿ‡ท|U+1F1F3 U+1F1F7|Nauru| +674 +|NU|๐Ÿ‡ณ๐Ÿ‡บ|U+1F1F3 U+1F1FA|Niue| +683 +|NZ|๐Ÿ‡ณ๐Ÿ‡ฟ|U+1F1F3 U+1F1FF|New Zealand| +64 +|OM|๐Ÿ‡ด๐Ÿ‡ฒ|U+1F1F4 U+1F1F2|Oman| +968 +|PA|๐Ÿ‡ต๐Ÿ‡ฆ|U+1F1F5 U+1F1E6|Panama| +507 +|PE|๐Ÿ‡ต๐Ÿ‡ช|U+1F1F5 U+1F1EA|Peru| +51 +|PF|๐Ÿ‡ต๐Ÿ‡ซ|U+1F1F5 U+1F1EB|French Polynesia| +689 +|PG|๐Ÿ‡ต๐Ÿ‡ฌ|U+1F1F5 U+1F1EC|Papua New Guinea| +675 +|PH|๐Ÿ‡ต๐Ÿ‡ญ|U+1F1F5 U+1F1ED|Philippines| +63 +|PK|๐Ÿ‡ต๐Ÿ‡ฐ|U+1F1F5 U+1F1F0|Pakistan| +92 +|PL|๐Ÿ‡ต๐Ÿ‡ฑ|U+1F1F5 U+1F1F1|Poland| +48 +|PM|๐Ÿ‡ต๐Ÿ‡ฒ|U+1F1F5 U+1F1F2|Saint Pierre and Miquelon| +508 +|PN|๐Ÿ‡ต๐Ÿ‡ณ|U+1F1F5 U+1F1F3|Pitcairn| +872 +|PR|๐Ÿ‡ต๐Ÿ‡ท|U+1F1F5 U+1F1F7|Puerto Rico| +1939 +|PS|๐Ÿ‡ต๐Ÿ‡ธ|U+1F1F5 U+1F1F8|Palestinian Territory| +970 +|PT|๐Ÿ‡ต๐Ÿ‡น|U+1F1F5 U+1F1F9|Portugal| +351 +|PW|๐Ÿ‡ต๐Ÿ‡ผ|U+1F1F5 U+1F1FC|Palau| +680 +|PY|๐Ÿ‡ต๐Ÿ‡พ|U+1F1F5 U+1F1FE|Paraguay| +595 +|QA|๐Ÿ‡ถ๐Ÿ‡ฆ|U+1F1F6 U+1F1E6|Qatar| +974 +|RE|๐Ÿ‡ท๐Ÿ‡ช|U+1F1F7 U+1F1EA|Rรฉunion| +262 +|RO|๐Ÿ‡ท๐Ÿ‡ด|U+1F1F7 U+1F1F4|Romania| +40 +|RS|๐Ÿ‡ท๐Ÿ‡ธ|U+1F1F7 U+1F1F8|Serbia| +381 +|RU|๐Ÿ‡ท๐Ÿ‡บ|U+1F1F7 U+1F1FA|Russia| +7 +|RW|๐Ÿ‡ท๐Ÿ‡ผ|U+1F1F7 U+1F1FC|Rwanda| +250 +|SA|๐Ÿ‡ธ๐Ÿ‡ฆ|U+1F1F8 U+1F1E6|Saudi Arabia| +966 +|SB|๐Ÿ‡ธ๐Ÿ‡ง|U+1F1F8 U+1F1E7|Solomon Islands| +677 +|SC|๐Ÿ‡ธ๐Ÿ‡จ|U+1F1F8 U+1F1E8|Seychelles| +248 +|SD|๐Ÿ‡ธ๐Ÿ‡ฉ|U+1F1F8 U+1F1E9|Sudan| +249 +|SE|๐Ÿ‡ธ๐Ÿ‡ช|U+1F1F8 U+1F1EA|Sweden| +46 +|SG|๐Ÿ‡ธ๐Ÿ‡ฌ|U+1F1F8 U+1F1EC|Singapore| +65 +|SH|๐Ÿ‡ธ๐Ÿ‡ญ|U+1F1F8 U+1F1ED|Saint Helena, Ascension and Tristan Da Cunha| +290 +|SI|๐Ÿ‡ธ๐Ÿ‡ฎ|U+1F1F8 U+1F1EE|Slovenia| +386 +|SJ|๐Ÿ‡ธ๐Ÿ‡ฏ|U+1F1F8 U+1F1EF|Svalbard and Jan Mayen| +|SK|๐Ÿ‡ธ๐Ÿ‡ฐ|U+1F1F8 U+1F1F0|Slovakia| +421 +|SL|๐Ÿ‡ธ๐Ÿ‡ฑ|U+1F1F8 U+1F1F1|Sierra Leone| +232 +|SM|๐Ÿ‡ธ๐Ÿ‡ฒ|U+1F1F8 U+1F1F2|San Marino| +378 +|SN|๐Ÿ‡ธ๐Ÿ‡ณ|U+1F1F8 U+1F1F3|Senegal| +221 +|SO|๐Ÿ‡ธ๐Ÿ‡ด|U+1F1F8 U+1F1F4|Somalia| +252 +|SR|๐Ÿ‡ธ๐Ÿ‡ท|U+1F1F8 U+1F1F7|Suriname| +597 +|SS|๐Ÿ‡ธ๐Ÿ‡ธ|U+1F1F8 U+1F1F8|South Sudan| +211 +|ST|๐Ÿ‡ธ๐Ÿ‡น|U+1F1F8 U+1F1F9|Sao Tome and Principe| +239 +|SV|๐Ÿ‡ธ๐Ÿ‡ป|U+1F1F8 U+1F1FB|El Salvador| +503 +|SX|๐Ÿ‡ธ๐Ÿ‡ฝ|U+1F1F8 U+1F1FD|Sint Maarten (Dutch Part)| +1721 +|SY|๐Ÿ‡ธ๐Ÿ‡พ|U+1F1F8 U+1F1FE|Syrian Arab Republic| +963 +|SZ|๐Ÿ‡ธ๐Ÿ‡ฟ|U+1F1F8 U+1F1FF|Swaziland| +268 +|TC|๐Ÿ‡น๐Ÿ‡จ|U+1F1F9 U+1F1E8|Turks and Caicos Islands| +1649 +|TD|๐Ÿ‡น๐Ÿ‡ฉ|U+1F1F9 U+1F1E9|Chad| +235 +|TF|๐Ÿ‡น๐Ÿ‡ซ|U+1F1F9 U+1F1EB|French Southern Territories| +262 +|TG|๐Ÿ‡น๐Ÿ‡ฌ|U+1F1F9 U+1F1EC|Togo| +228 +|TH|๐Ÿ‡น๐Ÿ‡ญ|U+1F1F9 U+1F1ED|Thailand| +66 +|TJ|๐Ÿ‡น๐Ÿ‡ฏ|U+1F1F9 U+1F1EF|Tajikistan| +992 +|TK|๐Ÿ‡น๐Ÿ‡ฐ|U+1F1F9 U+1F1F0|Tokelau| +690 +|TL|๐Ÿ‡น๐Ÿ‡ฑ|U+1F1F9 U+1F1F1|Timor-Leste| +670 +|TM|๐Ÿ‡น๐Ÿ‡ฒ|U+1F1F9 U+1F1F2|Turkmenistan| +993 +|TN|๐Ÿ‡น๐Ÿ‡ณ|U+1F1F9 U+1F1F3|Tunisia| +216 +|TO|๐Ÿ‡น๐Ÿ‡ด|U+1F1F9 U+1F1F4|Tonga| +676 +|TR|๐Ÿ‡น๐Ÿ‡ท|U+1F1F9 U+1F1F7|Turkey| +90 +|TT|๐Ÿ‡น๐Ÿ‡น|U+1F1F9 U+1F1F9|Trinidad and Tobago| +1868 +|TV|๐Ÿ‡น๐Ÿ‡ป|U+1F1F9 U+1F1FB|Tuvalu| +688 +|TW|๐Ÿ‡น๐Ÿ‡ผ|U+1F1F9 U+1F1FC|Taiwan| +886 +|TZ|๐Ÿ‡น๐Ÿ‡ฟ|U+1F1F9 U+1F1FF|Tanzania| +255 +|UA|๐Ÿ‡บ๐Ÿ‡ฆ|U+1F1FA U+1F1E6|Ukraine| UA +|UG|๐Ÿ‡บ๐Ÿ‡ฌ|U+1F1FA U+1F1EC|Uganda| +256 +|UM|๐Ÿ‡บ๐Ÿ‡ฒ|U+1F1FA U+1F1F2|United States Minor Outlying Islands| +1 +|US|๐Ÿ‡บ๐Ÿ‡ธ|U+1F1FA U+1F1F8|United States| +1 +|UY|๐Ÿ‡บ๐Ÿ‡พ|U+1F1FA U+1F1FE|Uruguay| +598 +|UZ|๐Ÿ‡บ๐Ÿ‡ฟ|U+1F1FA U+1F1FF|Uzbekistan| +998 +|VA|๐Ÿ‡ป๐Ÿ‡ฆ|U+1F1FB U+1F1E6|Vatican City| +379 +|VC|๐Ÿ‡ป๐Ÿ‡จ|U+1F1FB U+1F1E8|Saint Vincent and The Grenadines| +1784 +|VE|๐Ÿ‡ป๐Ÿ‡ช|U+1F1FB U+1F1EA|Venezuela| +58 +|VG|๐Ÿ‡ป๐Ÿ‡ฌ|U+1F1FB U+1F1EC|Virgin Islands, British| +1284 +|VI|๐Ÿ‡ป๐Ÿ‡ฎ|U+1F1FB U+1F1EE|Virgin Islands, U.S.| +1340 +|VN|๐Ÿ‡ป๐Ÿ‡ณ|U+1F1FB U+1F1F3|Viet Nam| +84 +|VU|๐Ÿ‡ป๐Ÿ‡บ|U+1F1FB U+1F1FA|Vanuatu| +678 +|WF|๐Ÿ‡ผ๐Ÿ‡ซ|U+1F1FC U+1F1EB|Wallis and Futuna| +681 +|WS|๐Ÿ‡ผ๐Ÿ‡ธ|U+1F1FC U+1F1F8|Samoa| +685 +|YE|๐Ÿ‡พ๐Ÿ‡ช|U+1F1FE U+1F1EA|Yemen| +967 +|YT|๐Ÿ‡พ๐Ÿ‡น|U+1F1FE U+1F1F9|Mayotte| +262 +|ZA|๐Ÿ‡ฟ๐Ÿ‡ฆ|U+1F1FF U+1F1E6|South Africa| +27 +|ZM|๐Ÿ‡ฟ๐Ÿ‡ฒ|U+1F1FF U+1F1F2|Zambia| +260 +|ZW|๐Ÿ‡ฟ๐Ÿ‡ผ|U+1F1FF U+1F1FC|Zimbabwe| +263 diff --git a/README.md b/README.md index b979a82..47fa7c4 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,12 @@ A simple cross-platform offline .NET library for getting Global Country Data wit ### Install Library ##### Package Manager ```cSharp - PM> Install-Package CountryData.Standard -Version 1.4.0 + PM> Install-Package CountryData.Standard -Version 1.4.1 ``` ##### .NET CLI ```cSharp - > dotnet add package CountryData.Standard --version 1.4.0 + > dotnet add package CountryData.Standard --version 1.4.1 ``` @@ -75,7 +75,7 @@ For a quick start, you can check out the `Simple code` folder provided in the foreach (var country in countries) Console.WriteLine(country); - + //example 2 data.Where(x => x.CountryShortCode == "US") .Select(r=>r.Regions).FirstOrDefault() @@ -94,261 +94,9 @@ foreach (var country in countriesWithPhoneCode) ``` +## ISO-3166-1 country codes -#### List of supported ISO-3166-1 country codes, their codepoint pairs and Emoji Flags. - -|ISO|Emoji|Unicode|Name|PhoneCode -|--- |--- |--- |--- |------| -|AD|๐Ÿ‡ฆ๐Ÿ‡ฉ|U+1F1E6 U+1F1E9|Andorra| +376 -|AE|๐Ÿ‡ฆ๐Ÿ‡ช|U+1F1E6 U+1F1EA|United Arab Emirates| +271 -|AF|๐Ÿ‡ฆ๐Ÿ‡ซ|U+1F1E6 U+1F1EB|Afghanistan|+93 -|AG|๐Ÿ‡ฆ๐Ÿ‡ฌ|U+1F1E6 U+1F1EC|Antigua and Barbuda| +1268 -|AI|๐Ÿ‡ฆ๐Ÿ‡ฎ|U+1F1E6 U+1F1EE|Anguilla|+1264 -|AL|๐Ÿ‡ฆ๐Ÿ‡ฑ|U+1F1E6 U+1F1F1|Albania| +355 -|AM|๐Ÿ‡ฆ๐Ÿ‡ฒ|U+1F1E6 U+1F1F2|Armenia|+374 -|AO|๐Ÿ‡ฆ๐Ÿ‡ด|U+1F1E6 U+1F1F4|Angola| +244 -|AQ|๐Ÿ‡ฆ๐Ÿ‡ถ|U+1F1E6 U+1F1F6|Antarctica| +672 -|AR|๐Ÿ‡ฆ๐Ÿ‡ท|U+1F1E6 U+1F1F7|Argentina| +54 -|AS|๐Ÿ‡ฆ๐Ÿ‡ธ|U+1F1E6 U+1F1F8|American Samoa| +1684 -|AT|๐Ÿ‡ฆ๐Ÿ‡น|U+1F1E6 U+1F1F9|Austria| +43 -|AU|๐Ÿ‡ฆ๐Ÿ‡บ|U+1F1E6 U+1F1FA|Australia| +61 -|AW|๐Ÿ‡ฆ๐Ÿ‡ผ|U+1F1E6 U+1F1FC|Aruba|+297 -|AX|๐Ÿ‡ฆ๐Ÿ‡ฝ|U+1F1E6 U+1F1FD|ร…land Islands|+358 -|AZ|๐Ÿ‡ฆ๐Ÿ‡ฟ|U+1F1E6 U+1F1FF|Azerbaijan| +994 -|BA|๐Ÿ‡ง๐Ÿ‡ฆ|U+1F1E7 U+1F1E6|Bosnia and Herzegovina| +387 -|BB|๐Ÿ‡ง๐Ÿ‡ง|U+1F1E7 U+1F1E7|Barbados| +1246 -|BD|๐Ÿ‡ง๐Ÿ‡ฉ|U+1F1E7 U+1F1E9|Bangladesh| +880 -|BE|๐Ÿ‡ง๐Ÿ‡ช|U+1F1E7 U+1F1EA|Belgium| +32 -|BF|๐Ÿ‡ง๐Ÿ‡ซ|U+1F1E7 U+1F1EB|Burkina Faso| +226 -|BG|๐Ÿ‡ง๐Ÿ‡ฌ|U+1F1E7 U+1F1EC|Bulgaria| +359 -|BH|๐Ÿ‡ง๐Ÿ‡ญ|U+1F1E7 U+1F1ED|Bahrain| +973 -|BI|๐Ÿ‡ง๐Ÿ‡ฎ|U+1F1E7 U+1F1EE|Burundi| +257 -|BJ|๐Ÿ‡ง๐Ÿ‡ฏ|U+1F1E7 U+1F1EF|Benin| +229 -|BL|๐Ÿ‡ง๐Ÿ‡ฑ|U+1F1E7 U+1F1F1|Saint Barthรฉlemy| +590 -|BM|๐Ÿ‡ง๐Ÿ‡ฒ|U+1F1E7 U+1F1F2|Bermuda| +1441 -|BN|๐Ÿ‡ง๐Ÿ‡ณ|U+1F1E7 U+1F1F3|Brunei Darussalam| +673 -|BO|๐Ÿ‡ง๐Ÿ‡ด|U+1F1E7 U+1F1F4|Bolivia| +591 -|BQ|๐Ÿ‡ง๐Ÿ‡ถ|U+1F1E7 U+1F1F6|Bonaire, Sint Eustatius and Saba| +599 -|BR|๐Ÿ‡ง๐Ÿ‡ท|U+1F1E7 U+1F1F7|Brazil| +55 -|BS|๐Ÿ‡ง๐Ÿ‡ธ|U+1F1E7 U+1F1F8|Bahamas| +1242 -|BT|๐Ÿ‡ง๐Ÿ‡น|U+1F1E7 U+1F1F9|Bhutan| +975 -|BV|๐Ÿ‡ง๐Ÿ‡ป|U+1F1E7 U+1F1FB|Bouvet Island| +47 -|BW|๐Ÿ‡ง๐Ÿ‡ผ|U+1F1E7 U+1F1FC|Botswana| +267 -|BY|๐Ÿ‡ง๐Ÿ‡พ|U+1F1E7 U+1F1FE|Belarus| +375 -|BZ|๐Ÿ‡ง๐Ÿ‡ฟ|U+1F1E7 U+1F1FF|Belize| +501 -|CA|๐Ÿ‡จ๐Ÿ‡ฆ|U+1F1E8 U+1F1E6|Canada| +1 -|CC|๐Ÿ‡จ๐Ÿ‡จ|U+1F1E8 U+1F1E8|Cocos (Keeling) Islands| +61 -|CD|๐Ÿ‡จ๐Ÿ‡ฉ|U+1F1E8 U+1F1E9|Congo| +243 -|CF|๐Ÿ‡จ๐Ÿ‡ซ|U+1F1E8 U+1F1EB|Central African Republic| +236 -|CG|๐Ÿ‡จ๐Ÿ‡ฌ|U+1F1E8 U+1F1EC|Congo| +242 -|CH|๐Ÿ‡จ๐Ÿ‡ญ|U+1F1E8 U+1F1ED|Switzerland| +41 -|CI|๐Ÿ‡จ๐Ÿ‡ฎ|U+1F1E8 U+1F1EE|Cรดte D'Ivoire| +225 -|CK|๐Ÿ‡จ๐Ÿ‡ฐ|U+1F1E8 U+1F1F0|Cook Islands| +682 -|CL|๐Ÿ‡จ๐Ÿ‡ฑ|U+1F1E8 U+1F1F1|Chile| +56 -|CM|๐Ÿ‡จ๐Ÿ‡ฒ|U+1F1E8 U+1F1F2|Cameroon| +237 -|CN|๐Ÿ‡จ๐Ÿ‡ณ|U+1F1E8 U+1F1F3|China| +86 -|CO|๐Ÿ‡จ๐Ÿ‡ด|U+1F1E8 U+1F1F4|Colombia| +57 -|CR|๐Ÿ‡จ๐Ÿ‡ท|U+1F1E8 U+1F1F7|Costa Rica| +506 -|CU|๐Ÿ‡จ๐Ÿ‡บ|U+1F1E8 U+1F1FA|Cuba| +53 -|CV|๐Ÿ‡จ๐Ÿ‡ป|U+1F1E8 U+1F1FB|Cape Verde| +238 -|CW|๐Ÿ‡จ๐Ÿ‡ผ|U+1F1E8 U+1F1FC|Curaรงao| +599 -|CX|๐Ÿ‡จ๐Ÿ‡ฝ|U+1F1E8 U+1F1FD|Christmas Island| +61 -|CY|๐Ÿ‡จ๐Ÿ‡พ|U+1F1E8 U+1F1FE|Cyprus| +357 -|CZ|๐Ÿ‡จ๐Ÿ‡ฟ|U+1F1E8 U+1F1FF|Czech Republic| +420 -|DE|๐Ÿ‡ฉ๐Ÿ‡ช|U+1F1E9 U+1F1EA|Germany| +49 -|DJ|๐Ÿ‡ฉ๐Ÿ‡ฏ|U+1F1E9 U+1F1EF|Djibouti| +253 -|DK|๐Ÿ‡ฉ๐Ÿ‡ฐ|U+1F1E9 U+1F1F0|Denmark|+45 -|DM|๐Ÿ‡ฉ๐Ÿ‡ฒ|U+1F1E9 U+1F1F2|Dominica| +1767 -|DO|๐Ÿ‡ฉ๐Ÿ‡ด|U+1F1E9 U+1F1F4|Dominican Republic| +1849 -|DZ|๐Ÿ‡ฉ๐Ÿ‡ฟ|U+1F1E9 U+1F1FF|Algeria| +213 -|EC|๐Ÿ‡ช๐Ÿ‡จ|U+1F1EA U+1F1E8|Ecuador| +593 -|EE|๐Ÿ‡ช๐Ÿ‡ช|U+1F1EA U+1F1EA|Estonia| +372 -|EG|๐Ÿ‡ช๐Ÿ‡ฌ|U+1F1EA U+1F1EC|Egypt| +20 -|EH|๐Ÿ‡ช๐Ÿ‡ญ|U+1F1EA U+1F1ED|Western Sahara| +212 -|ER|๐Ÿ‡ช๐Ÿ‡ท|U+1F1EA U+1F1F7|Eritrea| +291 -|ES|๐Ÿ‡ช๐Ÿ‡ธ|U+1F1EA U+1F1F8|Spain| +34 -|ET|๐Ÿ‡ช๐Ÿ‡น|U+1F1EA U+1F1F9|Ethiopia| +251 -|FI|๐Ÿ‡ซ๐Ÿ‡ฎ|U+1F1EB U+1F1EE|Finland| +358 -|FJ|๐Ÿ‡ซ๐Ÿ‡ฏ|U+1F1EB U+1F1EF|Fiji| +679 -|FK|๐Ÿ‡ซ๐Ÿ‡ฐ|U+1F1EB U+1F1F0|Falkland Islands (Malvinas)| +500 -|FM|๐Ÿ‡ซ๐Ÿ‡ฒ|U+1F1EB U+1F1F2|Micronesia| +691 -|FO|๐Ÿ‡ซ๐Ÿ‡ด|U+1F1EB U+1F1F4|Faroe Islands| +298 -|FR|๐Ÿ‡ซ๐Ÿ‡ท|U+1F1EB U+1F1F7|France| +33 -|GA|๐Ÿ‡ฌ๐Ÿ‡ฆ|U+1F1EC U+1F1E6|Gabon| +241 -|GB|๐Ÿ‡ฌ๐Ÿ‡ง|U+1F1EC U+1F1E7|United Kingdom| +44 -|GD|๐Ÿ‡ฌ๐Ÿ‡ฉ|U+1F1EC U+1F1E9|Grenada| +1473 -|GE|๐Ÿ‡ฌ๐Ÿ‡ช|U+1F1EC U+1F1EA|Georgia| +995 -|GF|๐Ÿ‡ฌ๐Ÿ‡ซ|U+1F1EC U+1F1EB|French Guiana| +594 -|GG|๐Ÿ‡ฌ๐Ÿ‡ฌ|U+1F1EC U+1F1EC|Guernsey| +44 -|GH|๐Ÿ‡ฌ๐Ÿ‡ญ|U+1F1EC U+1F1ED|Ghana| +233 -|GI|๐Ÿ‡ฌ๐Ÿ‡ฎ|U+1F1EC U+1F1EE|Gibraltar| +350 -|GL|๐Ÿ‡ฌ๐Ÿ‡ฑ|U+1F1EC U+1F1F1|Greenland| +299 -|GM|๐Ÿ‡ฌ๐Ÿ‡ฒ|U+1F1EC U+1F1F2|Gambia| +220 -|GN|๐Ÿ‡ฌ๐Ÿ‡ณ|U+1F1EC U+1F1F3|Guinea| +224 -|GP|๐Ÿ‡ฌ๐Ÿ‡ต|U+1F1EC U+1F1F5|Guadeloupe| +590 -|GQ|๐Ÿ‡ฌ๐Ÿ‡ถ|U+1F1EC U+1F1F6|Equatorial Guinea| +240 -|GR|๐Ÿ‡ฌ๐Ÿ‡ท|U+1F1EC U+1F1F7|Greece| +30 -|GS|๐Ÿ‡ฌ๐Ÿ‡ธ|U+1F1EC U+1F1F8|South Georgia| +500 -|GT|๐Ÿ‡ฌ๐Ÿ‡น|U+1F1EC U+1F1F9|Guatemala| +502 -|GU|๐Ÿ‡ฌ๐Ÿ‡บ|U+1F1EC U+1F1FA|Guam| +1671 -|GW|๐Ÿ‡ฌ๐Ÿ‡ผ|U+1F1EC U+1F1FC|Guinea-Bissau| +245 -|GY|๐Ÿ‡ฌ๐Ÿ‡พ|U+1F1EC U+1F1FE|Guyana| +592 -|HK|๐Ÿ‡ญ๐Ÿ‡ฐ|U+1F1ED U+1F1F0|Hong Kong| +852 -|HM|๐Ÿ‡ญ๐Ÿ‡ฒ|U+1F1ED U+1F1F2|Heard Island and Mcdonald Islands| +672 -|HN|๐Ÿ‡ญ๐Ÿ‡ณ|U+1F1ED U+1F1F3|Honduras| +504 -|HR|๐Ÿ‡ญ๐Ÿ‡ท|U+1F1ED U+1F1F7|Croatia| +385 -|HT|๐Ÿ‡ญ๐Ÿ‡น|U+1F1ED U+1F1F9|Haiti| +509 -|HU|๐Ÿ‡ญ๐Ÿ‡บ|U+1F1ED U+1F1FA|Hungary| +36 -|ID|๐Ÿ‡ฎ๐Ÿ‡ฉ|U+1F1EE U+1F1E9|Indonesia| +62 -|IE|๐Ÿ‡ฎ๐Ÿ‡ช|U+1F1EE U+1F1EA|Ireland| +353 -|IL|๐Ÿ‡ฎ๐Ÿ‡ฑ|U+1F1EE U+1F1F1|Israel| +972 -|IM|๐Ÿ‡ฎ๐Ÿ‡ฒ|U+1F1EE U+1F1F2|Isle of Man| +44 -|IN|๐Ÿ‡ฎ๐Ÿ‡ณ|U+1F1EE U+1F1F3|India| +91 -|IO|๐Ÿ‡ฎ๐Ÿ‡ด|U+1F1EE U+1F1F4|British Indian Ocean Territory| +246 -|IQ|๐Ÿ‡ฎ๐Ÿ‡ถ|U+1F1EE U+1F1F6|Iraq| +964 -|IR|๐Ÿ‡ฎ๐Ÿ‡ท|U+1F1EE U+1F1F7|Iran| +98 -|IS|๐Ÿ‡ฎ๐Ÿ‡ธ|U+1F1EE U+1F1F8|Iceland| +354 -|IT|๐Ÿ‡ฎ๐Ÿ‡น|U+1F1EE U+1F1F9|Italy| +39 -|JE|๐Ÿ‡ฏ๐Ÿ‡ช|U+1F1EF U+1F1EA|Jersey| +44 -|JM|๐Ÿ‡ฏ๐Ÿ‡ฒ|U+1F1EF U+1F1F2|Jamaica|+1876 -|JO|๐Ÿ‡ฏ๐Ÿ‡ด|U+1F1EF U+1F1F4|Jordan| +962 -|JP|๐Ÿ‡ฏ๐Ÿ‡ต|U+1F1EF U+1F1F5|Japan| +81 -|KE|๐Ÿ‡ฐ๐Ÿ‡ช|U+1F1F0 U+1F1EA|Kenya| +254 -|KG|๐Ÿ‡ฐ๐Ÿ‡ฌ|U+1F1F0 U+1F1EC|Kyrgyzstan| +996 -|KH|๐Ÿ‡ฐ๐Ÿ‡ญ|U+1F1F0 U+1F1ED|Cambodia| +855 -|KI|๐Ÿ‡ฐ๐Ÿ‡ฎ|U+1F1F0 U+1F1EE|Kiribati| +686 -|KM|๐Ÿ‡ฐ๐Ÿ‡ฒ|U+1F1F0 U+1F1F2|Comoros| +269 -|KN|๐Ÿ‡ฐ๐Ÿ‡ณ|U+1F1F0 U+1F1F3|Saint Kitts and Nevis| +1869 -|KP|๐Ÿ‡ฐ๐Ÿ‡ต|U+1F1F0 U+1F1F5|North Korea| +850 -|KR|๐Ÿ‡ฐ๐Ÿ‡ท|U+1F1F0 U+1F1F7|South Korea| +82 -|KW|๐Ÿ‡ฐ๐Ÿ‡ผ|U+1F1F0 U+1F1FC|Kuwait| +965 -|KY|๐Ÿ‡ฐ๐Ÿ‡พ|U+1F1F0 U+1F1FE|Cayman Islands| +1345 -|KZ|๐Ÿ‡ฐ๐Ÿ‡ฟ|U+1F1F0 U+1F1FF|Kazakhstan| +77 -|LA|๐Ÿ‡ฑ๐Ÿ‡ฆ|U+1F1F1 U+1F1E6|Lao People's Democratic Republic| +856 -|LB|๐Ÿ‡ฑ๐Ÿ‡ง|U+1F1F1 U+1F1E7|Lebanon| +961 -|LC|๐Ÿ‡ฑ๐Ÿ‡จ|U+1F1F1 U+1F1E8|Saint Lucia| +1758 -|LI|๐Ÿ‡ฑ๐Ÿ‡ฎ|U+1F1F1 U+1F1EE|Liechtenstein| +423 -|LK|๐Ÿ‡ฑ๐Ÿ‡ฐ|U+1F1F1 U+1F1F0|Sri Lanka| +94 -|LR|๐Ÿ‡ฑ๐Ÿ‡ท|U+1F1F1 U+1F1F7|Liberia| +231 -|LS|๐Ÿ‡ฑ๐Ÿ‡ธ|U+1F1F1 U+1F1F8|Lesotho| +266 -|LT|๐Ÿ‡ฑ๐Ÿ‡น|U+1F1F1 U+1F1F9|Lithuania| +370 -|LU|๐Ÿ‡ฑ๐Ÿ‡บ|U+1F1F1 U+1F1FA|Luxembourg| +352 -|LV|๐Ÿ‡ฑ๐Ÿ‡ป|U+1F1F1 U+1F1FB|Latvia| +371 -|LY|๐Ÿ‡ฑ๐Ÿ‡พ|U+1F1F1 U+1F1FE|Libya| +218 -|MA|๐Ÿ‡ฒ๐Ÿ‡ฆ|U+1F1F2 U+1F1E6|Morocco| +212 -|MC|๐Ÿ‡ฒ๐Ÿ‡จ|U+1F1F2 U+1F1E8|Monaco| +377 -|MD|๐Ÿ‡ฒ๐Ÿ‡ฉ|U+1F1F2 U+1F1E9|Moldova| +373 -|ME|๐Ÿ‡ฒ๐Ÿ‡ช|U+1F1F2 U+1F1EA|Montenegro| +382 -|MF|๐Ÿ‡ฒ๐Ÿ‡ซ|U+1F1F2 U+1F1EB|Saint Martin (French Part)| +590 -|MG|๐Ÿ‡ฒ๐Ÿ‡ฌ|U+1F1F2 U+1F1EC|Madagascar| +261 -|MH|๐Ÿ‡ฒ๐Ÿ‡ญ|U+1F1F2 U+1F1ED|Marshall Islands| +692 -|MK|๐Ÿ‡ฒ๐Ÿ‡ฐ|U+1F1F2 U+1F1F0|Macedonia| +389 -|ML|๐Ÿ‡ฒ๐Ÿ‡ฑ|U+1F1F2 U+1F1F1|Mali| +223 -|MM|๐Ÿ‡ฒ๐Ÿ‡ฒ|U+1F1F2 U+1F1F2|Myanmar| +95 -|MN|๐Ÿ‡ฒ๐Ÿ‡ณ|U+1F1F2 U+1F1F3|Mongolia| +976 -|MO|๐Ÿ‡ฒ๐Ÿ‡ด|U+1F1F2 U+1F1F4|Macao| +853 -|MP|๐Ÿ‡ฒ๐Ÿ‡ต|U+1F1F2 U+1F1F5|Northern Mariana Islands| +1670 -|MQ|๐Ÿ‡ฒ๐Ÿ‡ถ|U+1F1F2 U+1F1F6|Martinique| +596 -|MR|๐Ÿ‡ฒ๐Ÿ‡ท|U+1F1F2 U+1F1F7|Mauritania| +222 -|MS|๐Ÿ‡ฒ๐Ÿ‡ธ|U+1F1F2 U+1F1F8|Montserrat| +1664 -|MT|๐Ÿ‡ฒ๐Ÿ‡น|U+1F1F2 U+1F1F9|Malta| +356 -|MU|๐Ÿ‡ฒ๐Ÿ‡บ|U+1F1F2 U+1F1FA|Mauritius| +230 -|MV|๐Ÿ‡ฒ๐Ÿ‡ป|U+1F1F2 U+1F1FB|Maldives| +960 -|MW|๐Ÿ‡ฒ๐Ÿ‡ผ|U+1F1F2 U+1F1FC|Malawi| +265 -|MX|๐Ÿ‡ฒ๐Ÿ‡ฝ|U+1F1F2 U+1F1FD|Mexico| +52 -|MY|๐Ÿ‡ฒ๐Ÿ‡พ|U+1F1F2 U+1F1FE|Malaysia| +60 -|MZ|๐Ÿ‡ฒ๐Ÿ‡ฟ|U+1F1F2 U+1F1FF|Mozambique| +258 -|NA|๐Ÿ‡ณ๐Ÿ‡ฆ|U+1F1F3 U+1F1E6|Namibia|+264 -|NC|๐Ÿ‡ณ๐Ÿ‡จ|U+1F1F3 U+1F1E8|New Caledonia| +687 -|NE|๐Ÿ‡ณ๐Ÿ‡ช|U+1F1F3 U+1F1EA|Niger| +227 -|NF|๐Ÿ‡ณ๐Ÿ‡ซ|U+1F1F3 U+1F1EB|Norfolk Island| +672 -|NG|๐Ÿ‡ณ๐Ÿ‡ฌ|U+1F1F3 U+1F1EC|Nigeria| +234 -|NI|๐Ÿ‡ณ๐Ÿ‡ฎ|U+1F1F3 U+1F1EE|Nicaragua| +505 -|NL|๐Ÿ‡ณ๐Ÿ‡ฑ|U+1F1F3 U+1F1F1|Netherlands| +31 -|NO|๐Ÿ‡ณ๐Ÿ‡ด|U+1F1F3 U+1F1F4|Norway| +47 -|NP|๐Ÿ‡ณ๐Ÿ‡ต|U+1F1F3 U+1F1F5|Nepal| +977 -|NR|๐Ÿ‡ณ๐Ÿ‡ท|U+1F1F3 U+1F1F7|Nauru| +674 -|NU|๐Ÿ‡ณ๐Ÿ‡บ|U+1F1F3 U+1F1FA|Niue| +683 -|NZ|๐Ÿ‡ณ๐Ÿ‡ฟ|U+1F1F3 U+1F1FF|New Zealand| +64 -|OM|๐Ÿ‡ด๐Ÿ‡ฒ|U+1F1F4 U+1F1F2|Oman| +968 -|PA|๐Ÿ‡ต๐Ÿ‡ฆ|U+1F1F5 U+1F1E6|Panama| +507 -|PE|๐Ÿ‡ต๐Ÿ‡ช|U+1F1F5 U+1F1EA|Peru| +51 -|PF|๐Ÿ‡ต๐Ÿ‡ซ|U+1F1F5 U+1F1EB|French Polynesia| +689 -|PG|๐Ÿ‡ต๐Ÿ‡ฌ|U+1F1F5 U+1F1EC|Papua New Guinea| +675 -|PH|๐Ÿ‡ต๐Ÿ‡ญ|U+1F1F5 U+1F1ED|Philippines| +63 -|PK|๐Ÿ‡ต๐Ÿ‡ฐ|U+1F1F5 U+1F1F0|Pakistan| +92 -|PL|๐Ÿ‡ต๐Ÿ‡ฑ|U+1F1F5 U+1F1F1|Poland| +48 -|PM|๐Ÿ‡ต๐Ÿ‡ฒ|U+1F1F5 U+1F1F2|Saint Pierre and Miquelon| +508 -|PN|๐Ÿ‡ต๐Ÿ‡ณ|U+1F1F5 U+1F1F3|Pitcairn| +872 -|PR|๐Ÿ‡ต๐Ÿ‡ท|U+1F1F5 U+1F1F7|Puerto Rico| +1939 -|PS|๐Ÿ‡ต๐Ÿ‡ธ|U+1F1F5 U+1F1F8|Palestinian Territory| +970 -|PT|๐Ÿ‡ต๐Ÿ‡น|U+1F1F5 U+1F1F9|Portugal| +351 -|PW|๐Ÿ‡ต๐Ÿ‡ผ|U+1F1F5 U+1F1FC|Palau| +680 -|PY|๐Ÿ‡ต๐Ÿ‡พ|U+1F1F5 U+1F1FE|Paraguay| +595 -|QA|๐Ÿ‡ถ๐Ÿ‡ฆ|U+1F1F6 U+1F1E6|Qatar| +974 -|RE|๐Ÿ‡ท๐Ÿ‡ช|U+1F1F7 U+1F1EA|Rรฉunion| +262 -|RO|๐Ÿ‡ท๐Ÿ‡ด|U+1F1F7 U+1F1F4|Romania| +40 -|RS|๐Ÿ‡ท๐Ÿ‡ธ|U+1F1F7 U+1F1F8|Serbia| +381 -|RU|๐Ÿ‡ท๐Ÿ‡บ|U+1F1F7 U+1F1FA|Russia| +7 -|RW|๐Ÿ‡ท๐Ÿ‡ผ|U+1F1F7 U+1F1FC|Rwanda| +250 -|SA|๐Ÿ‡ธ๐Ÿ‡ฆ|U+1F1F8 U+1F1E6|Saudi Arabia| +966 -|SB|๐Ÿ‡ธ๐Ÿ‡ง|U+1F1F8 U+1F1E7|Solomon Islands| +677 -|SC|๐Ÿ‡ธ๐Ÿ‡จ|U+1F1F8 U+1F1E8|Seychelles| +248 -|SD|๐Ÿ‡ธ๐Ÿ‡ฉ|U+1F1F8 U+1F1E9|Sudan| +249 -|SE|๐Ÿ‡ธ๐Ÿ‡ช|U+1F1F8 U+1F1EA|Sweden| +46 -|SG|๐Ÿ‡ธ๐Ÿ‡ฌ|U+1F1F8 U+1F1EC|Singapore| +65 -|SH|๐Ÿ‡ธ๐Ÿ‡ญ|U+1F1F8 U+1F1ED|Saint Helena, Ascension and Tristan Da Cunha| +290 -|SI|๐Ÿ‡ธ๐Ÿ‡ฎ|U+1F1F8 U+1F1EE|Slovenia| +386 -|SJ|๐Ÿ‡ธ๐Ÿ‡ฏ|U+1F1F8 U+1F1EF|Svalbard and Jan Mayen| -|SK|๐Ÿ‡ธ๐Ÿ‡ฐ|U+1F1F8 U+1F1F0|Slovakia| +421 -|SL|๐Ÿ‡ธ๐Ÿ‡ฑ|U+1F1F8 U+1F1F1|Sierra Leone| +232 -|SM|๐Ÿ‡ธ๐Ÿ‡ฒ|U+1F1F8 U+1F1F2|San Marino| +378 -|SN|๐Ÿ‡ธ๐Ÿ‡ณ|U+1F1F8 U+1F1F3|Senegal| +221 -|SO|๐Ÿ‡ธ๐Ÿ‡ด|U+1F1F8 U+1F1F4|Somalia| +252 -|SR|๐Ÿ‡ธ๐Ÿ‡ท|U+1F1F8 U+1F1F7|Suriname| +597 -|SS|๐Ÿ‡ธ๐Ÿ‡ธ|U+1F1F8 U+1F1F8|South Sudan| +211 -|ST|๐Ÿ‡ธ๐Ÿ‡น|U+1F1F8 U+1F1F9|Sao Tome and Principe| +239 -|SV|๐Ÿ‡ธ๐Ÿ‡ป|U+1F1F8 U+1F1FB|El Salvador| +503 -|SX|๐Ÿ‡ธ๐Ÿ‡ฝ|U+1F1F8 U+1F1FD|Sint Maarten (Dutch Part)| +1721 -|SY|๐Ÿ‡ธ๐Ÿ‡พ|U+1F1F8 U+1F1FE|Syrian Arab Republic| +963 -|SZ|๐Ÿ‡ธ๐Ÿ‡ฟ|U+1F1F8 U+1F1FF|Swaziland| +268 -|TC|๐Ÿ‡น๐Ÿ‡จ|U+1F1F9 U+1F1E8|Turks and Caicos Islands| +1649 -|TD|๐Ÿ‡น๐Ÿ‡ฉ|U+1F1F9 U+1F1E9|Chad| +235 -|TF|๐Ÿ‡น๐Ÿ‡ซ|U+1F1F9 U+1F1EB|French Southern Territories| +262 -|TG|๐Ÿ‡น๐Ÿ‡ฌ|U+1F1F9 U+1F1EC|Togo| +228 -|TH|๐Ÿ‡น๐Ÿ‡ญ|U+1F1F9 U+1F1ED|Thailand| +66 -|TJ|๐Ÿ‡น๐Ÿ‡ฏ|U+1F1F9 U+1F1EF|Tajikistan| +992 -|TK|๐Ÿ‡น๐Ÿ‡ฐ|U+1F1F9 U+1F1F0|Tokelau| +690 -|TL|๐Ÿ‡น๐Ÿ‡ฑ|U+1F1F9 U+1F1F1|Timor-Leste| +670 -|TM|๐Ÿ‡น๐Ÿ‡ฒ|U+1F1F9 U+1F1F2|Turkmenistan| +993 -|TN|๐Ÿ‡น๐Ÿ‡ณ|U+1F1F9 U+1F1F3|Tunisia| +216 -|TO|๐Ÿ‡น๐Ÿ‡ด|U+1F1F9 U+1F1F4|Tonga| +676 -|TR|๐Ÿ‡น๐Ÿ‡ท|U+1F1F9 U+1F1F7|Turkey| +90 -|TT|๐Ÿ‡น๐Ÿ‡น|U+1F1F9 U+1F1F9|Trinidad and Tobago| +1868 -|TV|๐Ÿ‡น๐Ÿ‡ป|U+1F1F9 U+1F1FB|Tuvalu| +688 -|TW|๐Ÿ‡น๐Ÿ‡ผ|U+1F1F9 U+1F1FC|Taiwan| +886 -|TZ|๐Ÿ‡น๐Ÿ‡ฟ|U+1F1F9 U+1F1FF|Tanzania| +255 -|UA|๐Ÿ‡บ๐Ÿ‡ฆ|U+1F1FA U+1F1E6|Ukraine| UA -|UG|๐Ÿ‡บ๐Ÿ‡ฌ|U+1F1FA U+1F1EC|Uganda| +256 -|UM|๐Ÿ‡บ๐Ÿ‡ฒ|U+1F1FA U+1F1F2|United States Minor Outlying Islands| +1 -|US|๐Ÿ‡บ๐Ÿ‡ธ|U+1F1FA U+1F1F8|United States| +1 -|UY|๐Ÿ‡บ๐Ÿ‡พ|U+1F1FA U+1F1FE|Uruguay| +598 -|UZ|๐Ÿ‡บ๐Ÿ‡ฟ|U+1F1FA U+1F1FF|Uzbekistan| +998 -|VA|๐Ÿ‡ป๐Ÿ‡ฆ|U+1F1FB U+1F1E6|Vatican City| +379 -|VC|๐Ÿ‡ป๐Ÿ‡จ|U+1F1FB U+1F1E8|Saint Vincent and The Grenadines| +1784 -|VE|๐Ÿ‡ป๐Ÿ‡ช|U+1F1FB U+1F1EA|Venezuela| +58 -|VG|๐Ÿ‡ป๐Ÿ‡ฌ|U+1F1FB U+1F1EC|Virgin Islands, British| +1284 -|VI|๐Ÿ‡ป๐Ÿ‡ฎ|U+1F1FB U+1F1EE|Virgin Islands, U.S.| +1340 -|VN|๐Ÿ‡ป๐Ÿ‡ณ|U+1F1FB U+1F1F3|Viet Nam| +84 -|VU|๐Ÿ‡ป๐Ÿ‡บ|U+1F1FB U+1F1FA|Vanuatu| +678 -|WF|๐Ÿ‡ผ๐Ÿ‡ซ|U+1F1FC U+1F1EB|Wallis and Futuna| +681 -|WS|๐Ÿ‡ผ๐Ÿ‡ธ|U+1F1FC U+1F1F8|Samoa| +685 -|YE|๐Ÿ‡พ๐Ÿ‡ช|U+1F1FE U+1F1EA|Yemen| +967 -|YT|๐Ÿ‡พ๐Ÿ‡น|U+1F1FE U+1F1F9|Mayotte| +262 -|ZA|๐Ÿ‡ฟ๐Ÿ‡ฆ|U+1F1FF U+1F1E6|South Africa| +27 -|ZM|๐Ÿ‡ฟ๐Ÿ‡ฒ|U+1F1FF U+1F1F2|Zambia| +260 -|ZW|๐Ÿ‡ฟ๐Ÿ‡ผ|U+1F1FF U+1F1FC|Zimbabwe| +263 - +For a list of supported ISO-3166-1 country codes, PhoneCode, Flags, ISO and , Unicode please refer to the [Country Details](./CountryData/CountryDetails.md) file. ## Contributing @@ -359,7 +107,7 @@ Contributions are welcome! Please see our [Contributing Guide](CONTRIBUTING.md) ### Comming Soon * Support for more ISO Standard Country Data * Support for ISO 3166 Country A3 Codes -* Country ShortCode Enums +* Country ShortCode Enums diff --git a/docs/README.md b/docs/README.md index a8732c7..07ebd5a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,117 +2,161 @@ ## CountryData.Standard Documentation -Welcome to the CountryData.Standard documentation. This package provides easy access to global country data, including names, regions, and flags, directly from your.NET applications. -### Getting Started +CountryData.Standard is a comprehensive library designed to provide seamless access to global country data for .NET applications. This robust package includes information such as: -#### Installation +- Country Names +- Regional Data +- National Flags +- Country Phone Codes -To get started with CountryData.Standard, you can install it via NuGet: +Our aim is to simplify the process of integrating global data into your applications, making it an ideal tool for developers who require international data. + +## Getting Started with CountryData.Standard + +Integrating CountryData.Standard into your project is a straightforward process. You can add it to your application using either NuGet Package Manager or the .NET CLI. + +### Using NuGet Package Manager + +In the Package Manager Console, execute the following command: ```shell -Install-Package CountryData.Standard -Version 1.3.0 +Install-Package CountryData.Standard -Version 1.4.1 ``` -Or using the.NET CLI: +### Using .NET CLI + +Alternatively, you can use the .NET CLI. Run the following command in your terminal: ```shell -dotnet add package CountryData.Standard --version 1.3.0 +dotnet add package CountryData.Standard --version 1.4.1 ``` -### Features +These commands will download and install the latest stable version of CountryData.Standard, allowing you to access a wealth of global country data right in your .NET applications. -- Retrieve a list of all countries. -- Fetch detailed data for a specific country by its ISO code. -- Obtain regions within a country. -- Display the emoji flag for any country. - -### Usage #### Initializing CountryHelper -Before using the features of CountryData.Standard, you must initialize the `CountryHelper` class: +To start using CountryData.Standard, you need to create an instance of the `CountryHelper` class. This object will provide you with access to all the country data available in the library. The `CountryHelper` class is responsible for fetching and managing country data, making it easy for you to retrieve the information you need. +To initialize the `CountryHelper` object, simply create a new instance of the class: ```csharp var helper = new CountryHelper(); ``` +This object will serve as your gateway to the vast array of country data available in the library. + + +### Sample Code + +If you to see how to use the library in a console application, web API, or other types of projects, please refer to the [Sample Code](../sample//README.md) section below. -#### Examples -##### Console Application Example -Refer to the [Console Sample Code](./sample/CountryData.Sample.Console/Program.cs) for a complete example of using CountryData.Standard in a console application. This sample demonstrates how to retrieve and display various country data. +### GetCountryData() Method -##### Web API Example +The `GetCountryData()` method is a powerful tool that provides comprehensive data for all countries. It returns an `IEnumerable`, a collection containing detailed information about each country. This method is particularly useful for applications that require a complete set of global country data. -For integrating CountryData.Standard into a Web API, see the [Web API Sample Code](./sample/CountryData.Sample.WebApi/Controllers/CountryController.cs). This example shows how to create endpoints that return country data based on user requests. +Here's the method signature in C#: -### API Reference +```csharp +IEnumerable GetCountryData(); +``` + +Each `Country` object in the returned `IEnumerable` includes the following properties: + +- `CountryName`: The full name of the country. +- `CountryShortCode`: The ISO 3166-1 alpha-2 country code. +- `Region`: The region in which the country is located. +- `CountryFlag`: The flag of the country. +- `PhoneCode`: The international dialing code for the country. -#### CountryHelper Class -##### Methods -###### GetCountries() +### GetCountries() Method -Retrieves a list of all countries. +The `GetCountries()` method is designed to fetch a comprehensive list of all countries. It returns an `IEnumerable`, which includes the names of all countries available in the library. This makes it easy to iterate over the list and utilize the country names within your application. + +Here's the method signature in C#: ```csharp IEnumerable GetCountries(); ``` -###### GetCountryByCode(string shortCode) +The returned `IEnumerable` contains: +- Country Name + + + +### GetCountryByCode (string shortCode) -Fetches detailed data for a specific country by its ISO code. +The `GetCountryByCode()` method is designed to fetch detailed data for a specific country using its `ISO 3166-1 alpha-2 code. This method returns a `Country` object, providing a wealth of information about the country, including its name, region, flag, and phone code. + +Here's the method signature in C#: ```csharp Country GetCountryByCode(string shortCode); ``` -###### GetCountryData() +This method is particularly useful when you need detailed information about a specific country. Simply pass the country's ISO code as a string argument, and the method will return a `Country` object filled with relevant data. -Returns comprehensive data for all countries. -```csharp -IEnumerable GetCountryData(); -``` -###### GetRegionByCountryCode(string shortCode) +### GetRegionByCountryCode(string shortCode) + +The `GetRegionByCountryCode()` method is designed to fetch a list of regions within a specific country, using the country's ISO 3166-1 alpha-2 code. This method returns a `List`, with each `Region` object representing a distinct region within the specified country. -Obtains regions within a country. +Here's the method signature in C#: ```csharp -List GetRegionByCountryCode(string shortCode); +List GetRegionByCountryCode(string shortCode); ``` -###### GetCountryEmojiFlag(string shortCode) +This method is particularly useful for applications that need to display or analyze regional data within a specific country. Simply pass the country's ISO code as a string argument, and the method will return a list of `Region` objects, each containing the name of a region within the country. + + + + +### GetCountryEmojiFlag(string shortCode) -Displays the emoji flag for any country. +The `GetCountryEmojiFlag()` method is designed to fetch the flag of a specific country using its ISO 3166-1 alpha-2 code. This method provides a simple and effective way to visually represent countries in your application. + +Here's the method signature in C#: ```csharp string GetCountryEmojiFlag(string shortCode); ``` -###### GetPhoneCodeByCountryShortCode(string shortCode) +This method returns the em flag of the country corresponding to the provided ISO code. It's particularly useful when you need to display a country's flag in a user interface or in text-based communication. -Returns a single Country's Phone Code by ShortCode +The returned string contains: +- `Country Flag`: The emoji representation of the country's flag. -```csharp - string GetPhoneCodeByCountryShortCode(string shortCode) +### GetPhoneCodeByCountryShortCode(string shortCode) + +The `GetPhoneCodeByCountryShortCode()` method is designed to fetch the international dialing code (phone code) for a specific country using its ISO 3166-1 alpha-2 code. This method is particularly useful when you need to display or use the phone code of a specific country in your application. + +Here's the method signature in C#: + +```csharp +string GetPhoneCodeByCountryShortCode(string shortCode); ``` +Simply pass the country's ISO code as a string argument, and the method will return a string containing the country's international dialing code. -###### GetCountryByPhoneCode(string phoneCode) - Returns a single Country Data by PhoneCode +### GetCountryByPhoneCode(string phoneCode) +The `GetCountryByPhoneCode()` method is designed to fetch detailed data for a specific country using its international dialing code (phone code). This method returns a `Country` object, providing a wealth of information about the country, including its name, region, flag, and ISO code. -```csharp - Country GetCountryByPhoneCode(string phoneCode) +Here's the method signature in C#: +```csharp +Country GetCountryByPhoneCode(string phoneCode); ``` +This method is particularly useful when you have a phone code and need to retrieve the corresponding country's information. Simply pass the phone code as a string argument, and the method will return a `Country` object filled with relevant data. + diff --git a/sample/README.md b/sample/README.md new file mode 100644 index 0000000..20a346e --- /dev/null +++ b/sample/README.md @@ -0,0 +1,16 @@ + +# Sample Usage of CountryData.Standard + +We provide several examples to help you understand how to effectively use the CountryData.Standard library in different types of applications. + +## Console Application + +For a comprehensive example of how to use CountryData.Standard in a console application, please refer to our [Console Application Sample Code](./CountryData.Sample.Console/Program.cs). This sample demonstrates how to retrieve and display various country data. + +## Web API + +If you're looking to integrate CountryData.Standard into a Web API, we have a sample for that too. Check out our [Web API Sample Code](./CountryData.Sample.Web.API/). This example shows how to create endpoints that return country data based on user requests. + +## MAUI Application + +For developers working with .NET Multi-platform App UI (MAUI), we've got you covered. Our [MAUI Sample Code](./CountryData.Sample.MAUI/CountryData.Sample.MAUI/) demonstrates how to incorporate CountryData.Standard into a MAUI application, providing a rich, cross-platform user experience. \ No newline at end of file