You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculate the speed metadata from the GPXParser object is quite easy. I think it will be part of a future release.
For now you can calculate it from the existing data :
As the speed is just the result of the operation distance/time you can calculate it by yourself for each sub segment (ie. between each GPX points)
The time is just the time difference between the two points
The distance is the difference between the cumulative distance of the two points
So for each points :
letdistance=track.distance.cumul[i+1]-track.distance.cumul[i];// in meterslettime=track.points[i+1].time-track.points[i].time;// in millisecondsletspeed=distance/time;//in meters per milliseconds
So you could convert it to km/h by multiplicating by 3600.
Hello,
How to calculate the speed (max, in), the average speed ? I can't find any method for.
Thanks in advance
The text was updated successfully, but these errors were encountered: