GeoDB Cities

FREEMIUM
Verified
Por Michael Mogley | Actualizada il y a 15 jours | Data
Popularidad

9.9 / 10

Latencia

61ms

Nivel de servicio

100%

Health Check

100%

Volver a todas las conversaciones

Details not Coming for a WikidataId

Rapid account: Plgupa
plgupa
il y a 3 ans
The city details for following wikidataid are not coming - Q66568.
Please check.
Rapid account: Wirefreethought
wirefreethought Commented il y a 3 ans

You got it.

Rapid account: Plgupa
plgupa Commented il y a 3 ans

Yes, it works now. Thanks for helping.

Rapid account: Wirefreethought
wirefreethought Commented il y a 3 ans

Just a note that the import process has been patched to prefer Wikidata entries with lower IDs in case of duplicate Geonames IDs. This has had the effect of changing the Wikidata ID for Kanpur to Q66568

Rapid account: Wirefreethought
wirefreethought Commented il y a 3 ans

As I mentioned, GeoDB doesn’t guarantee reverse mappings from Wikidata. In other words, there is no guarantee that a Wikidata ID for a city you find on Wikidata can be found by that id in GeoDB. The other direction however is guaranteed. That is, if you find a city in GeoDB, its Wikidata ID (as returned by GeoDB) will reference an entry in Wikidata. So to answer your question, the way to find the Wikidata ID for Kanpur is to use GeoDB, as in:

GET /v1/geo/cities?namePrefix=kanpur&types=CITY

GeoDB will match on the name, irrespective of the ā character. (It will match on the ASCII equivalent: a)

Rapid account: Plgupa
plgupa Commented il y a 3 ans

The city name corresponding to Q31856807 is Kānpur on wikidata, in which the second character is not an english alphabet.

Please tell me the correct way to find the wikidataID for a city name.

Rapid account: Plgupa
plgupa Commented il y a 3 ans

I used Wikidata(https://en.wikipedia.org/wiki/Wikipedia:Finding_a_Wikidata_ID) to determine the city ID.

Can you please tell me the correct way to find the wikidataID for a city name?

Rapid account: Wirefreethought
wirefreethought Commented il y a 3 ans

Can you tell me how you determined Q66568? Was this through a search on Wikidata, or a GeoDB namePrefix=Kanpur search?

Rapid account: Wirefreethought
wirefreethought Commented il y a 3 ans

GeoDB reference references this city using Q31856807. The back-link from Wikidata to GeoDB is not guaranteed, since Wikidata may have duplicate entries for a given city. Having said that, I will have a look later to see why the import process prefers Q31856807 over Q66568.

Únase a la conversación, añada un comentario a continuación:

Inicie sesió/Regístrese para publicar nuevos comentarios