HistoryRecord
public struct HistoryRecord : IndexableRecord, SearchResult, Codable, Equatable
Resolved search result intended to represent user search history
-
Undocumented
Declaration
Swift
public private(set) var dataLayerIdentifier: String { get }
-
“history icon” by default
Declaration
Swift
public var iconName: String?
-
Undocumented
See moreDeclaration
Swift
public enum HistoryType : Int, Codable
-
Declaration
Swift
public private(set) var id: String { get }
-
Declaration
Swift
public private(set) var name: String { get }
-
Address formatted with medium style
Declaration
Swift
public var descriptionText: String? { get }
-
Declaration
Swift
public private(set) var coordinate: CLLocationCoordinate2D { get set }
-
Undocumented
Declaration
Swift
public private(set) var timestamp: Date { get }
-
Undocumented
Declaration
Swift
public private(set) var historyType: HistoryType { get }
-
Declaration
Swift
public private(set) var type: SearchResultType { get }
-
Declaration
Swift
public var address: Address?
-
Declaration
Swift
public var additionalTokens: Set<String>?
-
Allways nil for history record (??)
Declaration
Swift
public var categories: [String]? { get }
-
History record constructor
Declaration
Swift
public init(id: String = UUID().uuidString, name: String, coordinate: CLLocationCoordinate2D, timestamp: Date = Date(), historyType: HistoryRecord.HistoryType, type: SearchResultType, address: Address?)
Parameters
id
UUID used by default
name
History name
coordinate
History coordinate
timestamp
History timestamp
historyType
History type
type
History type
address
History address