RouteReplanningEngineOptions
public struct RouteReplanningEngineOptions
The options used for TomTomRouteReplanningEngine
configuration
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a new route replanning engine options instance.
Declaration
Swift
public init( routeUpdateMode: RouteUpdateMode = Defaults.routeUpdateMode, routeReplanInterval: Measurement<UnitDuration> = Defaults.replanInterval, minTrafficDelay: Measurement<UnitDuration> = Defaults.minTrafficDelay, minTimeDifference: Measurement<UnitDuration> = Defaults.minTimeDifference )
-
Defines default values for
See moreRouteReplanningEngineOptions
.Declaration
Swift
public enum Defaults
-
Specifies whether route updates are enabled or disabled.
Declaration
Swift
public let routeUpdateMode: RouteUpdateMode
-
A time interval
Declaration
Swift
public let routeReplanInterval: Measurement<UnitDuration>
-
The minimal traffic delay on the current route triggers looking for a better alternative.
Declaration
Swift
public let minTrafficDelay: Measurement<UnitDuration>
-
Measure how much faster the alternative route must be to be a replan proposal.
Declaration
Swift
public let minTimeDifference: Measurement<UnitDuration>