I am writing an application to track my route. I request GPS updates every minute and it works great. It shows me my exact point. When I want to calculate the distance between the current point and the previous one, it works fine, but from time to time it calculates the distance completely erroneously (I moved about 200 m, and it reconfigured me for more than 10 km). Does anyone know why this might happen?
Here is the function I'm using:
iRoute += myGPSLocation.distanceTo(prevLocation);
Thanks in advance!
android gps location distance
Dominik Iwicki Aug 22 '13 at 10:13 2013-08-22 10:13
source share