Class StructuredQuery.AddressElements

java.lang.Object
com.here.sdk.search.StructuredQuery.AddressElements
Enclosing class:
StructuredQuery

public static final class StructuredQuery.AddressElements extends Object

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.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    An optional field of city name, which will be used to get the results only from the given city.
    An optional field of country name or code, which will be used to get the results only from the given country.
    An optional field of district, which will be used to get the results only from the given district.
    An optional field of postal code, which will be used to get the results only within the given postal code.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • country

      @Nullable public String country

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

    • city

      @Nullable public String city

      An optional field of city name, which will be used to get the results only from the given city.

    • postalCode

      @Nullable public String postalCode

      An optional field of postal code, which will be used to get the results only within the given postal code.

    • district

      @Nullable public String district

      An optional field of district, which will be used to get the results only from the given district.

  • Constructor Details

    • AddressElements

      public AddressElements()

      Creates a new instance.

  • Method Details