Other Global Variables
The following global variables are available globally.
-
Key used for accessing a
Boolas to whether the reroute occurced because a faster route was found.Declaration
Swift
public let RouteControllerDidFindFasterRouteKey = MBRouteControllerDidFindFasterRouteKey -
Remaing distance on a motorway at which the
AlertLevel.highAlertLevelwill be given. This overridesRouteControllerHighAlertIntervalonly when the current step is a motorway. Default value is a half mile.Declaration
Swift
public var RouteControllerMotorwayHighAlertDistance: CLLocationDistance = 0.5 * milesToMeters -
Remaing distance on a motorway at which the
AlertLevel.mediumAlertLevelwill be given. This overridesRouteControllerMediumAlertIntervalonly when the current step is a motorway. Defauly value is 2 miles.Declaration
Swift
public var RouteControllerMotorwayMediumAlertDistance: CLLocationDistance = 2 * milesToMeters -
:nodoc This is used internally for debugging metrics
Declaration
Swift
public var NavigationMetricsDebugLoggingEnabled = "MBNavigationMetricsDebugLoggingEnabled" -
The mimimum speed value before the user is snapped to the route. This is used to overcome inaccurate course values when a user’s speed is low.
Declaration
Swift
public var RouteControllerMinimumSpeedThresholdForSnappingUserToRoute: CLLocationSpeed = 2
Install in Dash
Other Global Variables Reference