Show / Hide Table of Contents

Class RouteLegStep

Contains a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A step corresponds to a single navigation instruction. Route legs are made up of steps.

Inheritance
object
RouteLegStep
Implements
IMessage<RouteLegStep>
IEquatable<RouteLegStep>
IDeepCloneable<RouteLegStep>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.Routing.V2
Assembly: Google.Maps.Routing.V2.dll
Syntax
public sealed class RouteLegStep : IMessage<RouteLegStep>, IEquatable<RouteLegStep>, IDeepCloneable<RouteLegStep>, IBufferMessage, IMessage

Constructors

RouteLegStep()

Declaration
public RouteLegStep()

RouteLegStep(RouteLegStep)

Declaration
public RouteLegStep(RouteLegStep other)
Parameters
Type Name Description
RouteLegStep other

Properties

DistanceMeters

The travel distance of this step, in meters. In some circumstances, this field might not have a value.

Declaration
public int DistanceMeters { get; set; }
Property Value
Type Description
int

EndLocation

The end location of this step.

Declaration
public Location EndLocation { get; set; }
Property Value
Type Description
Location

LocalizedValues

Text representations of properties of the RouteLegStep.

Declaration
public RouteLegStep.Types.RouteLegStepLocalizedValues LocalizedValues { get; set; }
Property Value
Type Description
RouteLegStep.Types.RouteLegStepLocalizedValues

NavigationInstruction

Navigation instructions.

Declaration
public NavigationInstruction NavigationInstruction { get; set; }
Property Value
Type Description
NavigationInstruction

Polyline

The polyline associated with this step.

Declaration
public Polyline Polyline { get; set; }
Property Value
Type Description
Polyline

StartLocation

The start location of this step.

Declaration
public Location StartLocation { get; set; }
Property Value
Type Description
Location

StaticDuration

The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.

Declaration
public Duration StaticDuration { get; set; }
Property Value
Type Description
Duration

TransitDetails

Details pertaining to this step if the travel mode is TRANSIT.

Declaration
public RouteLegStepTransitDetails TransitDetails { get; set; }
Property Value
Type Description
RouteLegStepTransitDetails

TravelAdvisory

Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.

Declaration
public RouteLegStepTravelAdvisory TravelAdvisory { get; set; }
Property Value
Type Description
RouteLegStepTravelAdvisory

TravelMode

The travel mode used for this step.

Declaration
public RouteTravelMode TravelMode { get; set; }
Property Value
Type Description
RouteTravelMode
In this article
Back to top Generated by DocFX