biter777 / countries

Countries - ISO-639, ISO-3166 countries codes with subdivisions and names, ISO-4217 currency designators, ITU-T E.164 IDD phone codes, countries capitals, UN M.49 codes, IANA ccTLD countries domains, FIPS, IOC/NOC and FIFA codes, VERY VERY FAST, compatible with Databases/JSON/BSON/GOB/XML/CSV, Emoji countries flags and currencies, Unicode CLDR.
https://pkg.go.dev/github.com/biter777/countries?tab=doc
BSD 2-Clause "Simplified" License
413 stars 76 forks source link

UN M49 region codes #54

Closed alimoli closed 1 year ago

alimoli commented 1 year ago

Are these code correct?

const (
    // RegionAfrica       RegionCode = 2
    RegionAfrica RegionCode = 2
    // RegionNorthAmerica RegionCode = 3
    RegionNorthAmerica RegionCode = 3
    // RegionSouthAmerica RegionCode = 5
    RegionSouthAmerica RegionCode = 5
    // RegionOceania      RegionCode = 9
    RegionOceania RegionCode = 9
    // RegionAntarctica   RegionCode = 999
    RegionAntarctica RegionCode = 999
    // RegionAsia         RegionCode = 142
    RegionAsia RegionCode = 142
    // RegionEurope       RegionCode = 150
    RegionEurope RegionCode = 150
)

It seems to me that North America and South America codes are wrong. See here.

biter777 commented 1 year ago

North America and South America codes correct https://en.wikipedia.org/wiki/UN_M49