AutocompleteOptions
data class AutocompleteOptions(val query: String, val locale: Locale = Locale.getDefault(), @IntRange(from = 1, to = 10) val limit: Int = 5, val position: GeoPoint? = null, val radius: Distance? = null, val countries: Set<String> = emptySet(), val resultTypes: Set<AutoCompleteResultType> = emptySet(), val sessionId: UUID? = null)
Contains the parameters to use in an autocomplete search.
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Properties
Link copied to clipboard
Restricts the results to a specific result type. Valid result types are AutoCompleteResultType.Category and AutoCompleteResultType.Brand. An empty set implies restricting search results to both brand and category suggestions.
Link copied to clipboard