计算用户移动速度的android速度、用户、android

2023-09-06 01:26:08 作者:放肆的青春 无力的我们▲

我需要计算的的速度与用户移动的。因此,我们需要两个东西,计算速度,这是 GPS 加速度

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

但都有其局限性。

1) GPS 不可用所有的time.While我得到的用户总是我从网​​络提供商获取当前位置,而不是只从 GPS

1)GPS is not available all the time.While I getting the current location of user always I am getting from Network provider only and not from GPS.

2)加速度是不准确的。

那么哪种方式,我应该去?

So which approach should I go with?

推荐答案

这是实现的基础上,GPS,可的这个链接

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