SwiftstructTextUnderstanding
struct TextUnderstanding.Location
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 8
- field
var address: TextUnderstanding.Location.Address?+0x10 - field
var algorithm: TextUnderstanding.Location.Algorithm? - field
let category: TextUnderstanding.Location.Category - field
var coordinates: TextUnderstanding.Location.Coordinates?+0x70 - field
var label: String?+0x0 - field
var notes: String? - field
var timeZone: Foundation.TimeZone? - init
init(label: String?, address: TextUnderstanding.Location.Address?, coordinates: TextUnderstanding.Location.Coordinates?, timeZone: Foundation.TimeZone?, category: TextUnderstanding.Location.Category, algorithm: TextUnderstanding.Location.Algorithm?, notes: String?) -> TextUnderstanding.Location
Header
struct Location { struct Address { enum CodingKeys { case fullAddress case street case city case region case postalCode case country } var fullAddress: Swift.String? var street: Swift.String? var city: Swift.String? var region: Swift.String? var postalCode: Swift.String? var country: Swift.String? init?(fullAddress: Swift.String?, street: Swift.String?, city: Swift.String?, region: Swift.String?, postalCode: Swift.String?, country: Swift.String?) } struct AirportDetails { enum CodingKeys { case airportCode case terminal case gate case alternateNames } var airportCode: Swift.String? var terminal: Swift.String? var gate: Swift.String? var alternateNames: [Swift.String]? init(airportCode: Swift.String?, terminal: Swift.String?, gate: Swift.String?, alternateNames: [Swift.String]?) static func isValidIATAAirportCode(_: Swift.String) -> Swift.Bool } struct Coordinates { enum CodingKeys { case latitude case longitude } var latitude: Swift.Double var longitude: Swift.Double init(latitude: Swift.Double, longitude: Swift.Double) throws } enum Category { enum CodingKeys { case unknown case dynamic case organization case restaurant case activity case touristAttraction case home case work case airport } enum UnknownCodingKeys {} enum DynamicCodingKeys { case _0 } enum OrganizationCodingKeys {} enum RestaurantCodingKeys {} enum ActivityCodingKeys {} enum TouristAttractionCodingKeys {} enum HomeCodingKeys {} enum WorkCodingKeys {} enum AirportCodingKeys { case _0 } case dynamic(Swift.String) case airport(TextUnderstanding.Location.AirportDetails) case unknown case organization case restaurant case activity case touristAttraction case home case work } enum Algorithm { enum CodingKeys { case unknown case coreNLP case dataDetectors case structuredUserActivity case augmentedGazetteer case eventExtraction case mapsInteraction } enum UnknownCodingKeys {} enum CoreNLPCodingKeys {} enum DataDetectorsCodingKeys {} enum StructuredUserActivityCodingKeys {} enum AugmentedGazetteerCodingKeys {} enum EventExtractionCodingKeys {} enum MapsInteractionCodingKeys {} case unknown case coreNLP case dataDetectors case structuredUserActivity case augmentedGazetteer case eventExtraction case mapsInteraction } enum CodingKeys { case label case address case coordinates case timeZone case category case algorithm case notes } enum LocationError { enum CodingKeys { case noLabel case invalidCoordinates } enum NoLabelCodingKeys {} enum InvalidCoordinatesCodingKeys {} case noLabel case invalidCoordinates var description: Swift.String { get } } var label: Swift.String? var address: TextUnderstanding.Location.Address? var coordinates: TextUnderstanding.Location.Coordinates? var timeZone: Foundation.TimeZone? let category: TextUnderstanding.Location.Category var algorithm: TextUnderstanding.Location.Algorithm? var notes: Swift.String? init(label: Swift.String?, address: TextUnderstanding.Location.Address?, coordinates: TextUnderstanding.Location.Coordinates?, timeZone: Foundation.TimeZone?, category: TextUnderstanding.Location.Category, algorithm: TextUnderstanding.Location.Algorithm?, notes: Swift.String?) }