Class StructuredQuery.AddressElements

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

    public static final class StructuredQuery.AddressElements
    extends java.lang.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
      java.lang.String city
      An optional field of city name, which will be used to get the results only from the given city.
      java.lang.String country
      An optional field of country name or code, which will be used to get the results only from the given country.
      java.lang.String district
      An optional field of district, which will be used to get the results only from the given district.
      java.lang.String postalCode
      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
      AddressElements()
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • country

        @Nullable
        public java.lang.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 java.lang.String city

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

      • postalCode

        @Nullable
        public java.lang.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 java.lang.String district

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

    • Constructor Detail

      • AddressElements

        public AddressElements()

        Creates a new instance.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object