Launching Waze from Tasker with direct navigation engaged.

10,710 views
Skip to first unread message

Dan Edwards

unread,
Oct 12, 2013, 11:30:05 PM10/12/13
to tas...@googlegroups.com
I thought this might help some people.
Waze has a very small API for launching the app and getting into navigation or search directly.  The direct code examples can be found on this page.

In Tasker...
Send Intent
Action: android.intent.action.VIEW
Data: waze://?ll=40.3560493,-105.4533494&navigate=yes
Target: Activity

This example uses latitude and longitude to take you to Hermit Park in Colorado. I used it for testing, since the only route there is via private roads due to the flooding here.  Waze, found it and warned me about the private road. Good thing, too.  I know those nut jobs, they are serious it is a private road.  I am sure they have lightened up though in the face of the floods.

Other examples:
Change the Data Parm to this in order to search for Denver Colorado
waze://?q=Denver%20Colorado 

The q= takes anything you could put in the search box in the app itself.
The &navigate=yes is what tells Waze to begin navigating to that search or location immediately, but only if Waze can find a exact match for the search. For example...
waze://?q=321%20Mountain%20Ave%20Berthoud%20CO&navigate=yes
will take you directly to City Star Brewery in Berthoud Colorado but...
waze://?q=Walmart&navigate=yes
will present you with a list of the Walmarts near your location, and will not directly begin navigation.

Hope this helps someone.

Bob Hansen

unread,
Oct 13, 2013, 9:06:36 AM10/13/13
to tas...@googlegroups.com
Thanks Dan!

There are two things that I find really difficult to understand when using Tasker - sending intents and using regex. Your post definitely has helped me understand sending intents with Tasker. Now if only I could wrap my mind around regex ;>) 

Mike L

unread,
Oct 13, 2013, 11:46:12 AM10/13/13
to tas...@googlegroups.com
One more Waze intent, this one exits the app cleanly.

A1: Send Intent [ Action:Eliran_Close_Intent Cat:Default Mime Type: Data: Extra: Extra: Package:com.waze Class: Target:Broadcast Receiver ] 

@Bob, you can do it, man! I just recently started playing with regex and it makes life easy. http://gskinner.com/RegExr/ is what I use to test my expressions before putting them on the phone, that website has a nice crib sheet on the side with explanations of what's happening. If you need any help or a working example or something let me know. You've helped me tons on this forum.



Bob Hansen

unread,
Oct 13, 2013, 12:10:27 PM10/13/13
to tas...@googlegroups.com
@Mike, thanks for the regex link and the encouragement!  :>)

Steven Shults

unread,
Feb 11, 2014, 11:10:39 PM2/11/14
to tas...@googlegroups.com
Thanks Dan, this is helpful.

I'm not finding any more documentation for the Waze API beyond that pagetheou linked to. Even their wiki seems to be lacking info about it.

Do you happen to know of the location of a longer list of URL parameters for the Waze API?

In particular I am hoping to find a way to automate the toggling of the absurdly buried preference setting for "Avoid Major Highways", because I take the freeway in the morning, but I take surface streets on the way home.

I toyed with the idea of getting the coordinates for all of the taps involved and using run shell tap inputs with waits between, but the inconsistency of the "Are you on your way to X?" prompt makes this approach silly.

Steven Shults

unread,
Feb 11, 2014, 11:11:51 PM2/11/14
to tas...@googlegroups.com
Thanks for the clean exit intent Mike. Also helpful.

Steven Shults

unread,
Feb 15, 2014, 12:43:52 AM2/15/14
to tas...@googlegroups.com
In my continued battle to try to find a way to automate the toggling of the "Avoid Major Highways" setting, I found this in the Waze logs:

Category: Routing Name: Avoid primaries Value: yes
[ConfigManager_JNI.c:229 (setSettings)]


I then opened the manifest and found two possibly related intents:
settings.SettingsNavigationActivity
and
settings.SettingsNavigationGuidanceActivity

I'm now embarking on a trial and error journey to see if I can guess my way into changing that setting with an intent. Don't even know if I am in the right neighborhood, so any tips would be appreciated if anyone has been down this or similar roads before. (all travel metaphors intentional.)


Matt R

unread,
Feb 15, 2014, 3:46:01 AM2/15/14
to tas...@googlegroups.com
Those are just activities (screens) within the app. I don't think they'll be particularly useful.

Matt

Steven

unread,
Feb 15, 2014, 1:51:43 PM2/15/14
to tas...@googlegroups.com
Thanks. Any ideas on whether it is at all possible to toggle that setting with tasker?

Matt R

unread,
Feb 15, 2014, 4:30:41 PM2/15/14
to tas...@googlegroups.com
You could use dpad or input tap commands if you have root.

Matt

Steven

unread,
Feb 15, 2014, 4:33:15 PM2/15/14
to tas...@googlegroups.com
Thanks, I could, but as I said before "I toyed with the idea of getting the coordinates for all of the taps involved and using run shell tap inputs with waits between, but the inconsistency of the "Are you on your way to X?" prompt makes this approach silly. "  Not to mention the likely changes to menu topography in future releases.

Matt R

unread,
Feb 15, 2014, 5:26:44 PM2/15/14
to tas...@googlegroups.com
If you launch the navigation settings activity it's only one screen tap (on the actual setting toggle).

Matt

Steven Shults

unread,
Feb 15, 2014, 6:25:32 PM2/15/14
to tas...@googlegroups.com

*light bulb* That sounds manageable.  I will give it a try, Thanks Matt.

On Feb 15, 2014 2:26 PM, "Matt R" <matthew.r...@gmail.com> wrote:
If you launch the navigation settings activity it's only one screen tap (on the actual setting toggle).

Matt

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/5nY-9A7OK6U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.
Message has been deleted

Moshe

unread,
May 11, 2014, 4:25:30 AM5/11/14
to tas...@googlegroups.com
Thanks Dan,
 
I tried the :
 

Send Intent

Action: android.intent.action.VIEW

Data: waze://?ll=40.3560493,-105.4533494&navigate=yes

Target: Activity

And it doesn't do anything.
 
any idea what to do ?
 

Thanks,   Moshe

Moshe

unread,
May 11, 2014, 6:13:57 AM5/11/14
to tas...@googlegroups.com

Jim Becker

unread,
May 11, 2014, 9:56:34 AM5/11/14
to tas...@googlegroups.com
Are you in North America? Waze won't give directions over water :-)
If you're on a different continent try a local set of coordinates.

StarGoose

unread,
Aug 20, 2014, 6:56:56 PM8/20/14
to tas...@googlegroups.com
This does indeed work. No problems there. But I tried to launch the intent from JavaScript... no luck there.

i tried these:
sendIntent( 'android.intent.action.VIEW', 'Activity', '', '', 'none', 'waze://?ll=53.3560493,6.4533494&navigate=yes');
sendIntent( 'android.intent.action.VIEW', 'Activity', 'none', 'none', 'none', 'waze://?ll=53.3560493,6.4533494&navigate=yes');
sendIntent( 'android.intent.action.VIEW', 'Activity', '', '', 'none', 'waze://?ll=53.3560493,6.4533494&navigate=yes'. '', '' );
and some other variations but neither one seem to launch waze and some even stop the js as they might be faulty


Anyone ?

Kind regards from the Netherlands!

Shane Dabrowski

unread,
Sep 2, 2014, 2:34:59 PM9/2/14
to tas...@googlegroups.com
Thanks for the help on this!

I just added it with Autovoice Recognized. For some reason, my app always hears 'WAZE' as Ways, so I created an auto voice with the following:

ways to (?<location>.+) with regex on.

Then in the tasker app, I 

1. Launch App.
2. Wait 2 seconds
3. Send intent with the Data field saying: waze://?q=%location

So far so good! Thanks for the help!

Slaton Spangler

unread,
Sep 25, 2014, 8:00:52 PM9/25/14
to tas...@googlegroups.com
You can also put the waze://?q=%location bit in the data field in the launch app task, and skip the 2 second wait task.

Daniel Söderlund

unread,
Oct 4, 2014, 5:22:48 AM10/4/14
to tas...@googlegroups.com
Hello, 

Can you use favorites or Home/work in the string? 
anyone knows how use non standard english letter like åäö

KR
Daniel

keith twombley

unread,
Nov 11, 2015, 5:46:38 PM11/11/15
to tas...@googlegroups.com
I decompiled the Waze apk and then searched through the libwaze.so library to figure it out!

You can have Waze navigate to your Home/Work/any favorite with this URI:

waze://favorite={name goes here}&navigate=yes

Examples:
waze://favorite=Home&navigate=yes
waze://favorite=Work&navigate=yes
waze://favorite=Somewhere Else&navigate=yes



--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Keith W Twombley,
Philosopher
"If brute force doesn't solve your problem, you're not using enough of it."

Dominique

unread,
Nov 14, 2015, 11:44:15 PM11/14/15
to Tasker
Thank you Keith, excellent work.

I commented on your blog.  I was wondering if you could show us a video tutorial on how to set this up and show a demo of it working.

By any chance could you also get voice notification of upcoming traffic or police in this way?

david armand

unread,
Nov 19, 2015, 4:19:21 AM11/19/15
to Tasker

Hi,
Great, your finding of "waze://favorite=Somewhere Else&navigate=yes" is simply magic!

Now, next step, i would like to compare a given CalendarEventLocation against my waze favorite list...

If address found in FavoriteList ==> use the : waze://favorite=Somewhere Else&navigate=yes
if address NOT in Favorite ==> Use the : waze://?q=%location  
....to start waze with engaged navigation.

Have anyone an idea of the storage location (on android, of course) for the waze "favorite" list...(favorite location like : Home, Work, Sister, Brother, ..) ?
Is it an accessible  file? Readable by tasker (with root)?
thank you

PC

unread,
Nov 19, 2015, 3:43:23 PM11/19/15
to Tasker
I'd like to know this as well...

Christopher Pritchard

unread,
May 6, 2016, 12:48:46 PM5/6/16
to Tasker
Steven, after digging a bit I found the app data folder for waze, and tested changing this option in the file. I was able to do what you're asking about.

This post ( http://stackoverflow.com/a/2530734 ) led me to the directory, /data/data/com.waze

The user and preferences files hold many settings, and changes will be seen on the next launch of Waze. The primary roads (highways) setting can be changed here. No need for sqlite editors, as it appears to be plain text files.

I figured this might help someone.

Message has been deleted

Mike McKinnon

unread,
Jan 13, 2017, 10:11:08 AM1/13/17
to tas...@googlegroups.com
Create a Favorite Destination in Waze and save it.

In Tasker
Create a new Task
Hit + sign then System icon then Send Intent (or search for intent)
Under Action header type in:
android.intent.action.VIEW

Under Data header type in:
waze://?favorite=My House&navigate=yes


The above assumes you have a favorite setup called My House.  Obviously you can use any favorite you'd like that's been previously saved in Waze.


Mike McKinnon | Margent Corporation | 360-352-2004

On Fri, Jan 13, 2017 at 6:26 AM, Justin G <jgos...@gmail.com> wrote:
I know this is an older post, but it's exactly what I'm wanting to do. Problem is I've never used intents for anything, so I'm not sure how to set it up. I essentially just want a shortcut that I press and it opens waze and navigates me home. Can anyone help out a newb?

--

You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/5nY-9A7OK6U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.

Justin G

unread,
Jan 13, 2017, 10:14:51 AM1/13/17
to Tasker
Thank you. The issue was I forgot to add a task to open waze first. D'oh!
Message has been deleted

Andrew Leedom

unread,
Feb 8, 2017, 2:31:09 PM2/8/17
to Tasker
Awesome help guys. Thanks! 

Do we know if there's any way to trigger the Send ETA to specific contacts?

Ger PG

unread,
May 11, 2017, 12:21:12 PM5/11/17
to Tasker
I've been trying to implement this for a while and the following line

waze://favorite={name goes here}&navigate=yes

does not work if I don't put a "?" between "//" and "favorite.

So, the solution that made the trick for me is "waze://?favorite={name goes here}&navigate=yes".

Thanks for such an awesome contribution.

Kevin Lasenby

unread,
Nov 13, 2017, 10:42:42 AM11/13/17
to Tasker
Thanks for this, works great!  Does anyone know how to add a stop to a route through the API?

One additional detail for Mike's instructions, the Target:
In Tasker
Create a new Task
Hit + sign then System icon then Send Intent (or search for intent)
Under Action header type in:
android.intent.action.VIEW

Under Data header type in: waze://?favorite=My House&navigate=yes
Target: Activity

On Friday, January 13, 2017 at 10:11:08 AM UTC-5, Mike McKinnon wrote:
Create a Favorite Destination in Waze and save it.

In Tasker
Create a new Task
Hit + sign then System icon then Send Intent (or search for intent)
Under Action header type in:
android.intent.action.VIEW

Under Data header type in:
waze://?favorite=My House&navigate=yes


The above assumes you have a favorite setup called My House.  Obviously you can use any favorite you'd like that's been previously saved in Waze.


Mike McKinnon | Margent Corporation | 360-352-2004

On Fri, Jan 13, 2017 at 6:26 AM, Justin G <jgos...@gmail.com> wrote:
I know this is an older post, but it's exactly what I'm wanting to do. Problem is I've never used intents for anything, so I'm not sure how to set it up. I essentially just want a shortcut that I press and it opens waze and navigates me home. Can anyone help out a newb?

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/5nY-9A7OK6U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages