FavoriteRecord
public struct FavoriteRecord : IndexableRecord, SearchResult, Codable, Equatable
Resolved search result intended to represent user favorites
-
Undocumented
Declaration
Swift
public private(set) var dataLayerIdentifier: String { get } -
Declaration
Swift
public var iconName: String? -
Declaration
Swift
public let id: String -
Declaration
Swift
public var name: String -
address formatted with medium style
Declaration
Swift
public var descriptionText: String? { get } -
Declaration
Swift
public private(set) var coordinate: CLLocationCoordinate2D { get set } -
Declaration
Swift
public var address: Address? -
Undocumented
Declaration
Swift
public var icon: Maki? -
Declaration
Swift
public var categories: [String]? -
Declaration
Swift
public var type: SearchResultType -
??
Declaration
Swift
public var additionalTokens: Set<String>? -
Favorite record constructor
Declaration
Swift
public init(id: String? = nil, name: String, coordinate: CLLocationCoordinate2D, address: Address?, makiIcon: Maki?, categories: [String]?, resultType: SearchResultType)Parameters
idUUID used by default
nameFavorite name
coordinateFavorite coordinate
addressFavorite address
makiIconFavorite icon name
categoriesFavorite categories list
resultTypeFavorite result type
-
Build Favorite record from SearchResult
Declaration
Swift
public init(id: String? = nil, name: String, searchResult: SearchResult)Parameters
idUUID used by default
nameFavorite name
searchResultsearch result to use for FavoriteRecord
FavoriteRecord Structure Reference