rapideditor/country-coder

ISO 3166 of countries with Sovereign states

Closed this issue · 1 comments

Some countries, which have a ISO 3166-1 entry return the Sovereign state's country code.

Example:

"lng": -65.0481,
"lat": 32.177

is a location in Bermuda, which has a country code: https://www.iso.org/obp/ui/#iso:code:3166:BM . However, GB gets returned (I suppose because in its entry there is a "country":"GB" property).

List of countries that have this same problem:

  • AS
  • AI
  • AW
  • BM
  • BV
  • IO
  • VG
  • KY
  • CX
  • CC
  • PF
  • TF
  • GI
  • GL
  • MO
  • CW
  • SX
  • NC
  • PM
  • TK
  • WF
  • EH
  • BQ

Later found out about the { level: "territory" } parameter