create Search Engine With Built In Data Providers
Creates a new instance of the SearchEngine with default data providers ( com.mapbox.search.record.HistoryDataProvider and com.mapbox.search.record.FavoritesDataProvider) registered by default.
Return
A new instance of SearchEngine.
See also
Parameters
The type of the API used by the Search Engine. Default: ApiType.GEOCODING. Note that ApiType.GEOCODING is the only available publicly. You might need to contact sales to enable access for other API types.
SearchEngineSettings for the engine.
Executor used for events dispatching. Default: main thread.
Callback to handle result.
Deprecated
Specify ApiType explicitly
Replace with
createSearchEngineWithBuiltInDataProviders(apiType = , settings = )Deprecated, use a function that takes ApiType as a parameter.
Creates a new instance of the SearchEngine with ApiType.GEOCODING api type and default data providers ( com.mapbox.search.record.HistoryDataProvider and com.mapbox.search.record.FavoritesDataProvider) registered by default.
Note: The ApiType.GEOCODING API type is supported in compatibility mode. For example, the Geocoding v5 API will align with Search Box response types.
Additionally, please note that Points of Interest (POI) data will be removed from the Geocoding v5 API on December 20, 2024.
For more information, visit Geocoding v5 API page.
Return
A new instance of SearchEngine.
See also
Parameters
SearchEngine settings.
Executor used for events dispatching. Default: main thread.
Callback to handle result.