AddressQuery
public struct AddressQuery : Hashable
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.
-
Desired address query to search.
Declaration
Swift
public let query: String -
Geographical coordinates of the center around which to provide the most relevant places. For Offline Search null value will result in
SearchError.invalidAreaDeclaration
Swift
public let areaCenter: GeoCoordinates? -
A list of countries that the query is applied in. Not supported in
OfflineSearchEngine(only available for the Navigate license).Declaration
Swift
public let countries: [CountryCode] -
Constructs an AddressQuery from the provided text query and geographical coordinates.
Declaration
Swift
public init(_ query: String, near areaCenter: GeoCoordinates)Parameters
queryDesired query to search.
areaCenterGeographical coordinates of the center around which to provide the most relevant places.
-
Constructs an AddressQuery from the provided text query, geographical coordinates and the list of countries the query is applied in.
Declaration
Swift
public init(_ query: String, near areaCenter: GeoCoordinates, inCountries countries: [CountryCode])Parameters
queryDesired query to search.
areaCenterGeographical coordinates of the center around which to provide the most relevant places.
countriesA list of countries that the query is applied in.
-
Constructs an AddressQuery from the provided text query. Not supported in
OfflineSearchEngine(only available for the Navigate license).Declaration
Swift
public init(_ query: String)Parameters
queryDesired query to search.