Builder

class Builder

Builder class for creating LegAnnotation instances.

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.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Builds a LegAnnotation instance with the current builder values.

Link copied to clipboard

Sets the congestion.

Link copied to clipboard

Sets the distance.

Link copied to clipboard

Sets the duration.

Link copied to clipboard

Sets the max speed.

Link copied to clipboard

Sets the speed.