Builder
A builder used to create instance of MapboxRouteLineApiOptions.
Constructors
Functions
Builds an instance of MapboxRouteLineApiOptions.
Indicates if the route line will display restricted road sections with a dashed line. Note that in order for restricted sections to be displayed, you also need to set MapboxRouteLineViewOptions.displayRestrictedRoadSections to true for those views that will display restricted sections. Set MapboxRouteLineApiOptions.calculateRestrictedRoadSections to true if at least one of your views will display them.
The range for heavy traffic congestion
The range for low traffic congestion
The range for moderate traffic congestion
The range for severe traffic congestion
Enabling this feature will change the color of the route legs that aren't currently being navigated. See RouteLineColorResources to specify the color used. Enabling this feature when vanishingRouteLineEnabled is true can have negative performance implications, especially for long routes.
For map styles that have been configured to substitute the low traffic congestion color for unknown traffic conditions for specified road classes, the same road classes can be specified here to make the same substitution on the route line.
Indicates if the vanishing route line feature is enabled.
Can be used to decrease the frequency of the vanishing route line updates improving the performance at the expense of visual appearance of the vanishing point on the line during navigation.