|
|
@ -0,0 +1,27 @@ |
|
|
|
--- |
|
|
|
date: '2021-02-26 21:57:39' |
|
|
|
draft: false |
|
|
|
posttype: note |
|
|
|
sensitive: 'false' |
|
|
|
slug: 60396ed3 |
|
|
|
visibility: public |
|
|
|
title: note |
|
|
|
--- |
|
|
|
Thinking about how I pull all of the calculations from a multi-marker GPX file that I might want to display on a webpage.. |
|
|
|
|
|
|
|
The file contains start time then multiple track segments with latitude, longitude, elevation, speed and time elements in each. |
|
|
|
|
|
|
|
For total distance I'd need to figure out how to measure between the coordinates and elevations of each consecutive segment (?) and then total each of these. |
|
|
|
|
|
|
|
Duration should be easy, it's just the difference between the first and last timestamp - though modifications are probably required for pauses.. however those are measured.. |
|
|
|
|
|
|
|
Pace, I gather would be duration divided by distance.. my quick calculations on this aren't exactly the same as the apps, but presumably this is down to number of decimal places being used in the calculations.. |
|
|
|
|
|
|
|
Which leaves calories burned.. this will require a constant for my weight but other than that I've no idea.. |
|
|
|
|
|
|
|
Then output all of that into a yaml file for Hugo to render.. |
|
|
|
|
|
|
|
Seems like a big job.. I wonder if there is a Linux command line tool that can do all of this already? |
|
|
|
|
|
|
|
These are the steps I may need to take to avoid google and JavaScript.. |
|
|
|
|