On 2016-01-01 14:06, Tom Hughes wrote:<br>
> Why not make the handler strip the geo prefix before doing the search? That will already work fine.<br>
<br>
Because it is a URI in its entirety and thus much more distinguishable<br>
from just a generic search term :)<br>
<br>
Also for the reason specified further down in my original email as it<br>
can easily be used as a protocol handler. When sending the URI to a<br>
third party service (Mibbit, OSM.org...) the 'geo:' prefix is a good,<br>
easy and generic way to relay important information.<br>
<br>
So as Mozilla Firefox would like to send the full geo: URI OSM.org<br>
should reasonably accept it, assuming this interoperability is desired.<br>
<br>
> Searching for a URI seems like a fairly weird thing to do...<br>
<br>
It could just as well be its own parameter (parsed after URL decoded<br>
since it can contain '?', '&' etc.) or just used in place of the<br>
parameters after '#' or something else. My proposal is just to make it<br>
easy to provide a geo: URI to the web interface via a parameter so it<br>
can be explicitly linked from an external resource.<br>
<br>
I don't know which solution would be the smoothest to implement as I<br>
don't know the openstreetmap.org codebase. I'd be willing to write a<br>
patch if I get nudged in the right direction though, so I don't have to<br>
start from scratch in understanding it :)<br>
<br>
-- <br>
Mikael Nordfeldth<br>
https://blog.mmn-o.se/<br>
XMPP/mail: mmn@hethane.se<br>
OpenPGP Fingerprint: AE68 9813 0B7C FCE3 B2FA 727B C7CE 635B B52E<br>
<br>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1123#issuecomment-168306651">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLdQlIiMCKy885Zur7PnEdP268m3Gks5pVngggaJpZM4G9Z0o.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/1123#issuecomment-168306651"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>