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

Bogotá D.C. city is duplicate #793

Open
mario-alba opened this issue Jun 26, 2024 · 1 comment
Open

Bogotá D.C. city is duplicate #793

mario-alba opened this issue Jun 26, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@mario-alba
Copy link

Hi, I found that "Bogotá D.C." city is duplicate on two diferent states, "Cundinamarca" state with id 2875 and "Bogotá D.C." state with id 4921. The correct state is "Bogotá D.C." state with id 4921. This error is on all sql and json files.

image

image

@dosubot dosubot bot added the duplicate This issue or pull request already exists label Jun 26, 2024
Copy link

dosubot bot commented Jun 26, 2024

¡Hola @mario-alba! 🌟 Welcome to the repository. I'm here to help you with any bugs, questions, and contributions while we wait for a human maintainer.

To correct the duplication of "Bogotá D.C." city in the SQL and JSON files, you need to update the entries to ensure that "Bogotá D.C." is associated only with the state ID 4921. Here are the steps to make the necessary changes:

SQL File

Update the state ID for "Bogotá D.C." to 4921:

UPDATE cities SET state_id = 4921 WHERE name = 'Bogotá D.C.';

JSON File

Ensure the entry for "Bogotá D.C." has the correct state ID:

{
  "id": 4921,
  "name": "Bogotá D.C.",
  "state_code": "DC",
  "latitude": "4.28204150",
  "longitude": "-74.50270420",
  "type": "capital district"
}

YAML File

Update the YAML file to reflect the correct state ID:

- id: 4921
  name: 'Bogotá D.C.'
  country_id: 48
  country_code: CO
  country_name: Colombia
  state_code: DC
  type: 'capital district'
  latitude: '4.28204150'
  longitude: '-74.50270420'

These updates will ensure that "Bogotá D.C." is correctly associated with state ID 4921 in all relevant files [1][2][3].

To continue talking to Dosu, mention @dosu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant