NavigationTileStoreConfiguration

class NavigationTileStoreConfiguration(val apiKey: String, val baseUrl: URL = NAVIGATION_TILES_BASE_URL, val initialLanguage: Locale = LocaleProvider.preferredLocale(), val cachingConfiguration: CachingConfiguration = DEFAULT_CACHING_CONFIGURATION, val prefetchingConfiguration: PrefetchingConfiguration = DEFAULT_PREFETCHING_CONFIGURATION)

Configuration parameters for a NavigationTileStore. It can configure the language of navigation tiles, as well as caching and prefetching mechanisms. These adjustments make the system more or less robust against temporary unavailability of the map data source, but they also increase memory and bandwidth costs.

Constructors

Link copied to clipboard
constructor(apiKey: String, baseUrl: URL = NAVIGATION_TILES_BASE_URL, initialLanguage: Locale = LocaleProvider.preferredLocale(), cachingConfiguration: CachingConfiguration = DEFAULT_CACHING_CONFIGURATION, prefetchingConfiguration: PrefetchingConfiguration = DEFAULT_PREFETCHING_CONFIGURATION)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Token, or key, to use to authenticate to the cloud service.

Link copied to clipboard

A URL describing the location of the navigation tile cloud service.

Link copied to clipboard

Configuration for caching mechanism. It configures the size of the in-memory tile store and the persistent cache.

Link copied to clipboard

Language to use for the navigation tiles. The parameter defaults to the user's preferred locale.

Link copied to clipboard

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.

Functions

Link copied to clipboard
fun copy(apiKey: String = this.apiKey, baseUrl: URL = this.baseUrl, initialLanguage: Locale = this.initialLanguage, cachingConfiguration: CachingConfiguration = this.cachingConfiguration, prefetchingConfiguration: PrefetchingConfiguration = this.prefetchingConfiguration): NavigationTileStoreConfiguration

Creates a copy of this NavigationTileStoreConfiguration object with optional parameter overrides.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this NavigationTileStoreConfiguration object is equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for this NavigationTileStoreConfiguration object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.