SimulatedLocationManager
public class SimulatedLocationManager: NavigationLocationManager
The SimulatedLocationManager
class simulates location updates along a given route.
The route will be replaced upon a RouteControllerDidReroute
notification.
-
Specify the multiplier to use when calculating speed based on the RouteLeg’s
expectedSegmentTravelTimes
.Declaration
Swift
@objc public var speedMultiplier: Double = 1
-
Initalizes a new
SimulatedLocationManager
with the given route.Declaration
Swift
@objc public init(route: Route)
Parameters
route
The initial route.
Return Value
A
SimulatedLocationManager