blongho / worldCountryData

Android library for country flag, currency, and other country information
https://blongho.github.io/worldCountryData/doc/
MIT License
98 stars 35 forks source link

Invalid data #2

Closed TadesseAngaw closed 5 years ago

TadesseAngaw commented 5 years ago

The JSON data for some countries invalid

for example, the country code of Ethiopia is 251 but in the data, it is 231

blongho commented 5 years ago

Hi, @TadesseAngaw thanks for pointing that out.

I think you are mixing the country calling code (251) and the country iso 3166 numeric code (231). In this library, country code refers to the iso 3166 numeric code for country.

Refer to iso 3166 code for Ethiopia, List of all iso 3166 codes and Definitions

Hope this clarifies any doubts. I will update the documentation to make this clearer.

By the way, are you interested in getting the calling codes? This is envisaged in future releases see features list

TadesseAngaw commented 5 years ago

Thank you. Closing the issue now.