HistoryRecord
public struct HistoryRecord : IndexableRecord, SearchResult, Codable, Hashable
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 internal(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 }
-
FavoriteRecord Always has estimatedTime as nil.
Declaration
Swift
public var estimatedTime: Measurement<UnitDuration>?
-
Declaration
Swift
public var metadata: SearchResultMetadata?
-
Declaration
Swift
public var address: Address?
-
Declaration
Swift
public var additionalTokens: Set<String>?
-
Always nil for history record (??)
Declaration
Swift
public var categories: [String]? { get }
-
Coordinates of building entries
Declaration
Swift
public var routablePoints: [RoutablePoint]?
-
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?, metadata: SearchResultMetadata? = nil, routablePoints: [RoutablePoint]? = nil)
Parameters
id
UUID used by default
name
History name
coordinate
History coordinate
timestamp
History timestamp
historyType
History type
type
History type
address
History address
-
Undocumented
Declaration
Swift
public init(historyType: HistoryRecord.HistoryType = .result, searchResult: SearchResult, timestamp: Date = Date())