AlternativeRouteDetectionStrategy
public struct AlternativeRouteDetectionStrategy
Options to configure fetching and detecting AlternativeRoutes during navigation.
-
Enables requesting for new alternative routes after passing a fork (intersection) where another alternative route branches.
Default value is
true.Declaration
Swift
public var refreshesAfterPassingDeviation: Bool -
Enables periodic requests when there are no known alternative routes yet.
Default value is
noPeriodicRefresh.Declaration
Swift
public var refreshesWhenNoAvailableAlternatives: RefreshOnEmpty -
Describes how periodic requests for
See moreAlternativeRoutes should be made.Declaration
Swift
public enum RefreshOnEmpty -
Creates new
AlternativeRouteDetectionStrategyinstance.Declaration
Swift
public init(refreshesAfterPassingDeviation: Bool = true, refreshesWhenNoAvailableAlternatives: RefreshOnEmpty = .noPeriodicRefresh)
Install in Dash
AlternativeRouteDetectionStrategy Structure Reference