Incoherence between the data across tables #822
Labels
bug
Something isn't working
enhancement
New feature or request
size:XXL
This PR changes 1000+ lines, ignoring generated files.
Issue
There's a big issue with the data.
The table
cities
contains city and town data.The table
states
contains state and city data.And the link between them are wrong.
Found issues in Belgium, Albania, & Japan. So, there probably are in other countries.
Examples
Example 1
For instance in Belgium:
states
you can find "Antwerp". Which is incorrect as "Antwerp" is a city.cities
you can find "Antwerp" and linked to it's parent "Flanders". Which is correct.cities
you can find "Borgerhout" which is linked to the state (region) "Flanders". Which is incorrect. "Borgerhout" is a town in the city of "Antwerp".So, the data for Belgium is completely messed up. Pretty much 90% of it and even fixing the bad IDs won't fix the other issue which is lack of tables and fed data.
Example 2
This time in Albania.
We have duplicates in
states
like "Tirana County" and "Tirana District"."Tirana" (or "Tirana district", but it's really just "Tirana") is a city in the state of "Tirana County".
Even though we never make use of the state "Tirana District" it's still there.
We then have "Kavajë District" in
states
when it's actually the city "Kavajë" and should be incities
.Also "Bashkia Kavajë" is not even a town. It's even lower level. It's a place in a town.
Solution
The solution would be a whole refactor of the tables and data. Which is huge, but necessary.
It should be like:
Doing this would totally make things a lot more simpler and cleaner to add, edit, and more importantly make use of it.
I wouldn't mind doing a POC, but I got my hands full right now. This should become the next version of this repo.
The text was updated successfully, but these errors were encountered: