GeometrySearchOptions

data class GeometrySearchOptions(    val query: String,     val geometries: List<Geometry>,     val limit: Int? = null,     val language: String? = null,     val extendedPostalCodes: List<IndexType>,     val idx: Set<IndexType>,     val categorySet: Set<Long>,     val brandSet: Set<String>,     val connectorSet: Set<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>)

Defines the parameters of a Geometry Search. Use GeometrySearchOptions.Builder to create a new instance of the object.

Parameters

query

The searched query.

geometries

The list of geometries to search in.

limit

The maximum number of search results that will be returned.

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.

idx

A set of IndexTypes 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 used to restrict the result to specific brands.

connectorSet

A list of connector types used to restrict the result to Electric Vehicle Station POIs that support those specific connector types. See https://developer.tomtom.com/search-api/search-api-documentation/supported-connector-types for more details.

minPowerKW

A double value representing a power rate in kilowatts, used to restrict the result to Electric Vehicle Station POIs with at least one connector with that minimum power rate.

maxPowerKW

A double value representing a power rate in kilowatts, used to restrict the result to Electric Vehicle Station POIs with at least one connector with that maximum power rate.

fuelSet

A set of FuelTypes used to restrict the result to Points Of Interest that sell 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 allows related Points Of Interest to be returned.

entityTypeSet

A set of EntityTypes used to restrict the result to Geography results of a specific entity type.

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

Constructors

Link copied to clipboard
fun GeometrySearchOptions(    query: String,     geometries: List<Geometry>,     limit: Int? = null,     language: String? = null,     extendedPostalCodes: List<IndexType>,     idx: Set<IndexType>,     categorySet: Set<Long>,     brandSet: Set<String>,     connectorSet: Set<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>)

Types

Link copied to clipboard
class Builder(query: String, geometries: List<Geometry>)

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

Properties

Link copied to clipboard
val brandSet: Set<String>
Link copied to clipboard
val categorySet: Set<Long>
Link copied to clipboard
val connectorSet: 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 geometries: List<Geometry>
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 maxPowerKW: Double? = null
Link copied to clipboard
val minPowerKW: Double? = null
Link copied to clipboard
val openingHours: OpeningHoursMode? = null
Link copied to clipboard
val query: String
Link copied to clipboard
val relatedPois: RequestedPoiRelationType? = null
Link copied to clipboard
val timeZone: TimeZoneType? = null