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.
-
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
apiKeyToken, or key, to use to authenticate to the cloud service.
baseURLA URL describing the location of the navigation tile cloud service.
initialLanguageLanguage to use for the navigation tiles. The parameter defaults to the user’s preferred locale.
cachingConfigurationConfiguration for caching mechanism. It configures the size of the in-memory tile store and the persistent store.
prefetchingConfigurationConfiguration 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.
-
Default value constants for
See moreNavigationTileStoreConfigurationparameters.Declaration
Swift
public enum Defaults -
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 -
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 caching mechanism. It configures the size of the in-memory tile store and the persistent store.
Declaration
Swift
public var cachingConfiguration: CachingConfiguration -
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
TomTom SDK for iOS (0.53.1)
NavigationTileStoreConfiguration