This is the main entry point for this module. It goes through the
elevation data for a ride and creates lists of processed data. It returns
the data as a single dictionary describing the overall ride and a list of
dictionaries that each describe a segment of the ride.
Each dictionary element in the segment list has the following
information:
-
id: id of segment
-
start_dist: distance in ride for starting point
-
end_dist: distance in ride for ending point
-
length: length of ride
-
net_height: net change in elevation over segment
-
rise_height: height of climbing in segment
-
rise_dist: distance spent climbing in segment
-
rise_grade: average grade of climbing in segment
-
fall_height: height of descending in segment
-
fall_dist: distance spent descending in segment
-
fall_grade: average grade of descending in segment
-
climbs: list with climbs, their grades, and their lengths in segment
The overall ride data is a dictionary with the following data:
-
length: length of ride
-
net_height: net change in elevation over ride
-
rise_height: height of climbing in ride
-
rise_dist: distance spent climbing in ride
-
rise_grade: average grade of climbing in ride
-
fall_height: height of descending in ride
-
fall_dist: distance spent descending in ride
-
fall_grade: average grade of descending in ride
-
climbs: list with climbs, their grades, and their lengths in ride
- Parameters:
ride (Ride) - ride to process
- Returns:
dict , list of dict
- ride data, list of segment data
|