Address

public struct Address

Undocumented

  • House number of the individual residential or business addresses.

    Declaration

    Swift

    public let houseNumber: String?
  • Street name of the individual residential or business addresses.

    Declaration

    Swift

    public let street: String?
  • Colloquial sub-city features often referred to in local parlance. Unlike locality features, these typically lack official status and may lack universally agreed-upon boundaries.

    Declaration

    Swift

    public let neighborhood: String?
  • Official sub-city features present in countries where such an additional administrative layer is used in postal addressing, or where such features are commonly referred to in local parlance. Examples include city districts in Brazil and Chile and arrondissements in France.

    Declaration

    Swift

    public let locality: String?
  • Postal codes used in country-specific national addressing systems.

    Declaration

    Swift

    public let postcode: String?
  • Typically these are cities, villages, municipalities, etc. They’re usually features used in postal addressing, and are suitable for display in ambient end-user applications where current-location context is needed (for example, in weather displays).

    Declaration

    Swift

    public let place: String?
  • Features that are smaller than top-level administrative features but typically larger than cities, in countries that use such an additional layer in postal addressing (for example, prefectures in China).

    Declaration

    Swift

    public let district: String?
  • Top-level sub-national administrative features, such as states in the United States or provinces in Canada or China.

    Declaration

    Swift

    public let region: String?
  • Generally recognized countries or, in some cases like Hong Kong, an area of quasi-national administrative status that has been given a designated country code under ISO 3166-1.

    Declaration

    Swift

    public let country: String?
  • The country code in ISO 3166-1.

    Declaration

    Swift

    public let countryISO1: String?
  • The country code and its country subdivision code in ISO 3166-2.

    Declaration

    Swift

    public let countryISO2: String?
  • The postal address associated with the location, formatted for use with the Contacts framework.

    Declaration

    Swift

    public var postalAddress: CNPostalAddress { get }