如何使用iphone sdk使用加速度计计算距离?

时间:2010-01-22 05:38:23

标签: objective-c iphone-sdk-3.0 core-location accelerometer

计算两点之间距离的最佳方法是什么/或者我们走路时可以说使用加速度计计算行驶距离?我的主要问题是我正在开发一个应用程序,我需要使用两个位置计算距离,但有时核心位置无法更新位置,所以那时我如何计算行进距离?

1 个答案:

答案 0 :(得分:4)

You can't even get an accurate measurement of velocity from the accelerometer,所以你肯定无法准确衡量旅行距离。