Add support for returning Wikidata item instead of commons category #28

Open
opened 2024-03-05 11:35:56 +00:00 by edward · 2 comments
Owner
No description provided.
Author
Owner

Should have an option to return most specific Wikidata item, even if it has no associated Commons Category.

Should have an option to return most specific Wikidata item, even if it has no associated Commons Category.
edward reopened this issue 2026-02-24 20:54:51 +00:00
Author
Owner

Example: https://edwardbetts.com/geocode/detail?lat=52.41037477777928&lon=-7.84650739346135

Returns Wikidata item: Q184618 / Commons category: County Tipperary

Could return: Knocknaquill (Q104316645)

Tricky because OSM doesn't have the Wikidata QID tags. Need to go the other way, look up Wikidata items with given OSM relation ID.

Example: https://edwardbetts.com/geocode/detail?lat=52.41037477777928&lon=-7.84650739346135 Returns Wikidata item: Q184618 / Commons category: County Tipperary Could return: Knocknaquill (Q104316645) Tricky because OSM doesn't have the Wikidata QID tags. Need to go the other way, look up Wikidata items with given OSM relation ID.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: edward/geocode#28
No description provided.