Reputation: 25
Need to make an app in which user can find the walking distance between two points.
The Concept is like user will start the app and start walking and after taking a few steps he will click some button which will show him the distance traveled by him from the point where he just started the App. and to where he stopped.
I know we can find the distance between two location by using CLLocation Class but the challenge is to get the accurate measurements up to say 3 meters.
Even I am not sure that we can use accelerometer as If I'm at rest, the accelerometer detects only acceleration due to gravity. This obviously set the walking distance to 0 so dont know how will I detect the starting point.
Any hint/suggestion on the same would be a great help to me.
Upvotes: 0
Views: 1368
Reputation: 5775
Check this: iphone accelerometer speed and distance
As far as I know it is almost impossible to get accurate results about distance, using the accelerometer.
Upvotes: 1