Package org.mapsforge.poi.storage
Interface PoiCategoryFilter
- All Known Implementing Classes:
ExactMatchPoiCategoryFilter,WhitelistPoiCategoryFilter
public interface PoiCategoryFilter
Interface for filtering accepted POIs based on their tag.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategory(PoiCategory category) Adds a category to the whitelist.Returns a set of top-level categories for all accepted categories.booleanisAcceptedCategory(PoiCategory category) Returns true if a POI's category is accepted and therefore shall be added to the poi file.
-
Method Details
-
addCategory
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
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.
-