total nubi here and i’m trying to writ an application that trackes how far you have traveled. I can’t find anything on how to do this. I can get location, speed, bearing etc. Any pointers on the best way to do this would be appreciated.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Calculus would suggest a way: it’s a path integral. You’ll approximate it by initializing distance to zero, starting with a position at time t0, taking a time step dt, calculating a new position at time t0 + dt, and adding the distance traveled in that time to the distance. Rinse, repeat until you stop the loop.