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

CodePudding user response:

reference 1st floor BDMH response:
position change every time, should be the distance between the calculation and the last coordinate, and then accumulate, can not only calculate the distance between the start and end


Thank you

There is a problem to do so:
Determine the position?
As far as I know the current location (GPS, etc.), there are certain deviation for drive or outdoor running, this deviation can be accepted, but for only a few minutes of indoor walking, error is big,

One of my idea is: can use related characteristics of gyro, in order to get it?
Have this idea, haven't detailed study,

CodePudding user response:

Most apps are calculated using mean value of big data, such as one's steps to speed up the period of time, will think in running, with the number multiplied by the average running pace distance, if the walk is in the step is divided by the pace of walking distance,
  • Related