---
title: excluding(categories)
framework: mapkitjs
role: symbol
role_heading: Static Method
path: mapkitjs/pointofinterestfilter/excluding
---

# excluding(categories)

Creates a point-of-interest filter that excludes categories from a list that you provide.

## Declaration

```data
static excluding(
    categories: PointOfInterestCategory[],
): PointOfInterestFilter;
```

## See Also

### Creating filters

- [including(categories)](mapkitjs/pointofinterestfilter/including.md)
- [excludingAllCategories](mapkitjs/pointofinterestfilter/excludingallcategories.md)
- [includingAllCategories](mapkitjs/pointofinterestfilter/includingallcategories.md)
