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

Types

Link copied to clipboard
interface SearchCallback : Callback<SearchResponse, SearchError>

Callback that reports when a SearchResponse or SearchError has been received..

Link copied to clipboard
data class SearchOptions(    val query: String = "",     @IntRange(from = 1, to = 100) val limit: Int = 10,     @IntRange(from = 0, to = 1900) val offset: Int = 0,     val countryCodeSet: Set<String> = emptySet(),     val geoBias: GeoCoordinate? = null,     val searchAreas: Set<Geometry> = emptySet(),     val locale: Locale? = null,     @IntRange(from = 1, to = 4) val fuzzyLevel: Int = 2,     val resultTypeSet: Set<ResultType> = setOf( ResultType.Poi, ResultType.Address, ResultType.Brand, ResultType.Category, ResultType.Street, ResultType.CrossStreet),     val categorySet: Set<TTomCategoryId> = emptySet(),     val brandSet: Set<Brand> = emptySet(),     val connectorSet: Set<ConnectorType> = emptySet(),     val minPowerKW: Double? = null,     val maxPowerKW: Double? = null,     val fuelSet: Set<FuelType> = emptySet(),     val geoPoliticalView: GeoPoliticalView? = null,     val openingHours: OpeningHoursMode? = null,     val sessionId: String = "")

Defines the parameters of a Fuzzy Search.

Link copied to clipboard
data class SearchResponse(val summary: SearchRequestSummary, val results: List<SearchResult>? = emptyList())

Response from the Fuzzy Search API.