0

Im writing an app that functions much like RunKeeper. Im tracking CLLocations every x seconds to figure out the total distance.

However, if the user moves on a really straight freeway for 10 minutes (Think USA), there is no point in saving 60 tracking points.

What kind of filtering do you use in your apps to reduce the number of track points?

Im thinking about checking the course delta from the last good position and discarding the new posotion if course hasnt changed by more than x degrees. There would of course also be a longer time limit to get a point every now and then anyway.

4

0 回答 0