Home > Mobile > Android walking distance how to calculate? Pedestrians may be walking up and down, or go in circles,
Android walking distance how to calculate? Pedestrians may be walking up and down, or go in circles,
Time:09-17
There is a demand: Walking in a building (probably walked up and down, also could not go back), after the walk, walk steps and distance,
I use sensors to solve steps, don't know how to get,
CodePudding user response:
Every position changes, the last time to compute and the distance between the coordinates, then accumulate, can not only calculate the distance between the start and end