Android URL Scheme (Launch Waze from Email, web etc)

Moderators: krankyd, Unholy

Re: Android URL Scheme (Launch Waze from Email, web etc)

Postby AlanOfTheBerg » Sat May 04, 2013 8:35 pm

sugarsmax wrote:Turns out you can do this with Google Maps and some javascript.

Nice! Please add this to the community plugins and extensions in the wiki.
Wiki Resources: Map Editing Manual | Oregon Project/To-Do List
Oregon-based US Country Manager | iPhone5 - VZ - iOS 7.0.6 | Waze v3.7.9.992
AlanOfTheBerg
Waze Global Champs
Waze Global Champs
 
Posts: 19467
Joined: Sat Aug 28, 2010 8:48 pm
Location: US Country Manager - Oregon, USA
Has thanked: 647 times
Been thanked: 2247 times

Re: Android URL Scheme (Launch Waze from Email, web etc)

Postby gerben » Sun Mar 25, 2012 9:46 pm

It should be possible... I use an app that tracks communication of emergency departments (mostly fire department). The app has an 'Maps' button. If I press it, I can choose between Google Maps and Waze. When Google Maps is chosen, Maps is started, centered on the location. If I choose Waze, Waze is started and a route to the location is started.

I have no idea what the exact url is though. I am rather sure the app developer did not include something special for Waze, so the url that is used for G Maps should work for Waze too.
Nokia Lumia 920 (WP8 3.7.6 client)
Countrymanager The Netherlands
ImageImageImageImage
gerben
Waze Global Champs
Waze Global Champs
 
Posts: 4758
Joined: Sun Dec 13, 2009 10:42 pm
Location: Almelo
Has thanked: 31 times
Been thanked: 174 times

Re: Android URL Scheme (Launch Waze from Email, web etc)

Postby guri211 » Mon Mar 26, 2012 9:44 pm

MaFt wrote:BUT I cannot get it to navigate to a specific lat/long location.


For both Android and iOS, the URL http://waze.to/{encoded_latlon} is working, but you need to decrypt the {encoded_latlon} format. I.e.:
hu2s555555 -> 48.356860,17.011106
hu2s555556 -> 48.356904,17.011062
hu2s555559 -> 48.356944,17.011020
hu2s000000 -> 47.812524,16.875020
hu2r000000 -> 46.406272,21.093770
Waze 2.4 @ Ericsson GA628 (landscape mode preffered)
Škoda 100 MB 1977 (grey)
Pressburg, Slovakia
guri211
Waze Global Champs
Waze Global Champs
 
Posts: 1689
Joined: Fri Dec 31, 2010 6:13 pm
Location: Bratislava, Slovakia
Has thanked: 627 times
Been thanked: 429 times

Re: Android URL Scheme (Launch Waze from Email, web etc)

Postby guri211 » Mon Mar 26, 2012 10:10 pm

Sorry, also the following format is working, both for Android and iOS:

http://waze.to/?ll=latitude,longitude&navigate=yes

Example:
http://waze.to/?ll=48.149491,17.108636&navigate=yes
Waze 2.4 @ Ericsson GA628 (landscape mode preffered)
Škoda 100 MB 1977 (grey)
Pressburg, Slovakia
guri211
Waze Global Champs
Waze Global Champs
 
Posts: 1689
Joined: Fri Dec 31, 2010 6:13 pm
Location: Bratislava, Slovakia
Has thanked: 627 times
Been thanked: 429 times

Re: Android URL Scheme (Launch Waze from Email, web etc)

Postby guri211 » Thu Jun 21, 2012 1:28 pm

Pegi wrote:
guri211 wrote:
MaFt wrote:BUT I cannot get it to navigate to a specific lat/long location.


For both Android and iOS, the URL http://waze.to/{encoded_latlon} is working, but you need to decrypt the {encoded_latlon} format. I.e.:
hu2s555555 -> 48.356860,17.011106
hu2s555556 -> 48.356904,17.011062
hu2s555559 -> 48.356944,17.011020
hu2s000000 -> 47.812524,16.875020
hu2r000000 -> 46.406272,21.093770

Hi guri211,
maybe a stupid question but how you actually decrypt the lat, lon to hu2...... format?

Thanks

I have no algorithm for that, this was just manually rewritten from the client (from history file). Anyway this is not necessary, as the format http://waze.to/?ll=48.149491,17.108636&navigate=yes is also working.
Waze 2.4 @ Ericsson GA628 (landscape mode preffered)
Škoda 100 MB 1977 (grey)
Pressburg, Slovakia
guri211
Waze Global Champs
Waze Global Champs
 
Posts: 1689
Joined: Fri Dec 31, 2010 6:13 pm
Location: Bratislava, Slovakia
Has thanked: 627 times
Been thanked: 429 times

Android URL Scheme (Launch Waze from Email, web etc)

Postby MaFt » Fri Mar 23, 2012 9:34 am

I'm working on a site that I want to offer users the ability to navigate directly to a point using Waze.

On the iPhone I use the info from http://world.waze.com/dev/documentation/ and link to:
waze://?ll=52.123,-1.234&z=6&navigate=yes which opens up the waze app and starts navigating.

However, not everyone has an iPhone/iPad and I want to be able to do the same for Android users too.

Now, I've got the app to open via this link:
http://waze.to/waze://?ll=52.123,-1.234 ... vigate=yes

BUT I cannot get it to navigate to a specific lat/long location. All it does is open the app. Are the URL variables available on the Android version of the app? If not, will they be or shall I solely offer navigation via Sygic on Android handsets?

Thanks in advance

MaFt
MaFt
 
Posts: 2
Joined: Fri Feb 19, 2010 1:13 am
Has thanked: 0 time
Been thanked: 0 time

Re: Android URL Scheme (Launch Waze from Email, web etc)

Postby ojaneri » Thu Feb 20, 2014 1:00 pm

Can I use address (street name, number and city) ?

Thanks.
ojaneri
 
Posts: 1
Joined: Sun Jan 23, 2011 12:26 am
Has thanked: 0 time
Been thanked: 0 time

Re: Android URL Scheme (Launch Waze from Email, web etc)

Postby Pegi » Thu Jun 21, 2012 10:27 am

guri211 wrote:
MaFt wrote:BUT I cannot get it to navigate to a specific lat/long location.


For both Android and iOS, the URL http://waze.to/{encoded_latlon} is working, but you need to decrypt the {encoded_latlon} format. I.e.:
hu2s555555 -> 48.356860,17.011106
hu2s555556 -> 48.356904,17.011062
hu2s555559 -> 48.356944,17.011020
hu2s000000 -> 47.812524,16.875020
hu2r000000 -> 46.406272,21.093770

Hi guri211,
maybe a stupid question but how you actually decrypt the lat, lon to hu2...... format?

Thanks
Pegi
 
Posts: 6
Joined: Mon Apr 25, 2011 10:47 am
Location: Auckland, New Zealand
Has thanked: 0 time
Been thanked: 0 time

Re: Android URL Scheme (Launch Waze from Email, web etc)

Postby Pegi » Thu Jun 21, 2012 11:08 pm

guri211 wrote:
Pegi wrote:
guri211 wrote:Hi guri211,
maybe a stupid question but how you actually decrypt the lat, lon to hu2...... format?

Thanks

I have no algorithm for that, this was just manually rewritten from the client (from history file). Anyway this is not necessary, as the format http://waze.to/?ll=48.149491,17.108636&navigate=yes is also working.


I can obtain a decrypted format from Waze app when I email a location to myself but I need to do more than 1000 sites which would take ages to do it this way.
Yes, you are right http format works but for some reason when I used New Zealand (where I live) GPS coords it didn't work. It is strange because when I used your example it worked fine but the one with NZ coords (http://waze.to/?ll=174.644742,-36.889987&navigate=yes) didn't. It looks like it is working now when I swaped lon and lat (http://waze.to/?ll=-36.889987,174.644742&navigate=yes).
Thanks for your time anyway
Pegi
 
Posts: 6
Joined: Mon Apr 25, 2011 10:47 am
Location: Auckland, New Zealand
Has thanked: 0 time
Been thanked: 0 time

Re: Android URL Scheme (Launch Waze from Email, web etc)

Postby sugarsmax » Fri May 03, 2013 12:07 am

Turns out you can do this with Google Maps and some javascript.

1. Go to Google Maps, find the point of interest.
2. Right mouse: What's Here
3. The lat & long will show up in the Search bar.
4. Select that text

5. The following Bookmark can absorb your selected text, and build a URL of the form:
http://waze.to/?navigate=yes&ll=xx.xxx,yy.yyy

javascript:q=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!q)q=prompt("Search for?","");if(q!=null)location="http://waze.to/?navigate=yes&ll="+escape(q).replace(/ /g,"+");void 0

6. Email / SMS to your phone.

Worked like a charm!
sugarsmax
 
Posts: 3
Joined: Tue Jul 06, 2010 10:06 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Website, Community, General

Who is online

Users browsing this forum: Google Feedfetcher