Android Question GPS walk or drive

Scantech

Well-Known Member
Licensed User
Longtime User
Anyone knows how to detect GPS speed when walking or driving. I'm really interested in driving speed. I'm trying to filter out distance data from use of walking.

Google map does it somehow
 

emexes

Expert
Licensed User
Should be returned by GPS callback, alongside latitude, longitude, bearing:

upload_2019-7-31_12-36-26.png
 
Last edited:
Upvote 0

emexes

Expert
Licensed User
upload_2019-7-31_16-12-34.png


go to the top hit and midway through the first post, it's like Erel's seen us coming:

'Starter service
Sub
GPS_LocationChanged (Location1 As Location)
CallSub2(Main, "LocationChanged", Location1)
End Sub


'Main activity
Public Sub LocationChanged(Location1 As Location)
lblLat.Text = "Lat = " & Location1.ConvertToMinutes(Location1.Latitude)
lblLon.Text = "Lon = " & Location1.ConvertToMinutes(Location1.Longitude)
lblSpeed.Text = $"Speed = $1.2{
Location1.Speed } m/s "$
End Sub
 
Last edited:
Upvote 0

emexes

Expert
Licensed User
to convert metres/second to kilometres/hour, multiply x 3.6
to convert kilometres/hour to miles/hour, divide by 1.609344

trivia: a few decades ago, the inch was redefined to be 2.54 centimetres exactly
 
Last edited:
Upvote 0

emexes

Expert
Licensed User
trivia: a few decades ago, the inch was redefined to be 2.54 centimetres exactly
I thought I'd better check that, and I'm glad I did - turns out it happened in July 1959 ie exactlyish 60 years ago this month.

So my recollection was only out by a factor of 2 - even armed with an Australian no worries, close enough attitude, that's a bit of a stretch.

:-/
 
Upvote 0
Top