Table of Contents

Class RouteLegStep

Namespace
GoogleMapsApi.Entities.Routes.Response
Assembly
GoogleMapsApi.dll

A single navigation step within a RouteLeg.

public sealed class RouteLegStep
Inheritance
RouteLegStep
Inherited Members

Properties

DistanceMeters

Distance covered by this step in meters.

[JsonPropertyName("distanceMeters")]
public int? DistanceMeters { get; set; }

Property Value

int?

EndLocation

End location of the step.

[JsonPropertyName("endLocation")]
public LegLocation? EndLocation { get; set; }

Property Value

LegLocation

NavigationInstruction

Navigation instruction for the step.

[JsonPropertyName("navigationInstruction")]
public NavigationInstruction? NavigationInstruction { get; set; }

Property Value

NavigationInstruction

Polyline

Polyline of this step.

[JsonPropertyName("polyline")]
public Polyline? Polyline { get; set; }

Property Value

Polyline

StartLocation

Start location of the step.

[JsonPropertyName("startLocation")]
public LegLocation? StartLocation { get; set; }

Property Value

LegLocation

StaticDuration

Static (traffic-free) duration of the step as a protobuf-duration string.

[JsonPropertyName("staticDuration")]
public string? StaticDuration { get; set; }

Property Value

string

StaticDurationSeconds

StaticDuration parsed to seconds.

[JsonIgnore]
public double? StaticDurationSeconds { get; }

Property Value

double?

TravelMode

Travel mode used for this step (relevant on transit/multi-modal routes).

[JsonPropertyName("travelMode")]
public RoutesTravelMode? TravelMode { get; set; }

Property Value

RoutesTravelMode?