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 shortName: String? = null, 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, val mapboxId: String? = null, val isOffline: Boolean = false)

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, shortName: String? = null, routablePoints: List<RoutablePoint>?, type: SearchResultType, categories: List<String>?, makiIcon: String?, distance: Double?, descriptionText: String?, destinationSource: DestinationSource = DestinationSource.MBX, mapboxId: String? = null, isOffline: Boolean = false)

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
val isOffline: Boolean = false
Link copied to clipboard
Link copied to clipboard
val mapboxId: String? = null
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

The location to fetch routes to.

Link copied to clipboard
val routablePoints: List<RoutablePoint>?
Link copied to clipboard
val shortName: String? = null
Link copied to clipboard
val type: SearchResultType

Functions