NavigationTileStoreConfiguration
public struct NavigationTileStoreConfiguration
Configuration parameters for a NavigationTileStore
.
It can configure navigation tiles language, caching and prefetching mechanisms
that will make system more or less robust to temporary unavailability of the map data source,
but at a greater memory and bandwidth cost.
Token, or key, to use to authenticate to the cloud service.
Declaration
Swift
public var apiKey: String
A URL describing the location of the navigation tile cloud service.
The parameter defaults to Defaults.baseURL
.
Declaration
Swift
public var baseURL: URL
Configuration for caching mechanism. It configures the size of the in-memory tile store and the persistent store.
Declaration
Swift
public var cachingConfiguration: CachingConfiguration
Default value constants for NavigationTileStoreConfiguration
parameters.
Declaration
Swift
public enum Defaults
Creates an instance of NavigationTileStoreConfiguration.
Declaration
Swift
public init(
apiKey: String,
baseURL: URL = Defaults.baseURL,
initialLanguage: Locale = Locale.current,
cachingConfiguration: CachingConfiguration = .init(),
prefetchingConfiguration: PrefetchingConfiguration = .init()
)
Parameters
apiKey
|
Token, or key, to use to authenticate to the cloud service. |
baseURL
|
A URL describing the location of the navigation tile cloud service. |
initialLanguage
|
Language to use for the navigation tiles. The parameter defaults to the user’s preferred locale. |
cachingConfiguration
|
Configuration for caching mechanism. It configures the size of the in-memory tile store and the persistent store. |
prefetchingConfiguration
|
Configuration for navigation map data prefetching mechanism. It defines area around the current position or around the active route for which navigation map data is prefetched and kept available. |
Language to use for the navigation tiles.
The parameter defaults to the current locale of the device.
Declaration
Swift
public var initialLanguage: Locale
Configuration for navigation map data prefetching mechanism. It defines area around the current position or around the active route for which navigation map data is prefetched and kept available.
Declaration
Swift
public var prefetchingConfiguration: PrefetchingConfiguration