Directions Route
Detailed information about an individual route such as the duration, distance and geometry.
Since
1.0.0
Constructors
Types
Properties
The typical travel time from this route's origin to destination. There's a delay along this route if you subtract this durationTypical() value from the route's duration() value and the resulting difference is greater than 0. The delay is because of any number of real-world situations (road repair, traffic jam, etc).
Holds onto the parameter information used when making the directions request. Useful for re-requesting a directions route using the same information previously used.
String of the language to be used for voice instructions. Defaults to en, and can be any accepted instruction language. Will be null when the language provided MapboxDirections.Builder#language() via is not compatible with API Voice.
The name of the weight profile used while calculating during extraction phase. The default is routability which is duration based, with additional penalties for less desirable maneuvers.