Develop Android extension for Waze

These forums are specific to the Waze mobile app. Post here if you experienced a problem while using the app, have a question about the app functionality or a feature such as navigation or search.

Moderators: support, Unholy, krankyd, The Fej, perlin

Develop Android extension for Waze

Postby niekfct » Wed Apr 11, 2012 8:24 pm

I'd like to develop an extension for Waze, which uses other apps to set a navigation point for Waze.
So, for example, I use Google Places to get some coordinates, and I'd like to start Waze with an intent containing those coordinates, allowing the user to quick-navigate to this destination.

Is this possible yet? If so, how, if not, who should I contact about this?
niekfct
 
Posts: 154
Joined: Tue Jun 01, 2010 5:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Develop Android extension for Waze

Postby bgodette » Thu Apr 12, 2012 2:50 am

niekfct wrote:I'd like to develop an extension for Waze, which uses other apps to set a navigation point for Waze.
So, for example, I use Google Places to get some coordinates, and I'd like to start Waze with an intent containing those coordinates, allowing the user to quick-navigate to this destination.

Is this possible yet? If so, how, if not, who should I contact about this?

There's nothing to do here, it's all a matter of Waze registering, and handling, the various Android Intents that the other apps use for passing off their "navigate to" buttons.
Image
bgodette
Waze Champs
 
Posts: 2477
Joined: Wed Jul 06, 2011 8:19 pm
Location: Denver, CO
Has thanked: 5 times
Been thanked: 32 times

Re: Develop Android extension for Waze

Postby fvbommel » Sat Apr 21, 2012 6:43 pm

If all you want is to send Waze a destination (starting it if necessary), you can simply open a "geo:" URI. Waze registers to handle these.
Note that e.g. Google Maps will register for this intent too, so if you want to ensure Waze handles it you need to send it to the "com.waze" package.

So that makes it an intent with these parameters:
Action: "android.intent.action.VIEW" (aka android.content.Intent.ACTION_VIEW)
Package: "com.waze"
Data: "geo:<latitude>,<longitude>" / "geo:?q=some+address" or even "geo:?q=name+of+location" (but that last one tends to require the user to manually select e.g. Google search results if it's not a location Waze knows "natively")
(Start as an activity)

This post also hints at a "waze" intent that the widget uses, but I don't know the syntax of that one.

As an aside, I've found this quite handy when combined with an automation app like Llama (there are also Tasker, Locale and probably others) that can send arbitrary intents when predefined condtions are met.
(For example: something like "if the bluetooth device in my car connects on $days_of_week between $times, start Waze with $destination" is quite handy before Waze has learned your regular routine)
Bonus: you can have the same condition enable GPS and mobile data so you don't have to have them on all the time. :)
fvbommel
 
Posts: 31
Joined: Sat Mar 31, 2012 3:02 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Develop Android extension for Waze

Postby khaytsus » Sun Apr 22, 2012 9:13 pm

Last I tried waze uses this data as a search and often fails to find the geo: uri data...
USA Country Manager
Central Kentucky Area Manager
Nexus 7 (Rooted, Stock 4.2.2 Jellybean)
Samsung Galaxy Note (i717 AT&T; Cyanogen 10.1 Jellybean)
Image
khaytsus
 
Posts: 600
Joined: Tue Nov 03, 2009 10:43 pm
Location: Lexington, KY
Has thanked: 2 times
Been thanked: 8 times

Re: Develop Android extension for Waze

Postby fvbommel » Mon Apr 23, 2012 12:39 pm

khaytsus wrote:Last I tried waze uses this data as a search and often fails to find the geo: uri data...

If you use the version with direct GPS coordinates it just navigates there, AFAICT.
If you use the "?q=" variant instead it does indeed use it as a search. This works pretty well for me if the parameter specifies an address. (At least, it seems to work the same as just entering the address manually)
When looking for a place by name (i.e. when the parameter is not simply an address) it hasn't found much of what I've tried yet, but if you manually press the "Google" tab it works pretty well in my experience.
fvbommel
 
Posts: 31
Joined: Sat Mar 31, 2012 3:02 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Develop Android extension for Waze

Postby guri211 » Mon Jun 25, 2012 9:29 am

fvbommel wrote:Action: "android.intent.action.VIEW" (aka android.content.Intent.ACTION_VIEW)
Package: "com.waze"

As an aside, I've found this quite handy when combined with an automation app like Llama (there are also Tasker, Locale and probably others) that can send arbitrary intents when predefined condtions are met.


Is there any option to cleanly exit Waze automatically using Llama? I.e. on bluetooth disconnect, turn off Waze. I have tried to set the kill and root kill rule, but it has two problems: 1. Waze icon stays in the notification bar, and 2. On the next app start, waze will ask to send the crash log.
Waze 2.4 @ Ericsson GA628 (landscape mode preffered)
Škoda 100 MB 1977 (grey)
Pressburg, Slovakia
guri211
Waze Champs
 
Posts: 1136
Joined: Fri Dec 31, 2010 6:13 pm
Location: Bratislava, Slovakia
Has thanked: 42 times
Been thanked: 33 times

Re: Develop Android extension for Waze

Postby fvbommel » Wed Jun 27, 2012 6:48 am

guri211 wrote:Is there any option to cleanly exit Waze automatically using Llama? I.e. on bluetooth disconnect, turn off Waze. I have tried to set the kill and root kill rule, but it has two problems: 1. Waze icon stays in the notification bar, and 2. On the next app start, waze will ask to send the crash log.

Not that I've found :(. (And I've tried)
fvbommel
 
Posts: 31
Joined: Sat Mar 31, 2012 3:02 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Develop Android extension for Waze

Postby andyqp » Wed Aug 15, 2012 7:06 am

I don't know if it would make any difference, but you can vote for this feature here:

http://waze.uservoice.com/forums/59223-client-how-can-we-improve-waze-on-your-phone-/suggestions/807975-intents
Rīga, LV
waze for Android, 3.5.3.0.
world.waze.com
andyqp
 
Posts: 155
Joined: Fri Sep 03, 2010 8:32 am
Has thanked: 0 time
Been thanked: 0 time

Re: Develop Android extension for Waze

Postby HerbCSO » Wed May 01, 2013 1:30 pm

Sweet! That intent was exactly what I was looking for - thanks so much, @fvbommel! :D
HerbCSO
 
Posts: 3
Joined: Sun Dec 12, 2010 12:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: Develop Android extension for Waze

Postby Superfraggle » Sat May 04, 2013 12:20 pm

fvbommel wrote:
guri211 wrote:Is there any option to cleanly exit Waze automatically using Llama? I.e. on bluetooth disconnect, turn off Waze. I have tried to set the kill and root kill rule, but it has two problems: 1. Waze icon stays in the notification bar, and 2. On the next app start, waze will ask to send the crash log.

Not that I've found :(. (And I've tried)


There is an intent to close waze since the last version, have you managed to get this working yet, I have been using it for a while with no issues. :D
Superfraggle
 
Posts: 392
Joined: Tue Jul 17, 2012 8:21 pm
Has thanked: 6 times
Been thanked: 5 times

Next

Return to Waze App

Who is online

Users browsing this forum: Bing [Bot]