Omim: Open Google Maps links

Created on 21 Feb 2016  Â·  8Comments  Â·  Source: mapsme/omim

Maps.me doesn't appear in the list of apps to use when clicking on a maps.google.com link however OSMand does.

Most helpful comment

@devurandom That's exactly what I'm thinking. OSMAnd has the intents and URLs already in their manifest so the URLs to capture are already there, they would just need to be wired into some sort of view action so that Maps.Me would know how to handle it.

All 8 comments

Can you please give us examples of such links?

Sure: https://goo.gl/maps/rnGY2UdsJh82

Or any other link that starts with maps.google.com

OSMand's manifest has a number of maps related URLs that it has intents
for:
https://github.com/osmandapp/Osmand/blob/master/OsmAnd/AndroidManifest.xml
On Feb 21, 2016 8:05 PM, "Alex Zolotarev" [email protected] wrote:

Can you please give us examples of such links?

—
Reply to this email directly or view it on GitHub
https://github.com/mapsme/omim/issues/1986#issuecomment-186859980.

We don’t handle goo.gl links because we don’t know how to parse them (and connection is needed).
Most maps.google.com links should work (except ?q=search_query).

Hmm, the unshortened version of that link isn't giving me the option to
open it in Maps.me:
https://www.google.com/maps?q=27.368734,90.132079&hl=en&gl=us&shorturl=1
On Feb 21, 2016 10:25 PM, "Alex Zolotarev" [email protected] wrote:

We don’t handle goo.gl links because we don’t know how to parse them (and
connection is needed).
Most maps.google.com links should work (except ?q=search_query).

—
Reply to this email directly or view it on GitHub
https://github.com/mapsme/omim/issues/1986#issuecomment-186894939.

I’m not sure that you can safely intercept www.google.com. The only possibility, I suppose, is to try to decode goo.gl link online and parse it after that.

On Feb 21, 2016, at 22:29, Feleg [email protected] wrote:

Hmm, the unshortened version of that link isn't giving me the option to
open it in Maps.me:
https://www.google.com/maps?q=27.368734,90.132079&hl=en&gl=us&shorturl=1
On Feb 21, 2016 10:25 PM, "Alex Zolotarev" [email protected] wrote:

We don’t handle goo.gl links because we don’t know how to parse them (and
connection is needed).
Most maps.google.com links should work (except ?q=search_query).

—
Reply to this email directly or view it on GitHub
https://github.com/mapsme/omim/issues/1986#issuecomment-186894939.

—
Reply to this email directly or view it on GitHub https://github.com/mapsme/omim/issues/1986#issuecomment-186895253.

You wouldn't intercept the main google.com domain, here's how OSMand does it for multiple map providers:

https://github.com/osmandapp/Osmand/blob/master/OsmAnd/AndroidManifest.xml#L207

I wouldn't even suggest tying the intent to goo.gl, it's just that on the mobile Google Maps app it automatically creates a shortened link (I wasn't near my computer at the time I posted it)

The link might also look like this:
https://maps.google.com/maps?q=50.00000000000000,50.000000000000000
Seems straightforward to parse and supporting it would increase interoperability between different apps a lot.

@devurandom That's exactly what I'm thinking. OSMAnd has the intents and URLs already in their manifest so the URLs to capture are already there, they would just need to be wired into some sort of view action so that Maps.Me would know how to handle it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rugk picture rugk  Â·  3Comments

Norbert80 picture Norbert80  Â·  6Comments

nh2 picture nh2  Â·  6Comments

paride picture paride  Â·  8Comments

berolinux picture berolinux  Â·  7Comments