Android google.navigation Intent Modes?
Posted
by
Patrick Mahoney
on Stack Overflow
See other posts from Stack Overflow
or by Patrick Mahoney
Published on 2012-11-06T16:22:35Z
Indexed on
2012/11/06
17:00 UTC
Read the original article
Hit count: 265
I'm currently developing an application that will launch a navigation intent. I know that this isn't an official API, but it works perfectly the way I want it to.
I allow the user to select driving, walking, and bus navigation to a location. The intent to launch directly into Google Maps Navigation looks like this:
google.navigation:ll=
+ a latitude and longitude, then + &mode=
then your mode of transportation. For example, to navigate using walking directions to a certain area:
google.navigation:ll=blah,blah&mode=w
Driving is default, or &mode=d
, and biking is &mode=b
, but I can't figure out bus (public transit).
Has anyone done this before?
Thanks!
Edit: So far, I've found that mode=public
gives bike directions, mode=transit
gives driving, frustratingly, mode=bus
also returns bike directions.
© Stack Overflow or respective owner