MarcusWolschon / osmeditor4android

Vespucci is a OpenStreetMap editor for Android
http://vespucci.io
Other
378 stars 83 forks source link

Add support for images from Commons #1247

Open DerDings opened 4 years ago

DerDings commented 4 years ago

Since showing images from the local device storage and from Mapillary is already supported, adding a layer with images from Wikimedia Commons seems to be the logical next step.

The POI-focused lineup of the Commons database is the perfect supplement for the street-focused character of Mapillary.

Features should be the same as for the other photo resources:

simonpoole commented 4 years ago

Is there a corresponding API for Wikimedia Commons that allows querying per bounding box and will return image meta data with location?

DerDings commented 4 years ago

Is there a corresponding API for Wikimedia Commons that allows querying per bounding box and will return image meta data with location?

Since this is able to show the place and direction of images, I hope there is. But I am not a programmer so I don't know about the details. See this location for examples.

simonpoole commented 4 years ago

The wikimap tool doesn't seem to use a public api that I could find, it seems (source code doesn't seem to be available) to run a bot to create a private database that is then used to enable the queries. Naturally that means that wikimap could conceivably offer such an API call itself, but currently it doesn't seem to do so.

Please feel free to contact the wikimap maintainer and point him to this discussion.

DerDings commented 4 years ago

Please feel free to contact the wikimap maintainer and point him to this discussion.

The maintainer of the wikimap (thanks, DB111) pointed me to the GeoSearch-API. Is this helping?

Discostu36 commented 4 years ago

Most images in Commons don't have a licence that is compatible for using it for deriving map data from it. So I don't know if this a helpful feature.

simonpoole commented 4 years ago

Most images in Commons don't have a licence that is compatible for using it for deriving map data from it. So I don't know if this a helpful feature.

Though at least in princple it should be possible to get a machine readable licence identificator from the API.

Discostu36 commented 4 years ago

Yes, with a query like this you can get the licence, you can even filter for attribution requirement

https://commons.wikimedia.org/w/api.php?action=query&format=json&prop=imageinfo&titles=File:Berliner_Tor_5_(Hamburg-St._Georg).ajb.jpg&iiprop=user|url|extmetadata|metadata&iilimit=1