Changing TRAVEL MODE on NAVIGATION

Der Mond

Member
Licensed User
Longtime User
I created an intent to launch the navigator and I would like to set the travel mode "walking" instead of "driving".
I tried to send the parameters via the command PutExtra but unfortunately it does not work.
Can you help me?

My code is:
B4X:
Dim NAV_Intent As Intent 
Dim NAV_URI As String

      NAV_URI="google.navigation:q=" & Latitude & "," & Longitude
      NAV_Intent.Initialize(NAV_Intent.ACTION_VIEW,NAV_URI)
      NAV_Intent.SetComponent("googlemaps")
      NAV_Intent.PutExtra("mode", "walking")
      
      StartActivity(NAV_Intent)




Thanks to all
Vincenzo
 

Der Mond

Member
Licensed User
Longtime User
I found It!

NAV_URI ="google.navigation:ll=" & Latitude & "," & Longitude & "&mode=w"

:BangHead:
 
Upvote 0
Top