public struct AddressElements : Hashable

Defines query address elements which will be used to build address hierarchy during searches. It is advised to provide at least one intermediate address element when a large address element is provided for small admin area searches. For example if a user is building a query for a street and providing only country as an address element, consider providing city along with it.

  • An optional field of country name or code, which will be used to get the results only from the given country.

    Declaration

    Swift

    public var country: String?
  • An optional field of city name, which will be used to get the results only from the given city.

    Declaration

    Swift

    public var city: String?
  • An optional field of postal code, which will be used to get the results only within the given postal code.

    Declaration

    Swift

    public var postalCode: String?
  • An optional field of district, which will be used to get the results only from the given district.

    Declaration

    Swift

    public var district: String?
  • Creates a new instance.

    Declaration

    Swift

    public init(country: String? = nil, city: String? = nil, postalCode: String? = nil, district: String? = nil)