Interface PoiCategoryFilter

All Known Implementing Classes:
ExactMatchPoiCategoryFilter, WhitelistPoiCategoryFilter

public interface PoiCategoryFilter
Interface for filtering accepted POIs based on their tag.
  • Method Details

    • addCategory

      void addCategory(PoiCategory category)
      Adds a category to the whitelist.
      Parameters:
      category - The category to be added.
    • getAcceptedCategories

      Collection<PoiCategory> getAcceptedCategories()
      Returns:
      Set of all categories that are accepted by this filter.
    • getAcceptedSuperCategories

      Collection<PoiCategory> getAcceptedSuperCategories()
      Returns a set of top-level categories for all accepted categories. These are all accepted categories whose parent category is null or not an accepted category.
      Returns:
      Set of top-level categories for all accepted categories.
    • isAcceptedCategory

      boolean isAcceptedCategory(PoiCategory category)
      Returns true if a POI's category is accepted and therefore shall be added to the poi file.
      Parameters:
      category - The POI's category.
      Returns:
      true if a POI's category is accepted and therefore shall be added to the poi file.