MapboxRouteLineApiOptions

class MapboxRouteLineApiOptions

Options for configuration of MapboxRouteLineApi.

Parameters

lowCongestionRange

the range for low congestion traffic

moderateCongestionRange

the range for moderate congestion traffic

heavyCongestionRange

the range for heavy congestion traffic

severeCongestionRange

the range for severe congestion traffic

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.

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
fun toBuilder(): MapboxRouteLineApiOptions.Builder

Creates a builder matching this instance.

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

Returns a string representation of the object.

Properties

Link copied to clipboard
val calculateRestrictedRoadSections: Boolean
Link copied to clipboard
val heavyCongestionRange: IntRange
Link copied to clipboard
val lowCongestionRange: IntRange
Link copied to clipboard
val moderateCongestionRange: IntRange
Link copied to clipboard
val severeCongestionRange: IntRange
Link copied to clipboard
val styleInactiveRouteLegsIndependently: Boolean
Link copied to clipboard
val trafficBackfillRoadClasses: List<String>
Link copied to clipboard
val vanishingRouteLineEnabled: Boolean
Link copied to clipboard
val vanishingRouteLineUpdateIntervalNano: Long