DestinationSearchResult

data class DestinationSearchResult(val originalSearchModel: OriginalSearchModel, val address: SearchAddress?, val clickCoordinate: Point? = null, val coordinate: Point, val etaMinutes: Double?, val id: String, val metadata: DestinationMetadata?, val name: String, val routablePoints: List<RoutablePoint>?, val type: SearchResultType, val categories: List<String>?, val makiIcon: String?, val distance: Double?, val descriptionText: String?, val destinationSource: DestinationSource = DestinationSource.MBX)

Parameters

clickCoordinate

the coordinate of original user click if this is a reverse geocoding result.

Constructors

Link copied to clipboard
constructor(originalSearchModel: OriginalSearchModel, address: SearchAddress?, clickCoordinate: Point? = null, coordinate: Point, etaMinutes: Double?, id: String, metadata: DestinationMetadata?, name: String, routablePoints: List<RoutablePoint>?, type: SearchResultType, categories: List<String>?, makiIcon: String?, distance: Double?, descriptionText: String?, destinationSource: DestinationSource = DestinationSource.MBX)

Properties

Link copied to clipboard
val address: SearchAddress?
Link copied to clipboard
Link copied to clipboard
val clickCoordinate: Point? = null
Link copied to clipboard
val coordinate: Point
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val pinCoordinate: Point

The location on the map where the pin for this result should be shown.

Link copied to clipboard
val routablePoints: List<RoutablePoint>?
Link copied to clipboard
val type: SearchResultType

Functions

Link copied to clipboard
fun destinationPoint(): Point
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard