Contents

DirectionsResponse.Step

An object that represents a step along a route.

Declaration

object DirectionsResponse.Step

Properties

NameTypeDescription
distanceMetersinteger

Total distance covered by the step, in meters.

durationSecondsinteger

The estimated time to traverse this step, in seconds.

instructionsstring

The localized instruction string for this step that you can use for display purposes.

You can specify the language to receive the response in using the lang parameter.

stepPathIndexinteger

A pointer to this step’s path. The pointer is in the form of an index into the stepPaths array contained in a Route.

Step paths are self-contained which implies that the last point of a previous step path along a route is the same as the first point of the next step path. Clients are responsible for avoiding duplication when rendering the point.

transportTypestring

A string that indicates the transport type for this step if it’s different from the transportType in the route.

See Also

Steps and routes