searchByPickedPlace abstract method

TaskHandle searchByPickedPlace(
  1. PickedPlace pickedPlace,
  2. LanguageCode? languageCode,
  3. PlaceIdSearchCallback callback
)

Performs an asynchronous search for a Place based on the content found in PickedPlace.

If PickedPlace data is obtained from the offline map, it may happen that the newer version that is used by the online service represented by SearchEngine no longer contains the related POI. In that case, SearchError.noResultsFound error is reported. When that happens, you may try to obtain the POI from the offline map by calling OfflineSearchEngine.searchByPickedPlace. Note that not all editions include the OfflineSearchEngine.

  • pickedPlace The content picked from map.

  • languageCode The preferred language for the search result. When unset or unsupported language is chosen, result will be returned in the local language.

  • 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 searchByPickedPlace(PickedPlace pickedPlace, LanguageCode? languageCode, PlaceIdSearchCallback callback);