Open
Description
I think there's a bug in Frontend which was initially mentioned in #129: the calculation of elevation gain/loss is wrong.
The data hereunder is for this portion of the map in which Frontend says +794m and - 899m
This is a route taken with one of our qtripp devices which reports OwnTracks data. The data is obtained with the Recorder API:
$ curl -sSf 'http://127.0.0.1:8083/api/0/locations?from=2024-11-09T10%3A00%3A00&to=2024-11-09T11%3A00%3A59&user=qtripp&device=redacted'| gron | egrep -v 'driver|plate|odometer|cid|count|din[12]|dout[12]|fake|ign|mcc|mnc|motion|rid|rit|rty|sen[st]|tow' | gron -u | jq . > data.json
data for the 252 positions attached in next comment.
$ gron data.json | grep alt | awk -F '[=;]' '{print $2 }' | sort -n
23.4
...
131.2
The Booklet specifies alt
(altitude) is optional, but it appears as though a value of 0 is assumed if not available. In spite of that, there must be something else wrong, as this particular data set has an alt
itude on each position.
Frontend: 2.15.3
Recorder: 0.9.9
Activity