Calculating user moving speed in android

后端 未结 3 1380
日久生厌
日久生厌 2020-12-29 16:33

I need to calculate Speed with which the user is moving. So we need two things to calculate speed which are GPS and Accelerometer.

相关标签:
3条回答
  • 2020-12-29 16:40

    The most accurate results can be obtained by using both of them, through sensor fusion. See my previous answer to question Using accelerometer to calculate speeds or to another question GPS V.S. accelerometer to calculate distance.

    As for the accuracy of the accelerometer, see Get velocity from 3DVector using accelerometer sensor.

    If you want to track the user indoor, see what you can actually do at question Android accelerometer accuracy (Inertial navigation).

    0 讨论(0)
  • 2020-12-29 16:56

    An implementation, based on the GPS, is available at this link

    0 讨论(0)
  • 2020-12-29 16:56

    You can call .getSpeed() on the locationprovider

    0 讨论(0)
提交回复
热议问题