I’m designing a pedometer application for the iPhone. Given the number of steps a user has taken, how do I determine the distance in miles they have traveled?
I’m designing a pedometer application for the iPhone. Given the number of steps a
Share
To calculate the speed, you also need to know the total time the user has spent walking.
If the user has walked M miles for total of T minutes, the average speed is
(M * 60) / Tmph. If the user has made a total of S steps for that same time, he’s been doing an average ofS / (T * 60)steps per second.