This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] For a POI, how to specify a thumbnail picture?

0

In an OSM XML file, is there any way to add a picture URL to a POI?

For instance, for a hotel I would add a picture of the hotel facade.

This would be useful to show thumbnails on maps, like Wikivoyage can do.

If hosting is a problem, we could do like Wikivoyage and require that all URLs point to Wikimedia Commons.
Example: https://commons.wikimedia.org/wiki/File:Mori_tower.jpg

asked 10 Dec '13, 08:59

Nicolas%20Raoul's gravatar image

Nicolas Raoul
645172533
accept rate: 20%

closed 10 Dec '13, 09:26

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

1

This seems to be the same as attaching-photos-to-nodes. Please see there. Or is there anything special with XML here? But you mean the ordinary OSM database, right?

(10 Dec '13, 09:25) aseerel4c26 ♦
3

No, it is not about the OSM database. This OSM XML file will be used by apps like OsmAnd. Your answer answers my question, thank you! I will add image keys that contain URLs to Wikimedia Commons images.

(10 Dec '13, 09:39) Nicolas Raoul

Okay, thank you for the feedback. So in essence it is the same as if these tags would be added to the OSM database (although I am a bit confused about your usecase, I thought OsmAnd is fed by extracts from our database).

(10 Dec '13, 11:49) aseerel4c26 ♦
2

You can add custom data layers to OsmAnd :-)

(10 Dec '13, 11:59) Nicolas Raoul

The question has been closed for the following reason “Duplicate Question” by aseerel4c26 10 Dec ‘13, 09:26

Source code available on GitHub .