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
Fixed. Try this:
I made some adjustments to the data-import logic, specifically:
Hopefully, this also addresses any other soft-delete issues you were experiencing.
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.
I see. I will take a look to see what’s going on. Stay tuned.
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.
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.
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).
Join in the discussion - add comment below: