Should I be able to do the following with the GPS library? I'm in an office at the moment so I can't test the actual movement of the device but I'm hoping the below will work. Let me know if my logic is incorrect.
This is for an automated service that retrieves the GPS location every 30 minutes. I took most of this code from the GPS tutorial.
Sub Service_Create
GPS1.Initialize("GPS")
End Sub
Sub Service_Start
GPS1.Start(0,0)
Sleep(10000) ' wait 10 seconds for location to change.
' Do my processing using the Latitude and Longitude variables retrieved from the GPS_LocationChanged sub.
GPS1.Stop
StartServiceAt(blah, blah, blah)
End Sub
Sub GPS_LocationChanged (Location1 As Location)
Latitude = Location1.Latitude
Longitude = Location1.Longitude
End Sub
This is for an automated service that retrieves the GPS location every 30 minutes. I took most of this code from the GPS tutorial.
Sub Service_Create
GPS1.Initialize("GPS")
End Sub
Sub Service_Start
GPS1.Start(0,0)
Sleep(10000) ' wait 10 seconds for location to change.
' Do my processing using the Latitude and Longitude variables retrieved from the GPS_LocationChanged sub.
GPS1.Stop
StartServiceAt(blah, blah, blah)
End Sub
Sub GPS_LocationChanged (Location1 As Location)
Latitude = Location1.Latitude
Longitude = Location1.Longitude
End Sub