Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.29 KB

DirectionsResult.md

File metadata and controls

22 lines (12 loc) · 1.29 KB

See html formatted version

DirectionsResult interface

google.maps.DirectionsResult interface

The directions response retrieved from the directions server. You can render these using a 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.

Properties

undefined

Type:  Array<DirectionsGeocodedWaypoint>

An array of DirectionsGeocodedWaypoints, each of which contains information about the geocoding of origin, destination and waypoints.

undefined

Type:  Array<DirectionsRoute>

An array of DirectionsRoutes, 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.