Data-correctness audit of cities: wrong coordinates, states, duplicates
Author: dr5hnCreated Sep 29, 2026Updated Sep 29, 2026
Labelsdata-correctiondata:cities
Purpose
A repo-wide, read-only audit of contributions/cities/*.json for data-correctness errors (as opposed to missing metadata). Each finding is verified against an independent source before any change, and fixed in small PRs that reference this issue. Method and results per fix: .github/fixes-docs/FIX_<this issue>_SUMMARY.md.
Checks and first-pass counts
| Check | Candidates | Notes |
|---|---|---|
| Coordinates of a same-named place in another country | 10 (PR) | Puerto Rico municipalities geocoded without a country filter (e.g. Barceloneta in Barcelona, Florida = the US state); their wikiDataIds point to the same wrong places |
| Coordinates at (0, 0) | 22 (CN) | a later CN batch; includes non-places such as two records named "Directly" |
| Filed under the wrong state | 305 candidates in 56 countries | the record's nearest neighbours all lie in one other state; being verified against Wikidata (P131) |
| Duplicate records (same state, same name, ≤ 2 km) | 132 (109 CN) | a later CN batch re-added places; identical populations mark true duplicates |
| Regions stored as cities | 815 flagged | mostly a policy question (records typed adm1 that are the municipality itself); clear cases such as council areas typed city |
| PR validator: country bounding boxes | — | RU crosses the 180° meridian and every RU record is flagged; boxes miss Hawaii, Puerto Rico (US), the Canaries, Azores, Madeira, Kinmen, Galápagos, Shetland, Easter Island… |
Progress
- Puerto Rico: 10 geocoded municipalities
- Validator bounds (antimeridian + remote territories)
- Wrong state (verified subset)
- (0, 0) coordinates — needs a decision per record (fix or delete)
- CN duplicate batch — needs a merge/delete decision
- Regions stored as cities — needs a policy decision
Source: dr5hn/countries-states-cities-database