AlongRouteResult

data class AlongRouteResult(    val id: SearchResultId,     val poi: Poi,     val distance: Distance? = null,     val address: Address? = null,     val position: GeoCoordinate? = null,     val viewport: GeoBoundingBox? = null,     val entryPoints: Set<EntryPoint> = emptySet(),     val detourTime: Duration? = null,     val detourDistance: Distance? = null,     val detourOffset: Int? = null,     val chargingPark: EvChargingPark? = null)

Describes the details of a single result item returned by the Search API.

Parameters

id

The ID of the result.

distance

Distance from the provided route.

poi

Information about the Point Of Interest.

address

The detailed address of the result.

position

The geographical position of the Point Of Interest.

viewport

The viewport.

entryPoints

A list of entrances to the Point Of Interest.

detourTime

Detour time.

detourDistance

Detour distance.

detourOffset

Detour offset in meters.

chargingPark

Present only when the Points of Interest are of the Electric Vehicle Station type.

Constructors

Link copied to clipboard
fun AlongRouteResult(    id: SearchResultId,     poi: Poi,     distance: Distance? = null,     address: Address? = null,     position: GeoCoordinate? = null,     viewport: GeoBoundingBox? = null,     entryPoints: Set<EntryPoint> = emptySet(),     detourTime: Duration? = null,     detourDistance: Distance? = null,     detourOffset: Int? = null,     chargingPark: EvChargingPark? = null)

Properties

Link copied to clipboard
val address: Address? = null
Link copied to clipboard
val chargingPark: EvChargingPark? = null
Link copied to clipboard
val detourDistance: Distance? = null
Link copied to clipboard
val detourOffset: Int? = null
Link copied to clipboard
val detourTime: Duration? = null
Link copied to clipboard
val distance: Distance? = null
Link copied to clipboard
val entryPoints: Set<EntryPoint>
Link copied to clipboard
val id: SearchResultId
Link copied to clipboard
val poi: Poi
Link copied to clipboard
val position: GeoCoordinate? = null
Link copied to clipboard
val viewport: GeoBoundingBox? = null