MapboxRouteLineApiOptions

Options for configuration of MapboxRouteLineApi.

Parameters

lowCongestionRange

the range for low congestion traffic, should be aligned with TrafficOverrideOptions.lowCongestionRange

moderateCongestionRange

the range for moderate congestion traffic, should be aligned with TrafficOverrideOptions.moderateCongestionRange

heavyCongestionRange

the range for heavy congestion traffic, should be aligned with TrafficOverrideOptions.heavyCongestionRange

severeCongestionRange

the range for severe congestion traffic, should be aligned with TrafficOverrideOptions.severeCongestionRange

trafficBackfillRoadClasses

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

calculateRestrictedRoadSections

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.

styleInactiveRouteLegsIndependently

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.

vanishingRouteLineEnabled

indicates if the vanishing route line feature is enabled

vanishingRouteLineUpdateIntervalNano

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.

Types

Link copied to clipboard
class Builder

A builder used to create instance of MapboxRouteLineApiOptions.

Properties

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard

Creates a builder matching this instance.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.