Interface Search


public interface Search
MapFactor SDK Search module
Since:
1.0
  • 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

      void startSearch(@NonNull String textToSearch, @NonNull SearchResultsListener resultsListener)
      Start search for specified text
      Parameters:
      textToSearch - text to search using current search engine
      resultsListener - 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 radius
      poiCategoryGroups - 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 within
      searchCenter - location to search POI nearby. If null, latest known GPS position is used.
      radiusMeters - distance in meters from searchCenter defining the search area
      resultsListener - listener receiving search results
      Since:
      1.0
    • startHistorySearch

      void startHistorySearch(@Nullable String filter, @NonNull SearchResultsListener resultsListener)
      Start search within search history items
      Parameters:
      filter - text that all returned history items must contain or null to get all search history items
      resultsListener - listener receiving search results
      Since:
      1.1
    • getSearchHistoryManager

      @NonNull SearchHistory getSearchHistoryManager()
      Get search history manager
      Returns:
      search history manager
      Since:
      1.1