SwiftstructTextUnderstanding

struct TextUnderstanding.Location

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 8

  1. fieldvar address: TextUnderstanding.Location.Address?+0x10
  2. fieldvar algorithm: TextUnderstanding.Location.Algorithm?
  3. fieldlet category: TextUnderstanding.Location.Category
  4. fieldvar coordinates: TextUnderstanding.Location.Coordinates?+0x70
  5. fieldvar label: String?+0x0
  6. fieldvar notes: String?
  7. fieldvar timeZone: Foundation.TimeZone?
  8. initinit(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
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?)
}