GPS Location Tutorial

trope

Member
Can you please tell me what tutorials I would need to study to learn how to make the following program:


CLICK HERE TO FIND CLOSEST GROCERY STORE

Results:

Stop and Shop - 1.2 Miles - Click for directions


I realize that simple program incorporates a lot of functionality, however, I have to begin somewhere!

Thanks.
 

warwound

Expert
Licensed User
Longtime User
Upvote 0

carloz

Member
Licensed User
Longtime User
hey,

have been trying to do the same..and have it working pretty good too..

1:use locationmanager to get current location.
2:get lat lon from location manager
3:do a distance calculation to the store lat lon
4:use the follwing code to start navigation

///this code was found on these forums and works beautifully
Sub ShowNavigation (Latitude As String,Longitude As String)
'google place, just show map
Dim mapIntent As Intent
Dim geoURI As String
geoURI="google.navigation:q=" & Latitude & "," & Longitude
mapIntent.Initialize(mapIntent.ACTION_VIEW,geoURI)
mapIntent.SetComponent("googlemaps")
StartActivity(mapIntent)
End Sub

hope this helps...

regards
carloz
 
Upvote 0
Top