Suggestion

struct Suggestion

Undocumented

  • Place’s name.

    Declaration

    Swift

    public let name: String
  • Contains formatted address.

    Declaration

    Swift

    public let description: String?
  • Geographic point.

    Declaration

    Swift

    public let coordinate: CLLocationCoordinate2D
  • Icon name according to Mapbox Maki icon set

    Declaration

    Swift

    public let iconName: String?
  • The straight line distance in meters between the origin and this suggestion.

    Declaration

    Swift

    public let distance: CLLocationDistance?
  • The type of result.

    Declaration

    Swift

    public let placeType: SearchResultType
  • Poi categories. Always empty for non-POI suggestions.

    Declaration

    Swift

    public let categories: [String]