Builder

constructor(distance: Double, duration: Double, steps: List<LegStep>)

Parameters

distance

The distance traveled from one waypoint to another.

duration

The estimated travel time from one waypoint to another.

steps

Gives a List including all the steps to get from one waypoint to another.