suggestByAddressElements abstract method
- StructuredQuery query,
- SearchOptions options,
- SuggestCallback callback
Performs an asynchronous request to suggest places for a StructuredQuery built with address elements and returns candidate suggestions sorted by relevance.
For example, when user wants suggestions of type street for a text query Invalidenstraße in Berlin, it can be searched
by preparing StructuredQuery providing StructuredQuery.query as Invalidenstraße,
StructuredQuery.areaCenter, StructuredQueryAddressElements.country as Germany,
StructuredQueryAddressElements.city as Berlin and StructuredQueryResultType as STREET.
The suggestions will be presented only from the given geographical area.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
queryDesired structured query to search. -
optionsSearch options. -
callbackCallback which receives the result on the main thread.
Returns TaskHandle. Handle that will be used to manipulate the execution of the task.
Implementation
TaskHandle suggestByAddressElements(StructuredQuery query, SearchOptions options, SuggestCallback callback);