SearchResult

public protocol SearchResult

Resolved search object with populated fields

  • id

    Result unique identifier

    Declaration

    Swift

    var id: String { get }
  • Result name

    Declaration

    Swift

    var name: String { get }
  • Icon name according to Mapbox Maki icon set

    Declaration

    Swift

    var iconName: String? { get }
  • Type of SearchResult. Should be one of address or POI

    Declaration

    Swift

    var type: SearchResultType { get }
  • Result coordinates

    Declaration

    Swift

    var coordinate: CLLocationCoordinate2D { get }
  • Result address

    Declaration

    Swift

    var address: Address? { get }
  • Result categories

    Declaration

    Swift

    var categories: [String]? { get }
  • Coordinates of building entries

    Declaration

    Swift

    var routablePoints: [RoutablePoint]? { get }
  • placemark Default implementation

    MapKit placemark

    Default Implementation

    Declaration

    Swift

    var placemark: MKPlacemark { get }
  • Estimated time of arrival (in minutes) based on specified origin point and navigation profile. Those can be specified via RequestOptions

    Declaration

    Swift

    var estimatedTime: Measurement<UnitDuration>? { get }
  • Additional search result data, such as phone number, website and other

    Declaration

    Swift

    var metadata: SearchResultMetadata? { get }