The distance covered by this step. This property may be
undefined
as the distance may be unknown.
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.
An encoded polyline representation of the step. This is an approximate (smoothed) path of the step.
The ending location of this step.
The ending location of this step.
Instructions for this step.
A sequence of LatLng
s describing the course of this step.
This is an approximate (smoothed) path of the step.
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.
A sequence of LatLng
s 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.
The starting location of this step.
The starting location of this step.
Sub-steps of this step. Specified for non-transit sections of transit routes.
Transit-specific details about this step. This property will be undefined
unless the travel mode of this step is TRANSIT
.
Details pertaining to this step if the travel mode is
TRANSIT
.
The mode of travel used in this step.
Generated using TypeDoc
A single
DirectionsStep
in aDirectionsResult
. Some fields may beundefined
. Note that though this object is "JSON-like," it is not strictly JSON, as it directly includesLatLng
objects.