MapDataStore
public protocol MapDataStore : PositionUpdateObserver
This protocol abstracts away access to and operations with an onboard map database.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Handler for the map data store access.
Declaration
Swift
var storeAccess: MapDataStoreAccess { get }
-
Synchronizes access to the map data.
Declaration
Swift
var sync: MapDataStoreAccessSyncing { get }
-
The geopolitical view of country in the ISO 3166-1 alpha-2 format.
Declaration
Swift
var geopoliticalView: String? { get }
-
Sets current position.
Declaration
Swift
override func setPosition(_ position: CLLocationCoordinate2D)
Parameters
position
New value for current position.
-
Sets the active route.
Note
Setting the active route triggers onboard NDS map update if along route update is enabled and the polyline differs from the previously set one.Declaration
Swift
override func setActiveRoute(_ polyline: [CLLocationCoordinate2D])
Parameters
polyline
The polyline representing the active route.