SearchCategory

public struct SearchCategory : Codable, Hashable

Category entity to present on MapboxSearchController UI

  • Name to display

    Declaration

    Swift

    public let name: String
  • id

    Undocumented

    Declaration

    Swift

    public var id: String { get }
  • Category icon from embedded bundle

    Declaration

    Swift

    public var icon: UIImage? { get }
  • Make a category with existing name. Icon and metadata would be hooked from sdk bundle

    Declaration

    Swift

    public static func makeServerCategory(name: String) -> SearchCategory?

    Parameters

    name

    Category name from embedded catalog

    Return Value

    New category if we have enough data for constructor

  • gas

    Fuel station category.

    Declaration

    Swift

    public static let gas: SearchCategory
  • Parking lot category.

    Declaration

    Swift

    public static let parking: SearchCategory
  • Food category.

    Declaration

    Swift

    public static let food: SearchCategory
  • Cafe category.

    Declaration

    Swift

    public static let cafe: SearchCategory
  • Restaurant category.

    Declaration

    Swift

    public static let restaurant: SearchCategory
  • bar

    Bar category.

    Declaration

    Swift

    public static let bar: SearchCategory
  • Cafe category.

    Declaration

    Swift

    public static let coffeeShop: SearchCategory
  • Hotel category.

    Declaration

    Swift

    public static let hotel: SearchCategory
  • Gas Station category.

    Declaration

    Swift

    public static let gasStation: SearchCategory
  • EV Charging station category.

    Declaration

    Swift

    public static let chargingStation: SearchCategory
  • Bus station category.

    Declaration

    Swift

    public static let busStation: SearchCategory
  • Railway station category.

    Declaration

    Swift

    public static let railwayStation: SearchCategory
  • Shopping mall category.

    Declaration

    Swift

    public static let shoppingMall: SearchCategory
  • Grocery category.

    Declaration

    Swift

    public static let grocery: SearchCategory
  • Clothing store category.

    Declaration

    Swift

    public static let clothingStore: SearchCategory
  • Pharmacy category.

    Declaration

    Swift

    public static let pharmacy: SearchCategory
  • Museum category.

    Declaration

    Swift

    public static let museum: SearchCategory
  • Park category.

    Declaration

    Swift

    public static let park: SearchCategory
  • Cinema category.

    Declaration

    Swift

    public static let cinema: SearchCategory
  • Fitness center category.

    Declaration

    Swift

    public static let fitnessCentre: SearchCategory
  • Nightclub category.

    Declaration

    Swift

    public static let nightclub: SearchCategory
  • Auto repair category.

    Declaration

    Swift

    public static let autoRepair: SearchCategory
  • atm

    ATM category.

    Declaration

    Swift

    public static let atm: SearchCategory
  • Hospital category.

    Declaration

    Swift

    public static let hospital: SearchCategory
  • Emergency Room category.

    Declaration

    Swift

    public static let emergencyRoom: SearchCategory