NavigationTileStore
public final class NavigationTileStore : UpdatableDataStore
Implementation of a Data Store which is based on an online map. It requires a position around which the cloud data will be fetched.
Important
Only oneNavigationTileStore
existing at any given time is supported.
Instantiating multiple objects at the same time could yield unexpected results (including instability
and increased bandwidth usage). There is no substantial practical advantage in creating multiple
instances of this object. A single instance can be created and its reference can be shared across
all necessary components. Instantiate one and share the reference to it to all required places.
-
Creates an instance of NavigationTileStore.
Throws
NSError, if the tile store fails to instantiate due to an invalid configuration, I/O error or any other reason. Full details will be provided in the error description.
Declaration
Swift
public convenience init(config: NavigationTileStoreConfiguration) throws
Parameters
config
The configuration parameters needed for the congifuring the store.
-
Sets current position around which cloud data will be fetched.
Declaration
Swift
public func updatePosition(_ position: CLLocationCoordinate2D)
-
Sets the active route around which cloud data will be fetched. If the route is longer than 35km, only the first 35km of the route will be used.
Declaration
Swift
public func updateActiveRoute(_ polyline: [CLLocationCoordinate2D])
Parameters
polyline
The polyline representing the active route.