User:Denelson83/Byte country code

From Wikipedia, the free encyclopedia

I have devised a "byte country code", called such because it gives each country in the world a number between 0 and 255 inclusive, essentially allowing every country to be represented by just one byte of data. I conceived this as part of an idea of integrating "location identifiers" into IPv6 addresses. Location identifiers would be two bytes in length, where the first byte draws from the code below, and the second byte represents a subnational entity in the country corresponding to the first byte. I have put this code here to make flag tracking easier for myself, as I have recently acquired a brief, but deep interest in flags.

All countries that have officially-assigned and exceptionally-reserved codes (by the ITU and UPU only) in ISO 3166-1, as well as a few other remote autonomous locations, are used in this code. Codes are assigned in a geographical order. Countries in a certain region of the world are grouped into consecutive code ranges. The five major continental areas each have their own code range, and there is also a "wildcard" code range, used to represent regions, and for cases when all countries in a major continental area cannot fit into their corresponding code range.

Contents

[edit] Wildcard

000 001 002 003 004 005 006 007
The whole world Reserved for two-byte region codes Antarctica Not in use Not in use Not in use United States Minor Outlying Islands Faroe Islands

008 009 010 011 012 013 014 015
Svalbard and Jan Mayen Islands Heard and McDonald Islands Norfolk Island Clipperton Island Falkland Islands South Georgia and the South Sandwich Islands British Virgin Islands Bermuda

[edit] Africa

016 017 018 019 020 021 022 023
Ascension Island Saint Helena Tristan da Cunha Bouvet Island Mauritius Réunion Seychelles Comoros

024 025 026 027 028 029 030 031
Mayotte Madagascar South Africa Lesotho Swaziland Mozambique Malawi Zambia

032 033 034 035 036 037 038 039
Zimbabwe Botswana Namibia Angola Republic of the Congo Gabon Equatorial Guinea São Tomé and Principe

040 041 042 043 044 045 046 047
Cameroon Central African Republic Democratic Republic of the Congo Rwanda Burundi Tanzania Uganda Kenya

048 049 050 051 052 053 054 055
Somalia Djibouti Eritrea Ethiopia Sudan Egypt Libya Tunisia

056 057 058 059 060 061 062 063
Algeria Niger Chad Nigeria Benin Togo Ghana Burkina Faso

064 065 066 067 068 069 070 071
Mali Côte d'Ivoire Liberia Sierra Leone Guinea Guinea-Bissau Senegal The Gambia

072 073 074 075 076 077 078 079
Cape Verde Mauritania Western Sahara Morocco Ceuta and Melilla Canary Islands Madeira Azores

[edit] Europe

080 081 082 083 084 085 086 087
Gibraltar Portugal Spain Andorra France Monaco Malta Italy

088 089 090 091 092 093 094 095
San Marino Vatican City Switzerland Liechtenstein Austria Germany Luxembourg Belgium

096 097 098 099 100 101 102 103
Netherlands Jersey Guernsey United Kingdom Isle of Man Ireland Iceland Norway

104 105 106 107 108 109 110 111
Denmark Sweden Åland Islands Finland Estonia Latvia Lithuania Poland

112 113 114 115 116 117 118 119
Czech Republic Slovakia Hungary Slovenia Croatia Bosnia and Herzegovina Montenegro Serbia

120 121 122 123 124 125 126 127
Former Yugoslav Republic of Macedonia Albania Greece Bulgaria Romania Moldova Ukraine Belarus

[edit] Asia

128 129 130 131 132 133 134 135
Russia Georgia Azerbaijan Armenia Turkey Cyprus Syria Lebanon

136 137 138 139 140 141 142 143
Israel Palestine Jordan Saudi Arabia Yemen Oman United Arab Emirates Qatar

144 145 146 147 148 149 150 151
Bahrain Kuwait Iraq Iran Turkmenistan Uzbekistan Kazakhstan Kyrgyzstan

152 153 154 155 156 157 158 159
Tajikistan Afghanistan Pakistan India Nepal Bhutan Sri Lanka Maldives

160 161 162 163 164 165 166 167
British Indian Ocean Territory French Southern Territories Christmas Island Cocos (Keeling) Islands Bangladesh Myanmar Laos Viet Nam

168 169 170 171 172 173 174 175
Cambodia Thailand Malaysia Singapore Brunei Indonesia East Timor Philippines

176 177 178 179 180 181 182 183
Taiwan Macau Hong Kong People's Republic of China Mongolia North Korea South Korea Japan

[edit] Pacific

184 185 186 187 188 189 190 191
Palau Northern Mariana Islands Marshall Islands Guam Federated States of Micronesia Papua New Guinea Australia New Zealand

192 193 194 195 196 197 198 199
New Caledonia Vanuatu Solomon Islands Nauru Kiribati Tuvalu Wallis and Futuna Fiji

200 201 202 203 204 205 206 207
Tonga Niue American Samoa Samoa Tokelau Cook Islands French Polynesia Pitcairn Islands

[edit] Americas

208 209 210 211 212 213 214 215
Chile Argentina Uruguay Brazil Paraguay Bolivia Peru Ecuador

216 217 218 219 220 221 222 223
Colombia Venezuela Guyana Suriname French Guiana Trinidad and Tobago Netherlands Antilles Aruba

224 225 226 227 228 229 230 231
Grenada Saint Vincent and the Grenadines Barbados Saint Lucia Martinique Dominica Guadeloupe Montserrat

232 233 234 235 236 237 238 239
Antigua and Barbuda Saint Kitts and Nevis Anguilla United States Virgin Islands Puerto Rico Dominican Republic Turks and Caicos Haiti

240 241 242 243 244 245 246 247
Bahamas Cuba Jamaica Cayman Islands Panama Costa Rica Nicaragua Honduras

248 249 250 251 252 253 254 255
El Salvador Guatemala Belize Mexico United States Canada Saint-Pierre and Miquelon Greenland