SearchResult
data class SearchResult( val type: ResultType, val id: SearchResultId, val distance: Distance? = null, val poi: Poi? = null, val address: Address? = null, val position: GeoCoordinate, val mapCodes: List<MapCode> = emptyList(), val boundingBox: GeoBoundingBox? = null, val entryPoints: List<EntryPoint> = emptyList(), val chargingPark: EvChargingPark? = null)
Content copied to clipboard
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.
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.
mapCodes
A list of MapCode objects.
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. 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.
Constructors
Link copied to clipboard
fun SearchResult( type: ResultType, id: SearchResultId, distance: Distance? = null, poi: Poi? = null, address: Address? = null, position: GeoCoordinate, mapCodes: List<MapCode> = emptyList(), boundingBox: GeoBoundingBox? = null, entryPoints: List<EntryPoint> = emptyList(), chargingPark: EvChargingPark? = null)
Content copied to clipboard