centraldacopa

KOSTENLOS
Durch diegurm | Aktualisiert vor 10 Monaten |
Zurück zu allen Diskussionen

Utilizar alpha-2 code

R
ronanrodrigo
vor 8 Jahren

Além do retorno do nome abreviado, poderia haver o retorno do alpha-2 code https://www.iso.org/obp/ui/#search

R
ronanrodrigo commented vor 8 Jahren

Esse mesmo

M
mxrck commented vor 8 Jahren

this is working now?, I see “Cameroon” like “CAM” but in http://www.nationsonline.org/oneworld/country_code_list.htm is showing as CM for alpha-2 code and CMR for alpha-3 code.

Do you have a list of short custom names? or you can check if this is an issue?

R
ronanrodrigo commented vor 8 Jahren

@mxrck the api until now the api don’t provide the alpha-2. Just the first third letters of teams in portuguese. I create a fix for that, creating a json object like this:

{"ALE": "DE", "AGL": "DZ", "ARG": "AR", "AUS": "AU", "BEL": "BE", "BOS": "BA", "BRA": "BR", "CAM": "CM", "CHI": "CL", "COL": "CO", "COR": "KR", "CDM": "CI", "COS": "CR", "CRO": "HR", "EQU": "EC", "ESP": "ES", "EUA": "US", "FRA": "FR", "GAN": "GH", "GRE": "GR", "HOL": "NL", "HON": "HN", "ING": "GB", "IRA": "IR", "ITA": "IT", "JAP": "JP", "MEX": "MX", "NGA": "NG", "POR": "PT", "RUS": "RU", "SUI": "CH", "URU": "UY"}```
D
diegurm commented vor 8 Jahren

O alpha-2 code que você se refere seria esse?
http://www.nationsonline.org/oneworld/country_code_list.htm

M
mxrck commented vor 8 Jahren

Perfect, thanks @ronanrodrigo

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen
Bewertung: 5 - Stimmen: 1