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

Types

Link copied to clipboard

Callback that reports that a AlongRouteSearchResponse or AlongRouteSearchError has been received.

Link copied to clipboard
class AlongRouteSearchError(val message: String = "") : SearchError

Error caused by a failure while calling the Search Along the Route API. Contains information about the cause of the failure.

Link copied to clipboard
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.

Link copied to clipboard
data class AlongRouteSearchResponse(val summary: AlongRouteSummary, val results: List<AlongRouteResult>)

Response of the Along Route Search API.