osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.37k stars 987 forks source link

Use wikimap api to gather wikimedia images #18845

Open petitminion opened 6 months ago

petitminion commented 6 months ago

Describe the idea (required)

hello

Has you can see here https://wikimap.toolforge.org/, there is a lot of data that is not used by osm (lack of good categories in wikimedia, links not added to poi, link with wikidata not done in osm or in mediawiki, etc). S

Would it be possible to add wikimedia images to osmand automatically using wikimap api ?

Tell us about the expected behaviour (required)

Has you can see, the api allow to get image within a distance from a coordinate. We could get theese images and sort them by distance of the osm object.

The distance to get the image should be set condering the osm object type (point, polygon, size of the polygon). Manually added images should be displayed first, image added automatically froim coordinates should be added after.

Tell us about alternatives you've considered (required)

Openplacereview seem unmaintained and specialized on reviews more than photos. Mappylary is for linears and is associated with facebook.

Context (optional)

If some dev can confirm this is interesting I can work on an mr

related issue :

yuriiurshuliak commented 6 months ago

The most recent update removed the plugin. Moreover, additional photos have been included in the latest version. I encourage you to test them out and share your impressions here.

petitminion commented 6 months ago

Has you can see there is photos in Wikimedia located close to this location and they are not displayed in the osmand

Phare Position: geo:37.53545,-1.10874?z=16 https://osmand.net/map?pin=37.53545,-1.10874#16/37.53545/-1.10874

Same applies here : Los Castillitos Position: geo:37.53899,-1.11790?z=14 https://osmand.net/map?pin=37.53899,-1.11790#14/37.53899/-1.11790

OsmAnd 4.6.9, sorti le: 2023-12-20

petitminion commented 6 months ago

Does the tag "nice to have" mean you will take a look at the mr if I work on one ? It will take me time since I need to learn java so I want to be sure

vshcherb commented 6 months ago

We're going implement it but slightly different in the beginning, first display the objects we collected and then we will compare how different it's with wikimap API. Our goal to integrate OSM and Wikimedia using Wikidata ids

petitminion commented 5 months ago

I don't understand what is the object you are referring to.

What if mediawiki photo doesn't have an wikidata id ? Will it still be displayed because it's clause ?

And will big polygons have images (like countries, or regions) ?

vshcherb commented 5 months ago

We need to consolidate data with osm via wikidata id, that's our first goal. We plan to do it first and later see if we need to display all random wikimedia photos as a layer that have any geo locations