Description
Hello,
Very nice work for the code you do.
I just want to report you a problem I see.
Here my gpx point, like you can see, it seems like there is missing points somewhere.
All data seems pretty ok with your code, except the "cumulativeElevationGain" and "cumulativeElevationLoss".
You code give me in the "stats" result of the "track":
+distance: 17597.984230898
+averageSpeed: 0.87508623724007
+averagePace: 1142.7445175619
+minAltitude: 1060.03
+maxAltitude: 1931.62
+cumulativeElevationGain: 1577.43
+cumulativeElevationLoss: 1604.36
+startedAt: DateTime @1604220199 {#4201 ▶}
+finishedAt: DateTime @1604240309 {#11583 ▶}
+duration: 20110
With classic call:
$gpx = new phpGPX();
$fileData = $gpx::load($filePath);
But good data for elevation gain must be: 932m (on alltrails.com) or 958m (on wikiloc.com)
You can see it here => https://www.alltrails.com/fr/explore/recording/grand-paradis-to-col-de-coux-circular-019fa4f
I have same result ok like "alltrails" when uploading my gpx point here on an other website => https://fr.wikiloc.com
ps: I think they can detect mis
gpx_file.zip
sing parts but do not know where :D
- Library version or last commit you have : 1.1.3
- PHP version you use: 7.4