organicmaps / organicmaps

🍃 Organic Maps is a free Android & iOS offline maps app for travelers, tourists, hikers, and cyclists. It uses crowd-sourced OpenStreetMap data and is developed with love by MapsWithMe (MapsMe) founders and our community. No ads, no tracking, no data collection, no crapware. Please donate to support the development!
https://organicmaps.app
Apache License 2.0
9.5k stars 913 forks source link

Open poi details in osm web #8746

Open qwerty287 opened 1 month ago

qwerty287 commented 1 month ago

It's currently possible to open a URL in osm like https://osm.org/go/0MbFCmM9-?m. However, this just opens the map at the given coordinates, but not with the poi selected. The URL for the example above would be https://www.openstreetmap.org/way/518071791.

Thanks!

Jean-BaptisteC commented 1 month ago

It's not possible because we not stored OSM ID in our maps and store this data increase a lot the size of maps

qwerty287 commented 1 month ago

increase a lot the size of maps

How much would that be? This feature would be really nice for me.

I don't really know about OM's and OSM's internal structures, but how is it actually possible then to edit a POI? It seems that the osm api requires to get this ID. Or is this a different ID?

hoizan commented 1 month ago

Ya, if this is implemented, getting the route_ref of a bus stop becomes a breeze.

Jean-BaptisteC commented 3 weeks ago

OSM ID is not necessary to edit, to use OSM API we have just need the exact coordinates of POI

qwerty287 commented 3 weeks ago

And is it possible to do it the other way? I.e. open an URL with exact coordinates, directly with poi details?

qwerty287 commented 2 weeks ago

It seems this is not possible with OSM without doing another API call. But I found another way: Just use a reverse geocoder on nominatim. E.g. provide the link https://nominatim.openstreetmap.org/ui/reverse.html?lat=52.51628&lon=13.37771&zoom=18 gives you all tags as well. This would be fine for me too. @Jean-BaptisteC @hoizan What do you think about this idea?