Class Segment
- Namespace
- Tudormobile.Strava.Model
- Assembly
- Tudormobile.Strava.dll
Represents a Strava segment, which is a specific section of a route defined by a start and end point.
public class Segment
- Inheritance
-
Segment
- Derived
- Inherited Members
Properties
ActivityType
Gets or sets the type of activity for which this segment is designed (e.g., "Ride", "Run").
public string ActivityType { get; set; }
Property Value
AverageGrade
Gets or sets the average grade (steepness) of the segment as a percentage.
public float AverageGrade { get; set; }
Property Value
Remarks
Positive values indicate uphill, negative values indicate downhill.
City
Gets or sets the city where the segment is located.
public string? City { get; set; }
Property Value
ClimbCategory
Gets or sets the climb category of the segment.
public int ClimbCategory { get; set; }
Property Value
Remarks
Categories typically range from 0 (no significant climb) to 5 (hors catégorie - beyond categorization). Higher numbers indicate more difficult climbs.
Country
Gets or sets the country where the segment is located.
public string? Country { get; set; }
Property Value
Distance
Gets or sets the distance of the segment in meters.
public float Distance { get; set; }
Property Value
ElevationHigh
Gets or sets the highest elevation point on the segment in meters.
public float ElevationHigh { get; set; }
Property Value
ElevationLow
Gets or sets the lowest elevation point on the segment in meters.
public float ElevationLow { get; set; }
Property Value
EndLatlng
Gets or sets the geographic coordinates of the segment end point.
public LatLng EndLatlng { get; set; }
Property Value
Hazardous
Gets or sets a value indicating whether this segment has been flagged as hazardous.
public bool Hazardous { get; set; }
Property Value
Id
Gets or sets the unique identifier of the segment.
public long Id { get; set; }
Property Value
MaximumGrade
Gets or sets the maximum grade (steepest point) of the segment as a percentage.
public float MaximumGrade { get; set; }
Property Value
Name
Gets or sets the name of the segment.
public string Name { get; set; }
Property Value
Private
Gets or sets a value indicating whether this segment is private (visible only to the creator).
public bool Private { get; set; }
Property Value
ResourceState
Gets or sets the resource state indicating the level of detail available for this segment.
public ResourceStates ResourceState { get; set; }
Property Value
Starred
Gets or sets a value indicating whether the authenticated athlete has starred (favorited) this segment.
public bool Starred { get; set; }
Property Value
StartLatlng
Gets or sets the geographic coordinates of the segment start point.
public LatLng StartLatlng { get; set; }
Property Value
State
Gets or sets the state or region where the segment is located.
public string? State { get; set; }