GeoDB Cities

FREEMIUM
Verified
Durch Michael Mogley | Aktualisiert 4 days ago | Data
Popularität

9.9 / 10

Latenz

88ms

Service Level

100%

Health Check

100%

Zurück zu allen Diskussionen

Unable to find certain cities

Rapid account: Littlelunches
Littlelunches
2 years ago

We are not getting expected results for latin american locations. Has the data set changed?e.g., Searching for “Guatemala” using Cities api is not returning Guatemala City

Rapid account: Wirefreethought
wirefreethought Commented 2 years ago

Fixed. Try this:

GET v1/geo/cities?limit=1&countryIds=GT&namePrefix=guatemala&sort=-population

I made some adjustments to the data-import logic, specifically:

  • Changed to soft-delete places queued for deletion before issuing subsequent adds/updates
  • Changed the soft-deletion semantics to prefer the Wikidata ID (over Geonames ID) since the former is guaranteed unique per place

Hopefully, this also addresses any other soft-delete issues you were experiencing.

Rapid account: Wirefreethought
wirefreethought Commented 2 years ago

It turns out the issue here is an incorrect Wikidata Geonames id for Guatemala City. The given id, 3595529, is shared with Chinautla (where it’s actually correct). Unfortunately, the Guatemala City entry (Q1555) is locked so I can’t edit it. I’ll need to manually map to the correct Geonames id to avoid this clash. What other cities did you notice were wrongly soft-deleted? In the longer term, I will consider phasing out the Geonames association to avoid such issues, as I have little control over incorrect mappings between the two databases.

Rapid account: Wirefreethought
wirefreethought Commented 2 years ago

I see. I will take a look to see what’s going on. Stay tuned.

Rapid account: Boreasns
boreasns Commented 2 years ago

We are already using “sort=-population” option but this case is not about sorting.

In here, you mentioned about refreshing databases for duplicate entries.

There were two options for “Guatemala City” and I think you marked both as deleted. When we send a request for the “Guatemala” prefix, neither of these two options is available. That’s why we can’t find the exact locations. But when using “includeDeleted=ALL” option, we are receiving deleted ones.

Rapid account: Littlelunches
Littlelunches Commented 2 years ago

Thank you. For this specific case we noted that Guatemala City had been marked as deleted, when using ALL we received the city in the data set returned from the api.

Rapid account: Wirefreethought
wirefreethought Commented 2 years ago

What’s the specific request you’re making? You should be sure to use either sort=-population to get the largest population matches first (or else set the minPopulation param to trim out small towns).

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen