Open Map Intent's URI

388 views
Skip to first unread message

V Oz

unread,
Feb 27, 2012, 12:53:58 PM2/27/12
to tas...@googlegroups.com
Hi Pent.
Would You say what intent's format is used in Open Map action?
In google documentation I found "geo:lat,long?z=zoom" only (and couple with address) 
In Open Map action there is Label field which appears in the Google Map as Flag.

Pent

unread,
Feb 27, 2012, 1:43:35 PM2/27/12
to Tasker
> Would You say what intent's format is used in Open Map action?
> In google documentation I found "geo:lat,long?z=zoom" only (and couple with
> address)

Google around, there are many. It's complicated to explain the ones
that Tasker
constructs.

Pent

V Oz

unread,
Feb 28, 2012, 4:06:21 AM2/28/12
to tas...@googlegroups.com
Yeap. If it helps anybody.
Browse URL "geo:0,0?q=%LOC (%label)" with google maps opens map with %label at that point. But it tries to search - so, network connection required. though, it's applicable for me.

Rich

unread,
Jan 10, 2013, 5:36:50 AM1/10/13
to tas...@googlegroups.com
Vladimir, thank you for posting this it is exactly what I was looking for however I've done a lot of searching and I cannot figure out how to set the zoom control with this URI. The ' ?z=10 ' does not work, 1 phone recommended ' &z=10 ' unfortunately I could not get this to work either. I was hoping you could possibly shed some light on this.

Thanks for any info you could supply, Rich..

Richard Davis

unread,
Jan 10, 2013, 6:17:58 AM1/10/13
to tas...@googlegroups.com

> Vladimir,  thank you for posting this it is exactly what I was looking for however I've done  a lot of searching and I cannot figure out how to set the zoom control with this URI. The ' ?z=10 ' does not work, 1 phone recommended ' &z=10 ' unfortunately I could not get this to work either. I was hoping you could possibly shed some light on this.
>
>  Thanks for any info you could supply,  Rich..

AAAAARG...  ' Dam you google groups ' 
Sorry for the double post, it did not seem to include the quoted text. This was in reference to--

" Yeap. If it helps anybody. Browse URL "geo:0,0?q=%LOC (%label)" with google maps opens map with %label at that point. But it tries to search - so, network connection required. though, it's applicable for me "

Thanks again,  RICH..

Vladimir Oz

unread,
Jan 10, 2013, 7:04:02 AM1/10/13
to tas...@googlegroups.com
Ohh. it depends on navigation program. the Yandex Mobile Maps gets geo:// scheme as this:
geo:%LOC?z=13&q=(%label)

I've didn't try zoom with google maps - it makes autozooming (I can be wrong)

Richard Davis

unread,
Jan 10, 2013, 12:34:14 PM1/10/13
to tas...@googlegroups.com

> Ohh. it depends on navigation program. the Yandex Mobile Maps gets geo:// scheme as this:
> geo:%LOC?z=13&q=(%label)
>
> I've didn't try zoom with google maps - it makes autozooming (I can be wrong)

Thanks for the reply, I actually do not think you can use the zoom with this particular search URI for google maps. I found a few others looking for the same on Google and no one seems to be able to do it. However I did find. A work around that worked even better than what I was attempting to do. I simply sent a intent with this.

" geo:0,0?q=%Loc(%tap_index)"

   leaving out the label name forces google maps to show the marker with  the street address ( or whatever it thinks should be relevant ) then I set a 3 sec wait then send another intent with.

" geo:%Loc?z=13"

This will now set the zoom to 13 and leave the marker but remove the label for a better view of the map so i end up with a brief flash of the street address then the zoom is set and just the marker remains.. Perfect for this application... 

Thanks again for the help..   Rich..

Richard Davis

unread,
Jan 10, 2013, 12:39:07 PM1/10/13
to tas...@googlegroups.com

Oops, just to be clear for others the first intent i send contains this URI

> " geo:0,0?q=%Loc "

Reply all
Reply to author
Forward
0 new messages