RouteReplannerConfiguration

data class RouteReplannerConfiguration(val pointDifferenceThreshold: Distance = DEFAULT_POINT_DIFFERENCE_THRESHOLD_DISTANCE, val pointDifferenceNumberThreshold: Int = DEFAULT_POINT_DIFFERENCE_NUMBER_THRESHOLD)

Defines the configuration for the RouteReplanner.

The RouteReplannerConfiguration contains threshold settings that determine the validity of a route during the route refreshing process. It specifies how much deviation is acceptable between the current route and a potential route update before the route update is considered invalid.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

pointDifferenceThreshold

Maximum difference allowed between corresponding points in routes being compared. Points that differ by more than this value are considered invalid.

pointDifferenceNumberThreshold

Maximum number of points that can differ between the current and compared routes by more than the pointDifferenceThreshold. Fetched routes that exceed the threshold will be considered invalid and the route will not be replanned.

Constructors

Link copied to clipboard
constructor(pointDifferenceThreshold: Distance = DEFAULT_POINT_DIFFERENCE_THRESHOLD_DISTANCE, pointDifferenceNumberThreshold: Int = DEFAULT_POINT_DIFFERENCE_NUMBER_THRESHOLD)

Types

Link copied to clipboard
object Companion

Functions

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