What is the best strategy for determining a user's location from a series of GPS fixes, once they are considered not to be moving?

When tracking a user, if they should stop moving there will subsequently be a sequence of fixes roughly in the same location.

If possible I would like to not just use the last fix, but also take into consideration previous fixes so as to calculate a more accurate position for them.

Factors that I would have thought need to be considered:

  • The best way to determine a user is stationary (from experience speed from the GPS fixes is not sufficiently reliable)
  • Each fix has an accuracy, how can this be factored in?
  • Are there well established algorithms/libraries that could be used?

Any suggestions greatly appreciated

1

There are 1 answers

3
Has QUIT--Anony-Mousse On

What's wrong with taking the average?

If you want to take uncertainty into account, use a weighted average. Or a trimmed one, discarding those measurements that deviate most.

But it is a known fact that other factors such as reflections on buildings, can have a much larger effect on the accuracy.

Nevertheless, this is not so much a programming question, but one that needs GPS expertise. You are better off reading expert literature than asking random internet users for their opinion.