ClimbSection class
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:
- RouteTerrainProfile.climbSections - List of climb sections for a route
- Grade - Climb difficulty categories
Constructors
- ClimbSection({required int startDistanceM, required int endDistanceM, required double slope, required Grade grade})
- Creates a climb section.
-
ClimbSection.fromJson(Map<
String, dynamic> json) -
Deserializes a JSON-compatible map to create an instance.
factory
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
-
toJson(
) → Map< String, dynamic> - Serializes this instance to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
covariant ClimbSection other) → bool -
The equality operator.
override