ElectronicHorizonOptions
public struct ElectronicHorizonOptions
Defines options for emitting Notification.Name.electronicHorizonDidUpdatePosition
, Notification.Name.electronicHorizonDidEnterRoadObject
, and Notification.Name.electronicHorizonDidExitRoadObject
notifications while a RouteController
or PassiveLocationDataSource
is active.
-
The minimum length of the electronic horizon ahead of the current position, measured in meters.
Declaration
Swift
public let length: CLLocationDistance
-
The number of levels of branches by which to expand the horizon.
A value of 0 results in only the most probable path (MPP). A value of 1 adds paths branching out directly from the MPP, a value of 2 adds paths branching out from those paths, and so on. Only 0, 1, and 2 are usable in terms of performance.
Declaration
Swift
public let expansionLevel: UInt
-
Minimum length of side branches, measured in meters.
Declaration
Swift
public let branchLength: CLLocationDistance
-
minimum time which should pass between consecutive navigation statuses to update electronic horizon (seconds) if null we update electronic horizon on each navigation status
Declaration
Swift
public let minimumTimeIntervalBetweenUpdates: TimeInterval?