Class StructuredQuery.AddressElements
Class StructuredQuery.AddressElements
- java.lang.Object
-
- com.here.sdk.search.StructuredQuery.AddressElements
-
- Enclosing class:
- StructuredQuery
public static final class StructuredQuery.AddressElements extends java.lang.ObjectDefines 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.StringcityAn optional field of city name, which will be used to get the results only from the given city.java.lang.StringcountryAn optional field of country name or code, which will be used to get the results only from the given country.java.lang.StringdistrictAn optional field of district, which will be used to get the results only from the given district.java.lang.StringpostalCodeAn 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 booleanequals(java.lang.Object obj)inthashCode()
-
-
-
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.
-
-