StopOptions
public struct StopOptions
A struct containing information about the navigation stop options.
-
The boolean indicating whether the navigation manager should stop navigation when user has arrived close to the final destination. Default is true
To set stop threshold distance check stopDistanceThreshold option.
Declaration
Swift
public let stopWhenArrivedAtDestination: Bool
-
The distance measured in meters, indicating when the navigation manager considers that the user has arrived at the final destination. Default is 15 meters
Declaration
Swift
public let stopDistanceThreshold: CLLocationDistance
-
Initializes and returns a newly allocated stop options with the specified parameters.
Declaration
Swift
public init(stopWhenArrivedAtDestination: Bool = true, stopDistanceThreshold: CLLocationDistance = 15)
Parameters
stopWhenArrivedAtDestination
The boolean indicating whether the navigation manager should stop navigation when user has arrived close to the final destination. Default is true
stopDistanceThreshold
The distance measured in meters, indicating when the navigation manager considers that the user has arrived at the final destination. Default is 15 meters