-8

Is there a way to do it without GPS? And, in the best way, without network.

Thanks.

Artem
  • 1,566
  • 1
  • 10
  • 15
  • 2
    In theory, if you start from rest you could use the accelerometer to do this. In practice, probably not. – Wooble Jul 16 '14 at 13:58
  • You may try to get Acceleration base on accelerometer, get the time, calculate the speed. But that's completely unreliable, even if phone was still. – Marius Jul 16 '14 at 13:58
  • @Marius If the phone is still it's easy ;) – Dave Newton Jul 16 '14 at 14:00
  • @DaveNewton not so easy, according to [this](http://stackoverflow.com/questions/6027724/what-is-the-real-world-accuracy-of-phone-accelerometers-when-used-for-positionin) – Marius Jul 16 '14 at 14:01
  • @Marius If the phone is still, which is pretty easy to detect even with its inaccurate accelerometer, the velocity is zero. – Dave Newton Jul 16 '14 at 14:03

1 Answers1

2

Accurate speed measurements require some form of distance/time calculation, unless you want to play some hairy games with the accelerometer and don't mind being completely wrong.

See e.g., http://www.chrobotics.com/library/accel-position-velocity

Dave Newton
  • 158,873
  • 26
  • 254
  • 302