Address
public struct Address : Codable
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? -
Locality. Can be a city, town, community, etc. For example: “San Jose”.
Declaration
Swift
public let municipality: String? -
First level of country administrative hierarchy. Can be a state, province, region, dependent country, etc. For example: “CA”.
Declaration
Swift
public let countrySubdivision: 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: like “33 S lst St, San Jose, CA 95113”
Declaration
Swift
public let freeformAddress: String? -
Local name.
Declaration
Swift
public let localName: 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? -
Subdivision level of locality. Can be a neighborhood, suburb, city, district, village, etc.
Declaration
Swift
public let municipalitySubdivision: String? -
The text containing both street name and number
Declaration
Swift
public let streetNameAndNumber: String? -
Third level of country subdivision
Declaration
Swift
public let countryTertiarySubdivision: String? -
The name of the neighborhood
Declaration
Swift
public let neighborhoodName: String? -
The local name
Declaration
Swift
public let postalName: String? -
The code for the first level of country administrative hierarchy
Declaration
Swift
public let countrySubdivisionCode: String?
Address Structure Reference