Builder

constructor()

Parameters

distance

The distance, in meters, between each pair of coordinates.

duration

The speed, in meters per second, between each pair of coordinates.

speed

The speed, in meters per second, between each pair of coordinates.

maxSpeed

The posted speed limit, between each pair of coordinates.

congestion

The congestion between each pair of coordinates.