SearchResult

data class SearchResult(    val type: String,     val id: String,     val score: Double,     val distance: Double,     val info: String = "",     val entityType: EntityType?,     val poi: Poi?,     val relatedPois: List<RelatedPoi> = emptyList(),     val address: Address?,     val position: GeoCoordinate,     val mapCodes: List<MapCode> = emptyList(),     val viewport: GeoBoundingBox?,     val boundingBox: GeoBoundingBox?,     val entryPoints: List<EntryPoint> = emptyList(),     val addressRanges: AddressRanges?,     val chargingPark: ChargingPark?,     val dataSources: AdditionalDataSources?)

Describes the details of 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.

entityType

(Only for results of type "Geography") EntityType the type of the entity.

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.

boundingBox

A rectangle into which the shape of an administrative area is inscribed. Only available for results where the result type is equal to "Geography", and municipality information is not present.

entryPoints

A list of entrances to the Point Of Interest.

addressRanges

Address ranges on a street segment. Only available for results where the result type is equal to "Address Range".

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 SearchResult(    type: String,     id: String,     score: Double,     distance: Double,     info: String = "",     entityType: EntityType?,     poi: Poi?,     relatedPois: List<RelatedPoi> = emptyList(),     address: Address?,     position: GeoCoordinate,     mapCodes: List<MapCode> = emptyList(),     viewport: GeoBoundingBox?,     boundingBox: GeoBoundingBox?,     entryPoints: List<EntryPoint> = emptyList(),     addressRanges: AddressRanges?,     chargingPark: ChargingPark?,     dataSources: AdditionalDataSources?)

Properties

Link copied to clipboard
val address: Address?
Link copied to clipboard
val addressRanges: AddressRanges?
Link copied to clipboard
val boundingBox: GeoBoundingBox?
Link copied to clipboard
val chargingPark: ChargingPark?
Link copied to clipboard
val dataSources: AdditionalDataSources?
Link copied to clipboard
val distance: Double
Link copied to clipboard
val entityType: EntityType?
Link copied to clipboard
val entryPoints: List<EntryPoint>
Link copied to clipboard
val id: String
Link copied to clipboard
val info: String
Link copied to clipboard
val mapCodes: List<MapCode>
Link copied to clipboard
val poi: Poi?
Link copied to clipboard
val position: GeoCoordinate
Link copied to clipboard
val relatedPois: List<RelatedPoi>
Link copied to clipboard
val score: Double
Link copied to clipboard
val type: String
Link copied to clipboard
val viewport: GeoBoundingBox?