SimulatedLocationProvider
public class SimulatedLocationProvider : ValidatingLocationProviderThe SimulatedLocationProvider provides simulated location updates to simulate driving on GPX/TTP tracks or route geometry.
When used in DefaultTomTomNavigation and it’s locations are generated from route geometry,
please also set the same location provider in TomTomMap.
If not, then the navigation experience might not be smooth.
Important
This is a Public Preview API. It may be changed or removed at any time.- 
                  
                  SimulatedLocationProviderinitializer.DeclarationSwift public convenience init(delay: Measurement<UnitDuration>?, adjustToCurrentTime: Bool = false)ParametersdelayThe delay between the location updates. A nilvalue means the usage of timestamps from TTP files instead.adjustToCurrentTimeWhether to adjust the timestamps to the current time upon update. falsewill use the timestamps from TTP files instead.
- 
                  
                  The last updated location. DeclarationSwift public private(set) var lastKnownLocation: GeoLocation? { get }
- 
                  
                  Defines the policy for validating incoming location updates. DeclarationSwift public var validationPolicy: LocationUpdateValidator
- 
                  
                  Enables generation of location updates. Note This does not stop any updates provided by other location engines.DeclarationSwift public func enable()
- 
                  
                  Disables generation of location updates. DeclarationSwift public func disable()
- 
                  
                  Important This is a Public Preview API. It may be changed or removed at any time.DeclarationSwift public func addObserver(_ observer: LocationUpdateObserver)
- 
                  
                  Important This is a Public Preview API. It may be changed or removed at any time.DeclarationSwift public func removeObserver(_ observer: LocationUpdateObserver)
- 
                  
                  Updates the simulated engine with an array of coordinates to use as simulated positions. DeclarationSwift public func updateCoordinates(_ coordinates: [CLLocationCoordinate2D], interpolate: Bool = true)ParameterscoordinatesArray of CLLocationCoordinate2Ds.interpolateFlag to toggle interpolation between coordinates in order to smooth out the simulation. 
- 
                  
                  Updates the simulated engine with a path to a GPX file containing a route track. DeclarationSwift public func updateCoordinatesFromGPXFile(path: String, interpolate: Bool = false)ParameterspathPath to the GPX file that will be used to retrieve the route geometry. interpolateFlag to toggle interpolation between coordinates in order to smooth out the simulation. 
- 
                  
                  Updates the simulated engine with a path to a TTP file containing a route track. Note SimulatedLocationProvidermust be initialized with anildelay in order to use this methodDeclarationSwift public func updateLocationsFromTTPFile(path: String, interpolate: Bool = false)ParameterspathPath to the TTP file that will be used to retrieve the route geometry. interpolateFlag to toggle interpolation between coordinates in order to smooth out the simulation. 
 
         TomTom SDK for iOS (0.53.1)
 
          TomTom SDK for iOS (0.53.1)
         SimulatedLocationProvider
          SimulatedLocationProvider