Class Step
- Namespace
- Geotab.Checkmate.ObjectModel.Geographical
- Assembly
- Geotab.Checkmate.ObjectModel.dll
A single step in a sequence of step-by-step instructions to complete Leg of Directions.
[ReportClass]
public class Step : IDirectionsSequence, IDistanceDuration
- Inheritance
-
Step
- Implements
- Inherited Members
Constructors
Step()
Initializes a new instance of the Step class.
public Step()
Step(float?, in TimeSpan?, int?, string?)
Initializes a new instance of the Step class.
public Step(float? distance, in TimeSpan? duration, int? sequence, string? instructions)
Parameters
distance
float?The distance estimate.
duration
TimeSpan?The duration estimate.
sequence
int?The sequence.
instructions
stringThe instructions.
Properties
Distance
Gets or sets the distance estimate in kilometers for this step.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.RouteItemDistance }, IsSpeedOrDistance = true)]
public float? Distance { get; set; }
Property Value
Duration
Gets or sets the travel time duration estimate for this step.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.RouteItemDuration })]
public TimeSpan? Duration { get; set; }
Property Value
Instructions
Gets or sets the instructions for this step.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.RouteItemTurnText })]
public string? Instructions { get; set; }
Property Value
Sequence
Gets or sets the ordered sequence of this step.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.RouteItemTurnNumber })]
public int? Sequence { get; set; }