plepe / OpenStreetBrowser

An application to ‘browse’ the information in the displayed part of the map. Similar to common Wikis and also the main page of http://www.openstreetmap.org the website shows a narrow menu on the left side, most of the page is used for the display of the map. In contrast to most Wikis the menu is not static, but rather the content of the map can be browsed in categories. For the map a special style has been developed (sorry guys, I neither like the default Mapnik nor Osmarender styles), and special overlays are displayed to support the current browsed categories. When you click on an object (either from the list or directly on the map) informations on this object are displayed.
http://www.openstreetbrowser.org
GNU General Public License v3.0
85 stars 20 forks source link

feature request: add a geo URL in the modal box for a displayed item, to allow users to navigate with their favorite app #143

Open govvin opened 3 years ago

govvin commented 3 years ago

I just re-discovered OSB, and that currently, it's the best way to share links to people who may not use OSM.

I used to share the OSM shortcut links, but people are confused because details of the features are not displayed (unless you give a link to the element) or they discover how to "query" the map. Not ideal for most people, and OSM provides a better option.

Using OSB, I could share a permalink like this, and with a geo URL, it can allow the recipient to navigate to the location, and choose anyapp they have in their device.

A geo URL is platform agnostic, and should work in most platforms, and most apps.

plepe commented 3 years ago

The permalink feature is still there (on the bottom left), also you can just take the URL from the address bar.

I could convert the coordinates in the "Geometry"-toolbox to geo URLs? Or do you have a better idea? Screenshot 2021-08-05 at 16-59-22 OpenStreetBrowser

govvin commented 3 years ago

Well, what I had in mind is that it could be made friendlier, and more conveniently accessible, especially for mobile users with limited screen space?

So, right now, when a user clicks on a marker, the modal window shows this:

image

Perhaps, the geo URL can be activated by clicking on the address? That way, they can still navigate to the given location no matter what device they're on, or whatever is their navigation app.

On mobile, the permalink option needs more scrolling right now: image

plepe commented 3 years ago

Ah, now I understand what you have in mind.

There are some further considerations though:

The view of the modal window is going to change "soon" (it is not totally finished yet): Screenshot 2021-08-06 at 09-36-29 OpenStreetBrowser

Read more about this in #132, and try it in my development version: https://xover.mud.at/~skunk/openstreetbrowser

govvin commented 3 years ago

I believe that even with POIs without any address information, they will have geographic coordinates, and wouldn't that be the minimum information needed for geo URIs?

So, in your example it could have something like:

**Address**: [Dorotheergasse 19, 1010 Wien](geo://48.2058923,16.3679829)

And on mobile, with geo intents, clicking on the link will launch the app (or ask which one) to open the link.

plepe commented 3 years ago

What I mean is, that if a POI does not have an address, then the address is not shown, and therefore I can't make it a geo-URL. Of course, (almost) every object has coordinates (or it couldn't be displayed on the map).

Almost? Yes: in fact, you could have empty ways or relations in OpenStreetMap, but they do not really make sense.

govvin commented 3 years ago

Oh, I misunderstood you. Sorry, about that.

I'm not sure what the ideal placement is. I though address seem logical, but, as you pointed out, maybe not.

As a hyperlink to the name, maybe?

plepe commented 2 years ago

I made all coordinate displays as geo-links (b10e448e5685b280d63c18273473f56faa78281a). You can find it under 'show details'. Do you think, this is sufficient?

govvin commented 2 years ago

It works as expected. Thank you. However, I'm wondering if many people will be bothered to look for it?

I'm thinking of a casual, non-technical user who was given an OpenStreetBrowser link to a map or POI. We will not make an assumption about whether they have any app that can a geoURI. In the pop-up, if a phone number is available, they can easily click it and make a call. If the address details are available, they see a text, but that may not be useful if they use another app (e.g. Google Maps in Android) for navigation.

They are then expected to go to "show details", and find the coordinates, and may not even know that it's a geoURI they may use. I think the geoURI link has more potential as clickable link for any address value. Do you think more people will that more convenient?

image

govvin commented 2 years ago

P.S.

Apparently, on an iPhone, geoURI is not supported. Clicking on it doesn't appear to do anything.

plepe commented 2 years ago

I can add add it to the address too, but as I told you, many OSM items do not have an address. I could create an additional link on the bottom of the popup, between 'show details' and 'edit'. Like: 'geo-link'? I could add the coordinates (for nodes) or middle point (for lines) or the center of mass for areas.

I think I can't do anything, about iPhones not supporting 'geo:'-links, do I? I mean, if there's a different linking method, I could make it configurable (and even auto-detectable).

govvin commented 2 years ago

No, of course not. I'm not an iOS user, but had the chance to try it earlier, and surprised that there's no support for it on that platform. The comment about iOS was just a general note, and not directed at you. I'm sorry if you thought otherwise.

Your suggested alternative sounds good tho. Thank you.