Description:
Currently, the TrackPoint class provides various attributes related to location, altitude, speed, etc. However, it lacks a method to calculate the slope percentage between consecutive trackpoints. Adding a method to compute the slope percentage would allow us to get Slope Percentage information from a given segment (TrackPoint).
Proposed Solution:
Introduce a method getSlopePercentage() to the TrackPoint class that calculates the slope percentage between the current TrackPoint and the previous one. The slope percentage can be positive (for elevation gain) or negative (for elevation loss), indicating user activity (skiing / riding).
Description: Currently, the TrackPoint class provides various attributes related to location, altitude, speed, etc. However, it lacks a method to calculate the slope percentage between consecutive trackpoints. Adding a method to compute the slope percentage would allow us to get Slope Percentage information from a given segment (TrackPoint).
Proposed Solution: Introduce a method getSlopePercentage() to the TrackPoint class that calculates the slope percentage between the current TrackPoint and the previous one. The slope percentage can be positive (for elevation gain) or negative (for elevation loss), indicating user activity (skiing / riding).