GeoDB Cities

फ्रीमियम
Verified
द्वारा Michael Mogley | अपडेट किया गया 4 दिन पहले | Data
लोकप्रियता

9.9 / 10

लेटेंसी

88ms

सेवा का स्तर

100%

Health Check

100%

सभी चर्चाओं पर वापस जाएं

Unable to find certain cities

Rapid account: Littlelunches
Littlelunches
2 वर्ष पहले

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 वर्ष पहले

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 वर्ष पहले

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 वर्ष पहले

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

Rapid account: Boreasns
boreasns Commented 2 वर्ष पहले

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 वर्ष पहले

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 वर्ष पहले

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).

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें