SimulatedLocationManager
open class SimulatedLocationManager : NavigationLocationManager
The SimulatedLocationManager class simulates location updates along a given route.
The route will be replaced upon a RouteControllerDidReroute notification.
The manager calls delegate methods on a background thread.
-
Initializes a new
SimulatedLocationManagerwith the given route.Declaration
Swift
public convenience init(route: Route)Parameters
routeThe initial route.
Return Value
A
SimulatedLocationManager -
Initializes a new
SimulatedLocationManagerwith the given routeProgress.Declaration
Swift
public required convenience init(routeProgress: RouteProgress)Parameters
routeProgressThe routeProgress of the current route.
Return Value
A
SimulatedLocationManager -
Initializes a new
SimulatedLocationManagerDeclaration
Swift
public required init(route: Route, currentDistance: CLLocationDistance, currentSpeed: CLLocationSpeed)Parameters
routeThe initial route.
currentDistanceThe current distance in meters traveled along all legs.
currentSpeedThe current speed at which the device is moving in meters/second
Return Value
A
SimulatedLocationManager
-
Specify the multiplier to use when calculating speed based on the RouteLeg’s
expectedSegmentTravelTimes.Important
ChangespeedMultiplieronly if you are doing start-to-finish simulation. If, at some point, sped up (or slowed down) simulated location updates will be mixed with real world updates - navigator map matching may become inadequate.Declaration
Swift
public var speedMultiplier: Double { get set } -
Declaration
Swift
override open var location: CLLocation? { get set } -
Declaration
Swift
public override var simulatesLocation: Bool { get set } -
Declaration
Swift
override open func startUpdatingLocation() -
Declaration
Swift
override open func stopUpdatingLocation()
-
Declaration
Swift
open override func copy() -> Any
Install in Dash
SimulatedLocationManager Class Reference