AlongRouteSearchOptions

data class AlongRouteSearchOptions(    val query: String,     val route: List<GeoCoordinate>,     val maxDetourTime: Duration,     val typeAhead: Boolean?,     val limit: Int? = null,     val categorySet: Set<Long>,     val brandSet: Set<String>,     val connectorSet: Set<String>,     val minPowerKw: Double?,     val maxPowerKw: Double?,     val fuelSet: Set<FuelType>,     val geopoliticalView: String?,     val detourOffset: Boolean?,     val sortBy: SortBy?,     val openingHours: OpeningHoursMode?,     val spreadingMode: SpreadingMode?,     val mapCodes: Set<MapCodeType>,     val timeZone: TimeZoneType?,     val relatedPois: RequestedPoiRelationType?)

Defines the parameters of a Search Along the Route query. Use the AlongRouteSearchOptions.Builder to create a new instance of the object.

Parameters

query

The search query.

route

The route points.

maxDetourTime

The maximum detour time. The maximum value is 3600 seconds.

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.

categorySet

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

brandSet

A list of brand names used to restrict the result to POIs associated with those brands.

connectorSet

A list of connector types used to restrict the results to electric vehicle stations that support those 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 results to electric vehicle stations with at least one connector with that minimum power.

maxPowerKw

A double value representing a power rate in kilowatts, used the results to electric vehicle stations with at least one connector with that maximum power.

fuelSet

A set of FuelTypes, used to restrict the results to ones with specific fuels.

geopoliticalView

Defines what kind of geopolitical view should be used.

detourOffset

Parameter which turns on calculation of the distance between the start of the route and the starting point of the detour to a POI.

sortBy

Defines how the results will be sorted.

openingHours

Scope of the opening hours to be provided.

spreadingMode

Defines the spreading of returned results along the route.

mapCodes

The set of MapCodeTypes which will be supported.

timeZone

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

relatedPois

Uses the RequestedPoiRelationType to specify what kinds of related POIs to return. Points Of Interest.

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

Constructors

Link copied to clipboard
fun AlongRouteSearchOptions(    query: String,     route: List<GeoCoordinate>,     maxDetourTime: Duration,     typeAhead: Boolean?,     limit: Int? = null,     categorySet: Set<Long>,     brandSet: Set<String>,     connectorSet: Set<String>,     minPowerKw: Double?,     maxPowerKw: Double?,     fuelSet: Set<FuelType>,     geopoliticalView: String?,     detourOffset: Boolean?,     sortBy: SortBy?,     openingHours: OpeningHoursMode?,     spreadingMode: SpreadingMode?,     mapCodes: Set<MapCodeType>,     timeZone: TimeZoneType?,     relatedPois: RequestedPoiRelationType?)

Types

Link copied to clipboard
class Builder(    query: String,     route: List<GeoCoordinate>,     maxDetourTime: Duration)

Builder used to create an immutable instance of the AlongRouteSearchOptions.

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 detourOffset: Boolean?
Link copied to clipboard
val fuelSet: Set<FuelType>
Link copied to clipboard
val geopoliticalView: String?
Link copied to clipboard
val limit: Int? = null
Link copied to clipboard
val mapCodes: Set<MapCodeType>
Link copied to clipboard
val maxDetourTime: Duration
Link copied to clipboard
val maxPowerKw: Double?
Link copied to clipboard
val minPowerKw: Double?
Link copied to clipboard
val openingHours: OpeningHoursMode?
Link copied to clipboard
val query: String
Link copied to clipboard
val relatedPois: RequestedPoiRelationType?
Link copied to clipboard
val route: List<GeoCoordinate>
Link copied to clipboard
val sortBy: SortBy?
Link copied to clipboard
val spreadingMode: SpreadingMode?
Link copied to clipboard
val timeZone: TimeZoneType?
Link copied to clipboard
val typeAhead: Boolean?