Builder
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
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.