samayo / country-json

A simple data of the world by country each in JSON format.
https://data.world/samayo
MIT License
1.09k stars 806 forks source link

Duplicate cities in country-by-cities.json #271

Closed Mcdonamj087 closed 2 months ago

Mcdonamj087 commented 3 months ago

There are numerous duplicate cities under "United States" in this file. This feels like a bug. For now, needing to run a reduce to filter out the duplicates if i'm going to use this package, but would love a fix on this!

samayo commented 2 months ago

good remark, thanks .. i guess the issue is because there are many cities with identical name, so i just updated to add (https://github.com/samayo/country-json/commit/79eda2145fd3a9f9e4621a54b0f9bf0a1574c260) "state" block to make it easy to add unique cities grouped by state.