Package com.mapfactor.sdk.search
Interface Search
public interface Search
MapFactor SDK Search module
- Since:
- 1.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Search engine typesstatic enum
Setting current search engine result -
Method Summary
Modifier and TypeMethodDescriptionGet currently selected search engineGet search history managersetCurrentSearchEngine
(Search.SearchEngineType searchEngineType) Set current search enginevoid
startHistorySearch
(String filter, SearchResultsListener resultsListener) Start search within search history itemsvoid
startPoiSearch
(String poiNameToSearch, List<PoiCategoryGroup> poiCategoryGroups, List<PoiCategory> poiCategories, List<String> importCategoryIds, Coordinate searchCenter, int radiusMeters, SearchResultsListener resultsListener) Start search within given POI category groups and/or POI categories around specified locationvoid
startSearch
(String textToSearch, SearchResultsListener resultsListener) Start search for specified text
-
Method Details
-
setCurrentSearchEngine
@NonNull Search.SetSearchEngineResult setCurrentSearchEngine(@NonNull Search.SearchEngineType searchEngineType) Set current search engine- Parameters:
searchEngineType
- setting current search engine result- Returns:
- search result success/error code
- Since:
- 1.0
-
getCurrentSearchEngineType
Search.SearchEngineType getCurrentSearchEngineType()Get currently selected search engine- Returns:
- current search engine
-
startSearch
Start search for specified text- Parameters:
textToSearch
- text to search using current search engineresultsListener
- listener receiving search results- Since:
- 1.0
-
startPoiSearch
void startPoiSearch(@Nullable String poiNameToSearch, @Nullable List<PoiCategoryGroup> poiCategoryGroups, @Nullable List<PoiCategory> poiCategories, @Nullable List<String> importCategoryIds, @Nullable Coordinate searchCenter, int radiusMeters, @NonNull SearchResultsListener resultsListener) Start search within given POI category groups and/or POI categories around specified location- Parameters:
poiNameToSearch
- POI name to search for, null to search any POI within given categories and radiuspoiCategoryGroups
- list of POI category groups to search. The search will take place within all specified poiCategoryGroups, poiCategories and importCategories. Use Collections.singletonList(PoiCategoryGroup.AllPoi) as poiCategoryGroups parameter to search all POI categories.poiCategories
- list of POI categories to search. No need to specify those already present in poiCategoryGroups.importCategoryIds
- list of import category IDs to search withinsearchCenter
- location to search POI nearby. If null, latest known GPS position is used.radiusMeters
- distance in meters from searchCenter defining the search arearesultsListener
- listener receiving search results- Since:
- 1.0
-
startHistorySearch
Start search within search history items- Parameters:
filter
- text that all returned history items must contain or null to get all search history itemsresultsListener
- listener receiving search results- Since:
- 1.1
-
getSearchHistoryManager
Get search history manager- Returns:
- search history manager
- Since:
- 1.1
-