SearchResult

data class SearchResult(val type: ResultType, val searchResultId: SearchResultId, val position: GeoPoint, val distance: Distance? = null, val poi: Poi? = null, val address: Address? = null, val boundingBox: GeoBoundingBox? = null)

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

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

Parameters

type

The type of result.

searchResultId

The ID of the result.

position

The geographical position of the Point Of Interest.

distance

Distance from the provided route.

poi

Information about the Point Of Interest.

address

The detailed address of the result.

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.

Constructors

Link copied to clipboard
fun SearchResult(type: ResultType, searchResultId: SearchResultId, position: GeoPoint, distance: Distance? = null, poi: Poi? = null, address: Address? = null, boundingBox: GeoBoundingBox? = null)

Properties

Link copied to clipboard
val address: Address? = null
Link copied to clipboard
Link copied to clipboard
val distance: Distance? = null
Link copied to clipboard
val poi: Poi? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard