suggestByText abstract method

TaskHandle suggestByText(
  1. TextQuery query,
  2. SearchOptions options,
  3. 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.

  • query Desired text query to search.

  • options Search options.

  • callback Callback 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);