How do I measure the distance traveled by an iPhone using the accelerometer?

后端 未结 5 1341
渐次进展
渐次进展 2020-12-13 11:33

While GPS works for long distance changes, I would like to measure a shorter distance by using the iPhone\'s accelerometer.

Say I want to measure a height of a box u

5条回答
  •  心在旅途
    2020-12-13 12:14

    GPS is currently not accurate enough to measure a box. Take into account that there may be an error of about 10 meters to a mile. You can get back the accuracy of the measure with CLLocation.

提交回复
热议问题