Answer the question
In order to leave comments, you need to log in
Distance traveled calculation in android?
Good evening. I write applications for use in motorsport. It is necessary to determine the distance traveled up to tens of meters. Tried to calculate distance traveled using coordinates given by location.getLatitude(); and location.getLongitude(); but the accuracy of measurements does not shine. Sometimes readings vary by hundreds of meters. I tried to calculate based only on the current speed, but the accuracy is also not enough. Can anyone suggest the best way to accomplish this task? Maybe I'm getting something wrong with GPS?
Answer the question
In order to leave comments, you need to log in
Use boundary conditions - maximum speed, maximum acceleration and deceleration. If GPS data goes beyond these limits, either limit it or discard it altogether.
Use both GPS and accelerometer at the same time. One completes the other.
GPS has an error that changes over time, using the accelerometer, you can calculate and compensate for it. For example, if the car is stationary, and the GPS jumps sharply and does not go back, the jump value is a change in the error.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question