Country code array increase one letter
Budget: €8 – €15 EUR
Hi, we have an array of countries with their country code, I need you to add instead of 2 characters country code to add a third character:
Example:
var country_list = [{
"name": "Afghanistan",
"code": "AF",
"center": [66.0264709817607, 33.8388058603423]
}, {
"name": "Aland Islands",
"code": "AX",
"center": [19.93993403, 60.11443267]
}, {
"name": "Albania",
"code": "AL",
"center": [20.1566908111252, 40.641089555859]
}
It should be like this
var country_list = [{
"name": "Afghanistan",
"code": "AFG",
"center": [66.0264709817607, 33.8388058603423]
}, {
"name": "Aland Islands",
"code": "ALA",
"center": [19.93993403, 60.11443267]
}, {
"name": "Albania",
"code": "ALB",
"center": [20.1566908111252, 40.641089555859]
}
You can search the code here "https://www.iso.org/obp/ui/#iso:code:3166:AF" just change the last 2 letters to any of the current 2 letters code and it will display the "Alpha-3 code" that is 3 letters.
Example:
var country_list = [{
"name": "Afghanistan",
"code": "AF",
"center": [66.0264709817607, 33.8388058603423]
}, {
"name": "Aland Islands",
"code": "AX",
"center": [19.93993403, 60.11443267]
}, {
"name": "Albania",
"code": "AL",
"center": [20.1566908111252, 40.641089555859]
}
It should be like this
var country_list = [{
"name": "Afghanistan",
"code": "AFG",
"center": [66.0264709817607, 33.8388058603423]
}, {
"name": "Aland Islands",
"code": "ALA",
"center": [19.93993403, 60.11443267]
}, {
"name": "Albania",
"code": "ALB",
"center": [20.1566908111252, 40.641089555859]
}
You can search the code here "https://www.iso.org/obp/ui/#iso:code:3166:AF" just change the last 2 letters to any of the current 2 letters code and it will display the "Alpha-3 code" that is 3 letters.