Package com.tomtom.sdk.search.client.autocomplete

Types

Link copied to clipboard

Callback that reports when AutocompleteSearchResponse or AutocompleteSearchError is received.

Link copied to clipboard
class AutocompleteSearchError(val message: String = "") : SearchError

Exception thrown when a request to the Autocomplete Search API goes wrong. It contains information about the cause of the failure.

Link copied to clipboard
data class AutocompleteSearchOptions(    val query: String,     val language: String,     val limit: Int? = null,     val position: GeoCoordinate? = null,     val radius: Int? = null,     val countryCodes: Set<String>,     val resultTypes: Set<String>)

Contains the parameters to use in an autocomplete search. Use the AutocompleteSearchOptions.Builder to create a new instance of the object.

Link copied to clipboard
data class AutocompleteSearchResponse(val context: AutocompleteSummary, val results: List<AutocompleteResults> = emptyList())

Response of the Autocomplete Search API.