GNOME Bugzilla – Bug 779211
Add thumbnail in place popover
Last modified: 2017-12-20 21:35:44 UTC
The mockups for the place popover talks about showing an image of the place, for example obtained from Wikipedia in place of the generic place icons if one is found. An API call such as: https://sv.wikipedia.org/w/api.php?action=query&titles=Uppsala&prop=pageimages&format=json&pithumbsize=128 can be used to fetch a thumbnail for a given Wikipedia article. The URL to the thumbnail is returned in the resulting JSON, if one is found.
For UI review (if we want this), this is currently in the wip/mlundblad/place-thumbnails branch.
Created attachment 361153 [details] [review] Add module to query the Wikipedia API Contains functionallity to query for article thumbnails and functions to extract language and article parts from raw OpenStreetMap tag values.
Created attachment 361154 [details] [review] placeBubble: Fetch Wikipedia thumbnails for place Also use the new utility functions for getting language and article parts when formatting Wikipedia links.
Created attachment 364701 [details] [review] placeBubble: Fetch Wikipedia thumbnails for place Also use the new utility functions for getting language and article parts when formatting Wikipedia links.
Created attachment 365162 [details] [review] placeBubble: Fetch Wikipedia thumbnails for place Also use the new utility functions for getting language and article parts when formatting Wikipedia links.
Attachment 361153 [details] pushed as ad24f30 - Add module to query the Wikipedia API Attachment 365162 [details] pushed as 82ad818 - placeBubble: Fetch Wikipedia thumbnails for place