Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

What unit is the speed attribute from the geolocation API returned in?

I'm working on a cycling app that uses the geolocation APIs for measurements, and right now I'm trying to get speed displayed. It is working, as I took it in my car and drove around to test it, but it's definitely not being measured in miles/hour or kilometers/hour (either that or my car's speedometer is horribly off :) )

So does anyone know what units the measurement is returned in? Something like meters/second maybe? I can't seem to find the answer anywhere online.

— asked October 28th 2010 by Bill Labus
  • geolocation
  • gps
  • speed
0 Comments

1 Answer

  • Speed is calculated/provided in m/s so multiply by 3.6 for kph or 2.23693629 for mph.

    BTW - I wouldn't expect much in the way of accuracy. Speed in generally calculated by measuring time and distance traveled. Since the GPS technology in these devices aren't accurate enough to get a stable and correct location the speed will not be calculated well.

    — answered October 28th 2010 by John McKnight
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.