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.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Best posts made by 27_T
-
RE: Location Module 'speed'
Latest posts made by 27_T
-
RE: Location Module 'speed'
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.
-
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!