GPXParser.js icon indicating copy to clipboard operation
GPXParser.js copied to clipboard

Is the elevation calculation correct?

Open MarcoDuiker opened this issue 4 years ago • 1 comments

On this track, both my gps (straight from history) and strava (after import) report an elevation gain of 2011 meters. As the gps device has a barometric altitude sensor, I believe Strava is not applying any corrections. Gpx-parser reports 2465 meters in elevation.pos.

I see similar differences on other tracks as well, Gpx-parser consistently reports more elevation gain. Am I doing something wrong, or is the calculation off somehow?

MarcoDuiker avatar Oct 07 '21 10:10 MarcoDuiker

Basically, the calculation provided by GPXParser is correct mathematically. It's just that Strava, and others, use additional logic to get a more realistic number. Also, many of them throw out the elevation data recorded by devices without barometric sensors. Because determining elevation purely based on GPS data isn't super accurate. This is all explained a bit better in the link below.

Strava Elevation FAQs

I want to solve this issue on my own project, but haven't attempted to write my own code to do so yet. It doesn't seem like this project is going to get updated to be more accurate.

mporembs avatar May 26 '22 14:05 mporembs