Package-level declarations

Includes the interface for the Autocomplete API, alongside associated options, response data classes, and the callback interface.

Types

Link copied to clipboard

Callback that reports when AutocompleteResponse or SearchFailure is received. Used with an asynchronous autocomplete search request.

Link copied to clipboard
data class AutocompleteOptions(val query: String, val locale: Locale = Locale.getDefault(), @IntRange(from = 1, to = 10) val limit: Int = DEFAULT_LIMIT, val position: GeoPoint? = null, val radius: Distance? = null, val countries: Set<String> = emptySet(), val resultTypes: Set<AutoCompleteResultType> = emptySet(), val sessionId: UUID? = null)

Used for building an Autocomplete search request. Contains the parameters to use in an autocomplete search.

Link copied to clipboard
data class AutocompleteResponse(val summary: AutocompleteSummary, val results: List<AutocompleteResult> = emptyList())

Response of the Autocomplete Search API. Delivered synchronously as a Result or asynchronously via AutocompleteCallback.