Answer the question
In order to leave comments, you need to log in
Calculation of the distance traveled written in gpx. How to implement in Python?
I decided to write a program that displays the distances recorded in gpx, I figured out the parsing. When calculating large discrepancies in the results.
formulas:
r = radius of the Earth in meters = 6378245
x = r * sin(W) * cos(L);
y = r * sin(W) * sin(D);
z = r * cos(W);
Distance between two points on a sphere = sqrt((x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question