Location Module 'speed'
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!
@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
speedvalues just sitting in my chair.
coursestays at -1, of course, since I am not moving.
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.