Builder

class Builder(geometry: String, legs: List<RouteLeg>, distance: Double, duration: Double)

Builder class for creating DirectionsRoute instances.

Parameters

geometry

Gives the geometry of the route.

legs

A Leg is a route between only two waypoints.

distance

The distance traveled from origin to destination.

duration

The estimated travel time from origin to destination.

Constructors

Link copied to clipboard
constructor(geometry: String, legs: List<RouteLeg>, distance: Double, duration: Double)

Functions

Link copied to clipboard

Builds a DirectionsRoute instance with the current builder values.

Link copied to clipboard

Sets the typical duration.

Link copied to clipboard

Sets the route options.

Link copied to clipboard

Sets the voice language.

Link copied to clipboard

Sets the weight.

Link copied to clipboard

Sets the weight name.