rilling / OpenTracks-Winter-SOEN-6431_2024

OpenTracks is a sport tracking application that completely respects your privacy. SOEN 6431
https://OpenTracksApp.com
Apache License 2.0
0 stars 65 forks source link

distance skied #174

Closed ruchitdobariya closed 5 months ago

ruchitdobariya commented 5 months ago

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.