GeoDB Cities

免费增值
Verified
通过 Michael Mogley | 已更新 4 days ago | Data
人气

9.9 / 10

延迟

88ms

服务等级

100%

Health Check

100%

返回所有讨论

Details not Coming for a WikidataId

Rapid account: Plgupa
plgupa
לפני 3 שנים
The city details for following wikidataid are not coming - Q66568.
Please check.
Rapid account: Wirefreethought
wirefreethought Commented לפני 3 שנים

You got it.

Rapid account: Plgupa
plgupa Commented לפני 3 שנים

Yes, it works now. Thanks for helping.

Rapid account: Wirefreethought
wirefreethought Commented לפני 3 שנים

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 לפני 3 שנים

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 לפני 3 שנים

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 לפני 3 שנים

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 לפני 3 שנים

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 לפני 3 שנים

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.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论