Rahul Vyas
Rahul Vyas

Reputation: 28720

How to calculate distance using accelerometer using iphone sdk?

What is the best way to calculate the distance between two points/Or we can say while we walk calculate distance traveled using accelerometer? My main question is that i'm working on an application in which i need to count distance using two locations but sometimes the core locations fails to update location so at that time how do i calculate the distance traveled?

Upvotes: 2

Views: 3701

Answers (1)

Dave DeLong
Dave DeLong

Reputation: 243156

You can't even get an accurate measurement of velocity from the accelerometer, so you're definitely not going to be able to get an accurate measure of distance traveled.

Upvotes: 4

Related Questions