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

Duplicate city IDs in countriesStateCity.js #68

Closed
patricksebastien opened this issue Sep 15, 2021 · 1 comment
Closed

Duplicate city IDs in countriesStateCity.js #68

patricksebastien opened this issue Sep 15, 2021 · 1 comment

Comments

@patricksebastien
Copy link

{
              "id": 4822,
              "name": "French Guiana",
              "state_code": "GF",
              "cities": [
                  ....
                  { "id": 90328124, "name": 'Camopi', latitude: '3.1688700', longitude: '-52.3352500' },
                  { "id": 90328124, "name": 'Awala-Yalimapo', latitude: '5.741111', longitude: '-53.9277780' },
              ]
          },

Also City IDs:

  • 77028
  • 77123
  • 72123

Please advice.

@MartinsOnuoha
Copy link
Owner

Hi @patricksebastien Thanks for raising this issue, Ideally I wouldn't advise using the IDs to query since we haven't currently found a way to make the data relational (yet). And the other provided data aren't using unique identifiers.

As for those cities with duplicate IDs in French Guiana I have made a fix for it. and would merge in a bit.

While for the duplicate city IDs. You would notice that those similar IDs are not in the same states, right? So here's a thing you could do, you can streamline the query to search within a selected state first.

It's like having two cities with the same name but in different countries.

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

2 participants