calculateRestrictedRoadSections
fun calculateRestrictedRoadSections(calculateRestrictedRoadSections: Boolean): MapboxRouteLineApiOptions.Builder
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.
Return
the builder
Parameters
calculateRestrictedRoadSections
whether the data for restricted sections should be calculated