Pass Street Address to Navigation

mmieher

Active Member
Licensed User
Longtime User
Anybody know how to start the Navigation app and pass it a street address as the destination? Then it starts talking to you and tells you how to get there?
 

mmieher

Active Member
Licensed User
Longtime User
Answered my own question. Code below.

Sub cAddress_LongClick

Dim Intent1 As Intent
Dim URI As String

If EmpLoc.Text = "Getting Location..." Then
ToastMessageShow("Please Wait for GPS Location",True)
Return
End If


URI = "google.navigation:q=" & cAddress.Text & "+" & City.Text & "+" & State.Text & "+" & Zip.Text

Intent1.Initialize(Intent1.ACTION_VIEW,URI)

Intent1.SetComponent("google.navigation")

StartActivity(Intent1)

End Sub
 
Upvote 0
Top