Android Question How can I open GoogleMap App in driving mode with my location+Latitude+Longtitude

quansofts

Member
Hi All,
I have my current location, Latitude, Longtitute of the destination. How can I open GoogleMap App in driving mode with that location+Latitude+Longtitude (GoogleMap installed). The purpose is show google in driving mode for deliveryman goto the destination.

Many thanks for your help

Jonh
 

quansofts

Member
Open google map app in driving mode:
Sub View_Direction(lat As String,lon As String)
    Dim mapIntent As Intent
    Dim geoURI As String
    
    geoURI = "google.navigation:q="& lat &"," & lon
    mapIntent.Initialize(mapIntent.ACTION_VIEW,geoURI)
    StartActivity(mapIntent)
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…