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

Optional distance

distance?: Distance

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

Optional duration

duration?: 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

encoded_lat_lngs: string

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

end_location

end_location: LatLng

The ending location of this step.

end_point

end_point: LatLng

The ending location of this step.

deprecated

Please use google.maps.DirectionsStep.end_location.

instructions

instructions: string

Instructions for this step.

lat_lngs

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

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

path: LatLng[]

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

Optional polyline

polyline?: DirectionsStep[]

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

start_location: LatLng

The starting location of this step.

start_point

start_point: LatLng

The starting location of this step.

deprecated

Please use google.maps.DirectionsStep.start_location.

Optional steps

steps?: DirectionsStep[]

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

Optional transit

transit?: TransitDetails

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

Optional transit_details

transit_details?: TransitDetails

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

travel_mode

travel_mode: TravelMode

The mode of travel used in this step.

Generated using TypeDoc