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.

end_location

end_location: LatLng

The ending location of this step.

instructions

instructions: string

Instructions for this step.

path

path: LatLng[]

A sequence of LatLngs describing the course of this step.

start_location

start_location: LatLng

The starting location of this step.

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.

travel_mode

travel_mode: TravelMode

The mode of travel used in this step.

Generated using TypeDoc