Address
public struct Address
A collection of information that describes geographical location
Important
This is a Public Preview API. It may be changed or removed at any time.-
The building number on the street, such as “33” or “221B”.
Declaration
Swift
public let streetNumber: String?
-
The name of the street.
Declaration
Swift
public let streetName: String?
-
Subdivision level of locality. Can be a neighborhood, suburb, city, district, village, etc.
Declaration
Swift
public let municipalitySubdivision: String?
-
Locality. Can be a city, town, community, etc. For example: “San Jose”.
Declaration
Swift
public let municipality: String?
-
Second level of country administrative hierarchy. Can be a county, borough, parish, municipality, etc. For example: “Santa Clara”.
Declaration
Swift
public let countrySecondarySubdivision: String?
-
Third level of country subdivision
Declaration
Swift
public let countryTertiarySubdivision: String?
-
The code of the first level of country administrative hierarchy. Can be a state, province, region, dependent country, etc. For example: “CA”.
Declaration
Swift
public let countrySubdivisionCode: String?
-
The full name of the first level of a country administrative hierarchy. This field only appears in case countrySubdivision is presented in an abbreviated form. Supported only for USA, Canada, and Great Britain.
Declaration
Swift
public let countrySubdivisionName: String?
-
Postal(Zip) code. For example: “95113”.
Declaration
Swift
public let postalCode: String?
-
Extended postal code. For example: “951131002”
Declaration
Swift
public let extendedPostalCode: String?
-
Two-letter country code. For example: “US”.
Declaration
Swift
public let countryCode: String?
-
Full name of a country. For example: “United States Of America”.
Declaration
Swift
public let country: String?
-
3-letter ISO country code, For example: “USA”.
Declaration
Swift
public let countryCodeISO3: String?
-
Free-form address, For example: “33 S lst St, San Jose, CA 95113”
Declaration
Swift
public let freeformAddress: String?
-
Local name.
Declaration
Swift
public let localName: String?
-
The text containing both street name and number
Declaration
Swift
public let streetNameAndNumber: String?
-
The local name
Declaration
Swift
public let postalName: String?
-
The name of the neighborhood
Declaration
Swift
public let neighborhoodName: String?