Builder

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

Builder class for creating RouteLeg instances.

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.

Constructors

Link copied to clipboard
constructor(distance: Double, duration: Double, steps: List<LegStep>)

Functions

Link copied to clipboard

Builds a RouteLeg instance with the current builder values.

Link copied to clipboard

Sets the admins.

Link copied to clipboard

Sets the annotation.

Link copied to clipboard

Sets the closures.

Link copied to clipboard

Sets the typical duration.

Link copied to clipboard

Sets the incidents.

Link copied to clipboard

Sets the summary.