FuzzySearchOptions

data class FuzzySearchOptions(    val query: String,     val typeAhead: Boolean? = null,     @IntRange(from = 1, to = 100) val limit: Int? = null,     val offset: Int? = null,     val countrySet: Set<String>,     val position: GeoCoordinate? = null,     val radius: Int? = null,     val boundingBox: GeoBoundingBox? = null,     val language: String? = null,     val extendedPostalCodes: List<IndexType>,     val minFuzzyLevel: Int? = null,     val maxFuzzyLevel: Int? = null,     val idx: Set<IndexType>,     val categorySet: List<Long>,     val brandSet: List<String>,     val connectorSet: List<String>,     val minPowerKW: Double? = null,     val maxPowerKW: Double? = null,     val fuelSet: Set<FuelType>,     val geopoliticalView: String? = null,     val openingHours: OpeningHoursMode? = null,     val timeZone: TimeZoneType? = null,     val mapCodes: Set<MapCodeType>,     val relatedPois: RequestedPoiRelationType? = null,     val entityTypeSet: Set<EntityType>,     val category: Boolean?)

Defines the parameters of a Fuzzy Search. Use FuzzySearchOptions.Builder for create new instance of object.

Parameters

query

The searched query.

typeAhead

If this flag is set to true, the query will be interpreted as a partial input and the search will enter predictive mode.

limit

The maximum number of search results that will be returned. Default limit is 10.

offset

The starting offset of the returned results within the full result set.

countrySet

A set of ISO 3166-1 alpha3 country codes. (e.g., FRA, ESP). This will limit the search to the specified countries. ISO 3166-1 alpha2 country codes (e.g., FR, ES) are also supported, but only for the online search mode.

position

The GeoCoordinate position where results should be biased.

radius

The radius parameter is specified in meters. The results will be constrained to the defined area.

boundingBox

The GeoBoundingBox for the search.

language

The language in which search results should be returned. Should be one of the supported IETF language tags. See https://developer.tomtom.com/search-api/search-api/supported-languages for more details.

extendedPostalCodes

Indexes for which extended postal codes should be included in the results.

minFuzzyLevel

The minimum fuzziness level to be used. The default value is 1. The maximum value is 4.

maxFuzzyLevel

The maximum fuzziness level to be used. The default value is 2. The maximum value is 4.

idx

A set of IndexType which should be utilized for the search.

categorySet

Restricts the Points Of Interest in the response to those whose ID is listed.

brandSet

A list of brand names which could be used to restrict the result to specific brands.

connectorSet

A list of connector types which could be used to restrict the result to Points Of Interest of type Electric Vehicle Station, supporting specific connector types. See https://developer.tomtom.com/search-api/search-api-documentation/supported-connector-types for more details.

minPowerKW

A double value representing the power rate in kilowatts which is used to restrict the result to the Points Of Interest of type Electric Vehicle Station supporting at least one connector with a specific minimal value of power in kilowatts.

maxPowerKW

A double value representing the power rate in kilowatts which is used to restrict the result to the Points Of Interest of type Electric Vehicle Station supporting at least one connector with a specific maximum value of power in kilowatts.

fuelSet

A set of a FuelType which will be used to restrict the result to the Points Of Interest of specific fuels.

geopoliticalView

Defines what kind of geopolitical view should be used.

openingHours

The opening hours scope.

timeZone

Used to indicate the mode in which the time zone object should be returned.

mapCodes

The set of MapCodeType which will be supported.

relatedPois

A RequestedPoiRelationType that provides the possibility to return related Points Of Interest.

entityTypeSet

A set of EntityType which will be used to restrict the result to the Geography result of a specific entity type.

category

Determines whether the Category Search is enabled.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun FuzzySearchOptions(    query: String,     typeAhead: Boolean? = null,     @IntRange(from = 1, to = 100) limit: Int? = null,     offset: Int? = null,     countrySet: Set<String>,     position: GeoCoordinate? = null,     radius: Int? = null,     boundingBox: GeoBoundingBox? = null,     language: String? = null,     extendedPostalCodes: List<IndexType>,     minFuzzyLevel: Int? = null,     maxFuzzyLevel: Int? = null,     idx: Set<IndexType>,     categorySet: List<Long>,     brandSet: List<String>,     connectorSet: List<String>,     minPowerKW: Double? = null,     maxPowerKW: Double? = null,     fuelSet: Set<FuelType>,     geopoliticalView: String? = null,     openingHours: OpeningHoursMode? = null,     timeZone: TimeZoneType? = null,     mapCodes: Set<MapCodeType>,     relatedPois: RequestedPoiRelationType? = null,     entityTypeSet: Set<EntityType>,     category: Boolean?)

Types

Link copied to clipboard
class Builder(query: String)

Builder used to create an instance of FuzzySearchOptions. Once constructed, the user cannot change the field values.

Properties

Link copied to clipboard
val boundingBox: GeoBoundingBox? = null
Link copied to clipboard
val brandSet: List<String>
Link copied to clipboard
val category: Boolean?
Link copied to clipboard
val categorySet: List<Long>
Link copied to clipboard
val connectorSet: List<String>
Link copied to clipboard
val countrySet: Set<String>
Link copied to clipboard
val entityTypeSet: Set<EntityType>
Link copied to clipboard
val extendedPostalCodes: List<IndexType>
Link copied to clipboard
val fuelSet: Set<FuelType>
Link copied to clipboard
val geopoliticalView: String? = null
Link copied to clipboard
val idx: Set<IndexType>
Link copied to clipboard
val language: String? = null
Link copied to clipboard
val limit: Int? = null
Link copied to clipboard
val mapCodes: Set<MapCodeType>
Link copied to clipboard
val maxFuzzyLevel: Int? = null
Link copied to clipboard
val maxPowerKW: Double? = null
Link copied to clipboard
val minFuzzyLevel: Int? = null
Link copied to clipboard
val minPowerKW: Double? = null
Link copied to clipboard
val offset: Int? = null
Link copied to clipboard
val openingHours: OpeningHoursMode? = null
Link copied to clipboard
val position: GeoCoordinate? = null
Link copied to clipboard
val query: String
Link copied to clipboard
val radius: Int? = null
Link copied to clipboard
val relatedPois: RequestedPoiRelationType? = null
Link copied to clipboard
val timeZone: TimeZoneType? = null
Link copied to clipboard
val typeAhead: Boolean? = null