Android: distanceTo() wrong values
问题 I am writing an application for tracking my route. I am requesting updates from GPS every minute and it works fine. It shows me my exact point. When I want to calculate distance between current point and previous one it works ok, but form time to time it calculates distance totaly wrong (I moved about 200m and it retuned me a value over 10km). Does anyone know why this could happen? Here is the function which I use: iRoute += myGPSLocation.distanceTo(prevLocation); Thanks in advance! 回答1: