Contains an array of available travel modes. This field is returned when a request specifies a travel mode and gets no results. The array contains the available travel modes in the countries of the given set of waypoints. This field is not returned if one or more of the waypoints are 'via waypoints'.
An array of DirectionsGeocodedWaypoint
s, each of which
contains information about the geocoding of origin, destination and
waypoints.
The DirectionsRequest that yielded this result.
An array of DirectionsRoute
s, each of which contains
information about the legs and steps of which it is composed. There will
only be one route unless the DirectionsRequest
was made with
provideRouteAlternatives
set to true
.
Generated using TypeDoc
The directions response retrieved from the directions server. You can render these using a google.maps.DirectionsRenderer or parse this object and render it yourself. You must display the warnings and copyrights as noted in the Google Maps Platform Terms of Service. Note that though this result is "JSON-like," it is not strictly JSON, as it indirectly includes
LatLng
objects.