AdministrativeUnit

public struct AdministrativeUnit : Equatable

Undocumented

  • Undocumented

    Declaration

    Swift

    public init(rawValue: SearchQueryType)
  • 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 static let country: AdministrativeUnit
  • Top-level sub-national administrative features, such as states in the United States or provinces in Canada or China.

    Declaration

    Swift

    public static let region: AdministrativeUnit
  • Postal codes used in country-specific national addressing systems.

    Declaration

    Swift

    public static let postcode: AdministrativeUnit
  • 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 static let district: AdministrativeUnit
  • 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 static let place: AdministrativeUnit
  • 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 static let locality: AdministrativeUnit
  • 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.

    Note

    Not available for reverse geocoding requests.

    Declaration

    Swift

    public static let neighborhood: AdministrativeUnit
  • The street, with no house number.

    Declaration

    Swift

    public static let street: AdministrativeUnit
  • Individual residential or business addresses as a street with house number. In a Japanese context, this is the block number and the house number. All components smaller than chome are designated as an address.

    Declaration

    Swift

    public static let address: AdministrativeUnit
  • Japanese administrative unit analogous to place.

    Declaration

    Swift

    public static let city: AdministrativeUnit
  • Japanese administrative unit analogous to region.

    Declaration

    Swift

    public static let prefecture: AdministrativeUnit
  • Japanese administrative unit analogous to locality.

    Declaration

    Swift

    public static let oaza: AdministrativeUnit
  • Japanese administrative unit analogous to neighborhood.

    Note

    Not available for reverse geocoding requests.

    Declaration

    Swift

    public static let chome: AdministrativeUnit
  • all

    Undocumented

    Declaration

    Swift

    public static var all: [AdministrativeUnit] { get }