Options
All
  • Public
  • Public/Protected
  • All
Menu

A single DirectionsStep in a DirectionsResult. Some fields may be undefined. Note that though this object is "JSON-like," it is not strictly JSON, as it directly includes LatLng objects.

Hierarchy

  • DirectionsStep

Index

Properties

distance?: Distance

The distance covered by this step. This property may be undefined as the distance may be unknown.

duration?: google.maps.Duration

The typical time required to perform this step in seconds and in text form. This property may be undefined as the duration may be unknown.

encoded_lat_lngs: string

An encoded polyline representation of the step. This is an approximate (smoothed) path of the step.

end_location: LatLng

The ending location of this step.

end_point: LatLng

The ending location of this step.

deprecated

Please use google.maps.DirectionsStep.end_location.

instructions: string

Instructions for this step.

lat_lngs: LatLng[]

A sequence of LatLngs describing the course of this step. This is an approximate (smoothed) path of the step.

deprecated

Please use google.maps.DirectionsStep.path.

maneuver: string

Contains the action to take for the current step (turn-left, merge, straight, etc.). Values are subject to change, and new values may be introduced without prior notice.

path: LatLng[]

A sequence of LatLngs describing the course of this step. This is an approximate (smoothed) path of the step.

Contains an object with a single property, 'points', that holds an encoded polyline representation of the step. This polyline is an approximate (smoothed) path of the step.

deprecated

Please use google.maps.DirectionsStep.encoded_lat_lngs.

start_location: LatLng

The starting location of this step.

start_point: LatLng

The starting location of this step.

deprecated

Please use google.maps.DirectionsStep.start_location.

steps?: DirectionsStep[]

Sub-steps of this step. Specified for non-transit sections of transit routes.

transit?: TransitDetails

Transit-specific details about this step. This property will be undefined unless the travel mode of this step is TRANSIT.

transit_details?: TransitDetails

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

travel_mode: TravelMode

The mode of travel used in this step.

Generated using TypeDoc