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 countryCodes: Set<String> = emptySet(),     val geoBias: GeoCoordinate? = null,     @Size(min = 0, max = 50) val searchAreas: Set<Geometry> = emptySet(),     val locale: Locale? = null,     @IntRange(from = 1, to = 4) val fuzzyLevel: Int = 2,     val resultTypes: Set<ResultType> = emptySet(),     val categoryIds: Set<CategoryId> = emptySet(),     val brands: Set<Brand> = emptySet(),     val connectors: Set<ConnectorType> = emptySet(),     val minPowerKW: Double? = null,     val maxPowerKW: Double? = null,     val fuelTypes: Set<FuelType> = emptySet(),     val geoPoliticalView: GeoPoliticalView? = null,     val openingHoursMode: 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 Search API.