HybridNavigationDataStore
public final class HybridNavigationDataStore : UpdatableDataStore
Implementation of a Hybrid Data Store.
Important
This is a Public Preview API. It may be changed or removed at any time.Creates an object with associated tile and NDS stores.
Declaration
Swift
public init(tileStore: NavigationTileStore, ndsMapContext: NDSMapContext)
Parameters
tileStore
|
A |
ndsMapContext
|
An |
DataStore which is based on an onboard map.
Declaration
Swift
public var offlineDataStore: NDSStore { get }
DataStore which is based on streamed navigation tile data.
Declaration
Swift
public var onlineDataStore: NavigationTileStore { get }
Returns the preferred data source. The default value is .online
Declaration
Swift
public var preferredDataSource: NavigationDataSource { get set }
Sets the active route.
Declaration
Swift
public func updateActiveRoute(_ polyline: [CLLocationCoordinate2D])
Parameters
polyline
|
The polyline representing the active route. |
Update mode indicates which data store(s) will have updates triggered
Declaration
Swift
public var updateMode: DataStoreUpdateMode { get set }
Sets current position.
Declaration
Swift
public func updatePosition(_ position: CLLocationCoordinate2D)
Parameters
position
|
New value for current position. |