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.
 
Upvote 0
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

Similar Threads

  • Question Question
Android Question USB GPS Dongle
Replies
26
Views
12K
  • Question Question
Android Question GPS Question
Replies
4
Views
3K
  • Locked
  • Article Article
Android Tutorial GPS / GNSS tutorial
Replies
311
Views
348K
Back
Top