suggestByText method - SearchInterface class - search library - Dart API
suggestByText
suggestByText abstract method
- TextQuery query,
- SearchOptions options,
- SuggestCallback callback
Performs an asynchronous request to suggest places for text queries and returns suggestions sorted by relevance.
Note that while OfflineSearchEngine includes as many details as are available,
SearchEngine includes only the information that is relevant for autosuggest use cases.
Complete details can be obtained by searching with PlaceIdQuery.
-
queryDesired text 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 suggestByText(TextQuery query, SearchOptions options, SuggestCallback callback);