Builder

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

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.