AddressQuery (API Reference)
Class AddressQuery
The options to specify an address query. A query can consist of parts of an address or full addresses,
optionally comma separated. AddressQuery should only be used to search for parts of the address,
excluding the POI name. For example, "Invalidenstraße 116, Berlin, Germany" is appropriate, whereas
"HERE, Invalidenstraße 116, Berlin, Germany" is not. To be able to include the POI name, use
TextQuery instead. SearchOptions.languageCode specifies the language of the
query and determines the preferred language of the results.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal GeoCoordinatesGeographical coordinates of the center around which to provide the most relevant places.final List<CountryCode>A list of countries that the query is applied in.final StringDesired address query to search. -
Constructor Summary
ConstructorsConstructorDescriptionAddressQuery(String query) Constructs an AddressQuery from the provided text query.AddressQuery(String query, GeoCoordinates areaCenter) Constructs an AddressQuery from the provided text query and geographical coordinates.AddressQuery(String query, GeoCoordinates areaCenter, List<CountryCode> countries) Constructs an AddressQuery from the provided text query, geographical coordinates and the list of countries the query is applied in. -
Method Summary
-
Field Details
-
query
Desired address query to search.
-
areaCenter
Geographical coordinates of the center around which to provide the most relevant places. For Offline Search null value will result in
SearchError.INVALID_AREA -
countries
A list of countries that the query is applied in. Not supported in
OfflineSearchEngine(only available for the Navigate license).
-
-
Constructor Details
-
AddressQuery
Constructs an AddressQuery from the provided text query and geographical coordinates.
- Parameters:
query-Desired query to search.
areaCenter-Geographical coordinates of the center around which to provide the most relevant places.
-
AddressQuery
public AddressQuery(@NonNull String query, @NonNull GeoCoordinates areaCenter, @NonNull List<CountryCode> countries) Constructs an AddressQuery from the provided text query, geographical coordinates and the list of countries the query is applied in.
- Parameters:
query-Desired query to search.
areaCenter-Geographical coordinates of the center around which to provide the most relevant places.
countries-A list of countries that the query is applied in.
-
AddressQuery
Constructs an AddressQuery from the provided text query. Not supported in
OfflineSearchEngine(only available for the Navigate license).- Parameters:
query-Desired query to search.
-
-
Method Details