Open govvin opened 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?
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:
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:
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):
Read more about this in #132, and try it in my development version: https://xover.mud.at/~skunk/openstreetbrowser
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.
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.
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?
I made all coordinate displays as geo-links (b10e448e5685b280d63c18273473f56faa78281a). You can find it under 'show details'. Do you think, this is sufficient?
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?
P.S.
Apparently, on an iPhone, geoURI is not supported. Clicking on it doesn't appear to do anything.
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).
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.
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.