ClimbSection class Route

Climb section describing an ascending segment of the route.

A climb section contains the start/end distances (meters), the average slope and a Grade classification. These objects are returned by RouteTerrainProfile.climbSections.

Example

for (final ClimbSection c in profile.climbSections) {
  print('Climb ${c.grade} from ${c.startDistanceM} to ${c.endDistanceM}');
}

Also see:

Constructors

ClimbSection({required int startDistanceM, required int endDistanceM, required double slope, required Grade grade})
Creates a climb section.

Properties

endDistanceM int
Distance in meters where this section ends.
getter/setter pair
grade Grade
The difficulty grade for this climb section.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slope double
Average slope for the section (percent or fraction as used by the SDK).
getter/setter pair
startDistanceM int
Distance in meters where this section starts.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant ClimbSection other) bool
The equality operator.
override