AlongRouteResult

data class AlongRouteResult(    val type: String,     val id: String,     val score: Double,     val distance: Double,     val info: String = "",     val poi: Poi,     val relatedPois: List<RelatedPoi>? = null,     val address: Address?,     val position: GeoCoordinate,     val mapCodes: List<MapCode>? = null,     val viewport: GeoBoundingBox? = null,     val entryPoints: Set<EntryPoint>? = null,     val detourTime: Int? = null,     val detourOffset: Int? = null,     val chargingPark: ChargingPark? = null,     val dataSources: AdditionalDataSources? = null)

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

Parameters

type

The type of result.

id

The ID of the result.

score

The score of the result.

distance

Distance from the provided route.

info

Additional information.

poi

Information about the Point Of Interest.

relatedPois

List of related Points Of Interest.

address

The detailed address of the result.

position

The geographical position of the Point Of Interest.

mapCodes

A list of MapCode objects.

viewport

The viewport.

entryPoints

A list of entrances to the Point Of Interest.

detourTime

Detour time in seconds.

detourOffset

Detour offset in meters.

chargingPark

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

dataSources

Information about the sources of additional data that can be used with the Additional Data service.

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

Constructors

Link copied to clipboard
fun AlongRouteResult(    type: String,     id: String,     score: Double,     distance: Double,     info: String = "",     poi: Poi,     relatedPois: List<RelatedPoi>? = null,     address: Address?,     position: GeoCoordinate,     mapCodes: List<MapCode>? = null,     viewport: GeoBoundingBox? = null,     entryPoints: Set<EntryPoint>? = null,     detourTime: Int? = null,     detourOffset: Int? = null,     chargingPark: ChargingPark? = null,     dataSources: AdditionalDataSources? = null)

Properties

Link copied to clipboard
val address: Address?
Link copied to clipboard
val chargingPark: ChargingPark? = null
Link copied to clipboard
val dataSources: AdditionalDataSources? = null
Link copied to clipboard
val detourOffset: Int? = null
Link copied to clipboard
val detourTime: Int? = null
Link copied to clipboard
val distance: Double
Link copied to clipboard
val entryPoints: Set<EntryPoint>? = null
Link copied to clipboard
val id: String
Link copied to clipboard
val info: String
Link copied to clipboard
val mapCodes: List<MapCode>? = null
Link copied to clipboard
val poi: Poi
Link copied to clipboard
val position: GeoCoordinate
Link copied to clipboard
val relatedPois: List<RelatedPoi>? = null
Link copied to clipboard
val score: Double
Link copied to clipboard
val type: String
Link copied to clipboard
val viewport: GeoBoundingBox? = null