To get driving instruction from current location to a destination, I use the following code.
Now I have lat/lng data (lat1/lng1, lat2/lng2, lat3/lng3 & lat4/lng4) for 4 locations I need to drive to and I want to get navigation guide with voice instructions to guide me to drive to all 4 locations using the shortest route. How do I prepare the B4A intent?
TIA
Dim mapIntent As Intent
Dim gURI As String
If latitude.Contains(".") = True And longitude.Contains(".") = True Then
gURI="google.navigation:q=" & latitude & "," & longitude
Else
gURI = "google.navigation:q=" & sAddress
End If
mapIntent.Initialize(mapIntent.ACTION_VIEW, gURI)
mapIntent.SetComponent("googlemaps")
StartActivity(mapIntent)
Dim gURI As String
If latitude.Contains(".") = True And longitude.Contains(".") = True Then
gURI="google.navigation:q=" & latitude & "," & longitude
Else
gURI = "google.navigation:q=" & sAddress
End If
mapIntent.Initialize(mapIntent.ACTION_VIEW, gURI)
mapIntent.SetComponent("googlemaps")
StartActivity(mapIntent)
Now I have lat/lng data (lat1/lng1, lat2/lng2, lat3/lng3 & lat4/lng4) for 4 locations I need to drive to and I want to get navigation guide with voice instructions to guide me to drive to all 4 locations using the shortest route. How do I prepare the B4A intent?
TIA