SearchResult
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.
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. Provided only if type is set to SearchResultType.Area.
detour
The detailed information about detour which should be taken to reach the search result position.