Skip to end of metadata
Go to start of metadata

Each element in the steps array defines a single step of the calculated directions. A step is the most atomic unit of a direction's route, containing a single step describing a specific, single instruction on the journey. E.g. "Turn left at W. 4th St." The step not only describes the instruction but also contains distance and duration information relating to how this step relates to the following step. For example, a step denoted as "Merge onto I-80 West" may contain a duration of "37 miles" and "40 minutes," indicating that the next step is 37 miles/40 minutes from this step.

Definition

public class Step

Summary

The following table summarizes the members exposed in this class.

Public Constructors

Step Constructor() Initializes a new instance of the Step class.

Public Properties

Distance distance contains the distance covered by this step until the next step. (See the discussion of this field in Directions Legs above.) This field may be undefined if the distance is unknown.
Duration duration contains the typical time required to perform the step, until the next step (See the description in Directions Legs above.) This field may be undefined if the duration is unknown.
EndLocation end_location contains the location of the starting point of this step, as a single set of lat and lng fields.
HtmlInstructions html_instructions contains formatted instructions for this step, presented as an HTML text string.
PolyLine Contains an object holding an array of encoded points that represent an approximate (smoothed) path of the resulting directions.
StartLocation start_location contains the location of the starting point of this step, as a single set of lat and lng fields.
SubSteps Contains detailed directions for walking or driving steps in transit directions. Substeps are only available when TravelMode is set to Transit. * NOTE : Google documentations states that it should be 'sub_steps' but implemented as 'steps' so we use the actual implementation
TransitDetails More information about the step. Only avaliable when TravelMode = Transit
TravelMode Gets the mode of transportation used in this step

Public Constructors

public Step()

Public Properties

public Distance Distance { get; set; }

distance contains the distance covered by this step until the next step. (See the discussion of this field in Directions Legs above.) This field may be undefined if the distance is unknown.

public Duration Duration { get; set; }

duration contains the typical time required to perform the step, until the next step (See the description in Directions Legs above.) This field may be undefined if the duration is unknown.

public Location EndLocation { get; set; }

end_location contains the location of the starting point of this step, as a single set of lat and lng fields.

public string HtmlInstructions { get; set; }

html_instructions contains formatted instructions for this step, presented as an HTML text string.

public OverviewPolyline PolyLine { get; set; }

Contains an object holding an array of encoded points that represent an approximate (smoothed) path of the resulting directions.

public Location StartLocation { get; set; }

start_location contains the location of the starting point of this step, as a single set of lat and lng fields.

public List<Step> SubSteps { get; set; }

Contains detailed directions for walking or driving steps in transit directions. Substeps are only available when TravelMode is set to Transit. * NOTE : Google documentations states that it should be 'sub_steps' but implemented as 'steps' so we use the actual implementation

public TransitDetails TransitDetails { get; set; }

More information about the step. Only avaliable when TravelMode = Transit

public TravelMode TravelMode { get; set; }

Gets the mode of transportation used in this step

  • No labels