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.
-
Initalizes a new
SimulatedLocationManager
with the given route.Declaration
Swift
public init(route: Route)
Parameters
route
The initial route.
Return Value
A
SimulatedLocationManager
-
Initalizes a new
SimulatedLocationManager
with the given routeProgress.Declaration
Swift
public init(routeProgress: RouteProgress)
Parameters
routeProgress
The routeProgress of the current route.
Return Value
A
SimulatedLocationManager
-
Specify the multiplier to use when calculating speed based on the RouteLeg’s
expectedSegmentTravelTimes
.Important
ChangespeedMultiplier
only 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
public override var simulatesLocation: Bool { get set }