Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ivory Coast region codes aren't ISO-3166-2 compliant #6

Open
Portur opened this issue Aug 28, 2023 · 0 comments
Open

Ivory Coast region codes aren't ISO-3166-2 compliant #6

Portur opened this issue Aug 28, 2023 · 0 comments

Comments

@Portur
Copy link

Portur commented Aug 28, 2023

Hi, It seems the region codes for Ivory Coast aren't compliant with the ISO-3166 syntax.

The expectation is to have a syntax like CI-XX but the result is like CI-XX-XX.

Usage

const geojsonPlaces = require("geojson-places");
geojsonPlaces.getRegionsByCountryAlpha2('CI');

Result (only invalids)

[
  {
    "country_a2": "CI",
    "region_code": "CI-CM-SC",
    "region_name": "Ivory Coast"
  },
  {
    "country_a2": "CI",
    "region_code": "CI-MN-CV",
    "region_name": "Ivory Coast"
  },
  {
    "country_a2": "CI",
    "region_code": "CI-BS-SO",
    "region_name": "Ivory Coast"
  },
  {
    "country_a2": "CI",
    "region_code": "CI-SB-LA",
    "region_name": "Ivory Coast"
  },
  {
    "country_a2": "CI",
    "region_code": "CI-LG-AB",
    "region_name": "Ivory Coast"
  },
  {
    "country_a2": "CI",
    "region_code": "CI-SM-HS",
    "region_name": "Ivory Coast"
  },
  {
    "country_a2": "CI",
    "region_code": "CI-AG-AV",
    "region_name": "Ivory Coast"
  },
  {
    "country_a2": "CI",
    "region_code": "CI-NC-BG",
    "region_name": "Ivory Coast"
  },
  {
    "country_a2": "CI",
    "region_code": "CI-MR-ZU",
    "region_name": "Ivory Coast"
  },
  {
    "country_a2": "CI",
    "region_code": "CI-LC-TM",
    "region_name": "Ivory Coast"
  },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant