This PR adds a class that calculates the total distance skied and which will be used by the UI.
The TrackDistanceSkeid class is responsible for calculating the distance skied from every track.
It analyzes the altitude, longitude, and latitude changes of track points to identify upward movements as ski lifts and downward movements as ski runs.
It also utilizes the enum status of TrackPoint to determine if in idle status.
Link to the the issue
https://github.com/rilling/OpenTracks-Winter-SOEN-6431_2024/issues/59
License agreement
By opening this pull request, you are providing your contribution under the Apache License 2.0 (see LICENSE.md).
Note: new dependencies/libraries
Please refrain from introducing new libraries without consulting the team.
Describe the pull request
This PR adds a class that calculates the total distance skied and which will be used by the UI.
The TrackDistanceSkeid class is responsible for calculating the distance skied from every track. It analyzes the altitude, longitude, and latitude changes of track points to identify upward movements as ski lifts and downward movements as ski runs. It also utilizes the enum status of TrackPoint to determine if in idle status. Link to the the issue https://github.com/rilling/OpenTracks-Winter-SOEN-6431_2024/issues/59
License agreement By opening this pull request, you are providing your contribution under the Apache License 2.0 (see LICENSE.md).
Note: new dependencies/libraries Please refrain from introducing new libraries without consulting the team.