Contents

DirectionsResponse

An object that describes the directions from a starting location to a destination in terms routes, steps, and a series of waypoints.

Declaration

object DirectionsResponse

Properties

NameTypeDescription
destinationPlace

A Place object that describes the destination.

originPlace

A Place result that describes the origin.

routes[DirectionsResponse.Route]

An array of routes. Each route references steps based on indexes into the steps array.

stepPaths[Location]

An array of step paths across all steps across all routes. Each step path is a single polyline represented as an array of points. You reference the step paths by index into the array.

steps[DirectionsResponse.Step]

An array of all steps across all routes. You reference the route steps by index into this array. Each step in turn references its path based on indexes into the stepPaths array.

Topics

Steps and routes

See Also

Getting common object information