I am using the ios Location Module. get_location() returns a dictionary which includes a 'speed' entry but it is always -1.0, and all the examples I see online seem to show the same. Does this mean 'speed' is not yet implemented, or is there some trick I'm missing? I'm getting latitude and longitude correctly so I'm presuming my script is basically functional. Thanks!
Forum Archive
Location Module 'speed'
27_T
Sep 20, 2020 - 01:47
mikael
Sep 20, 2020 - 08:09
@27_T, are you looking for something like the speed of a car or a bike, or the speed of the device moving in your hand?
For reference, I am getting sensible zero-point-something m/s speed values just sitting in my chair. course stays at -1, of course, since I am not moving.
27_T
Sep 20, 2020 - 09:25
Thanks @mikael, I figured out the problem. I was debugging on an iPad without GPS, so while it returns lat/lon based on wifi, it doesn't return speed. When I tried the same code on an iPhone with GPS it also returns speed. I guess it wouldn't make much sense to derive speed from the wifi based location.