Table of Contents

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

string

AverageGrade

Gets or sets the average grade (steepness) of the segment as a percentage.

public float AverageGrade { get; set; }

Property Value

float

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

string

ClimbCategory

Gets or sets the climb category of the segment.

public int ClimbCategory { get; set; }

Property Value

int

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

string

Distance

Gets or sets the distance of the segment in meters.

public float Distance { get; set; }

Property Value

float

ElevationHigh

Gets or sets the highest elevation point on the segment in meters.

public float ElevationHigh { get; set; }

Property Value

float

ElevationLow

Gets or sets the lowest elevation point on the segment in meters.

public float ElevationLow { get; set; }

Property Value

float

EndLatlng

Gets or sets the geographic coordinates of the segment end point.

public LatLng EndLatlng { get; set; }

Property Value

LatLng

Hazardous

Gets or sets a value indicating whether this segment has been flagged as hazardous.

public bool Hazardous { get; set; }

Property Value

bool

Id

Gets or sets the unique identifier of the segment.

public long Id { get; set; }

Property Value

long

MaximumGrade

Gets or sets the maximum grade (steepest point) of the segment as a percentage.

public float MaximumGrade { get; set; }

Property Value

float

Name

Gets or sets the name of the segment.

public string Name { get; set; }

Property Value

string

Private

Gets or sets a value indicating whether this segment is private (visible only to the creator).

public bool Private { get; set; }

Property Value

bool

ResourceState

Gets or sets the resource state indicating the level of detail available for this segment.

public ResourceStates ResourceState { get; set; }

Property Value

ResourceStates

Starred

Gets or sets a value indicating whether the authenticated athlete has starred (favorited) this segment.

public bool Starred { get; set; }

Property Value

bool

StartLatlng

Gets or sets the geographic coordinates of the segment start point.

public LatLng StartLatlng { get; set; }

Property Value

LatLng

State

Gets or sets the state or region where the segment is located.

public string? State { get; set; }

Property Value

string