SearchResult

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

Constructors

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

Constructs a SearchResult object with the given parameters.

Properties

Link copied to clipboard

A rectangle into which the shape of an administrative area is inscribed. Provided only if type is set to SearchResultType.Area.

Link copied to clipboard

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

Link copied to clipboard

Distance from the provided route.

Link copied to clipboard

The place information of the search result.

Link copied to clipboard
val poi: Poi?

Information about the Point Of Interest.

Link copied to clipboard

The ID of the result.

Link copied to clipboard

The type of result.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this SearchResult object is equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for this SearchResult object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of this SearchResult object.