AlternativeRouteDetectionStrategy
public struct AlternativeRouteDetectionStrategy
Options to configure fetching and detecting AlternativeRoute
s 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 moreAlternativeRoute
s should be made.Declaration
Swift
public enum RefreshOnEmpty
-
Creates new
AlternativeRouteDetectionStrategy
instance.Declaration
Swift
public init(refreshesAfterPassingDeviation: Bool = true, refreshesWhenNoAvailableAlternatives: RefreshOnEmpty = .noPeriodicRefresh)