AddressQuery class

The options to specify an address query.

A AddressQuery.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 AddressQuery.query and determines the preferred language of the results.

Annotations

Constructors

AddressQuery(String query)
Constructs an AddressQuery from the provided text query.
factory
AddressQuery.withAreaCenter(String query, GeoCoordinates areaCenter)
Constructs an AddressQuery from the provided text query and geographical coordinates.
factory
AddressQuery.withAreaCenterInCountries(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.
factory

Properties

areaCenter GeoCoordinates?
Geographical coordinates of the center around which to provide the most relevant places. For Offline Search null value will result in SearchError.invalidArea
final
countries → List<CountryCode>
A list of countries that the query is applied in. Not supported in OfflineSearchEngine (only available for the Navigate license).
final
hashCode → int
The hash code for this object.
no setter
query → String
Desired address query to search.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.