SearchEngineSettings

class SearchEngineSettings @JvmOverloads() constructor(accessToken: String, locationEngine: LocationEngine, viewportProvider: ViewportProvider?, geocodingEndpointBaseUrl: String, singleBoxSearchBaseUrl: String?)

Settings used for SearchEngine configuration.

See also

Constructors

SearchEngineSettings
Link copied to clipboard
fun SearchEngineSettings(accessToken: String, locationEngine: LocationEngine = defaultLocationEngine(), viewportProvider: ViewportProvider? = null, geocodingEndpointBaseUrl: String = DEFAULT_ENDPOINT_GEOCODING, singleBoxSearchBaseUrl: String? = null)

Types

Builder
Link copied to clipboard
class Builder(accessToken: String)

Functions

copy
Link copied to clipboard
fun copy(accessToken: String = this.accessToken, locationEngine: LocationEngine = this.locationEngine, viewportProvider: ViewportProvider? = this.viewportProvider, geocodingEndpointBaseUrl: String = this.geocodingEndpointBaseUrl, singleBoxSearchBaseUrl: String? = this.singleBoxSearchBaseUrl): SearchEngineSettings
Creates a copy of this object with overridden parameters.
toBuilder
Link copied to clipboard
fun toBuilder(): SearchEngineSettings.Builder
Creates a new SearchEngineSettings.Builder from this instance.

Properties

accessToken
Link copied to clipboard
val accessToken: String
geocodingEndpointBaseUrl
Link copied to clipboard
val geocodingEndpointBaseUrl: String
Geocoding API endpoint URL.
locationEngine
Link copied to clipboard
val locationEngine: LocationEngine
The mechanism responsible for providing location approximations to the SDK.
singleBoxSearchBaseUrl
Link copied to clipboard
val singleBoxSearchBaseUrl: String? = null
Single Box Search endpoint URL.
viewportProvider
Link copied to clipboard
val viewportProvider: ViewportProvider? = null
Viewport provider instance.