SearchResult

data class SearchResult(val type: ResultType, val searchResultId: SearchResultId, val place: Place, val distance: Distance? = null, val poi: Poi? = null, val boundingBox: GeoBoundingBox? = null, val detour: Detour? = 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.

place

The place information of the search result.

distance

Distance from the provided route.

poi

Information about the Point Of Interest.

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.

detour

The detailed information about detour which should be taken to reach the search result position.

Constructors

Link copied to clipboard
fun SearchResult(type: ResultType, searchResultId: SearchResultId, place: Place, distance: Distance? = null, poi: Poi? = null, boundingBox: GeoBoundingBox? = null, detour: Detour? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val detour: Detour? = null
Link copied to clipboard
val distance: Distance? = null
Link copied to clipboard
Link copied to clipboard
val poi: Poi? = null
Link copied to clipboard
Link copied to clipboard