---
title: "excluding(_:)"
framework: mapkit
role: symbol
role_heading: Type Method
path: "mapkit/pointofinterestcategories/excluding(_:)-16bp0"
---

# excluding(_:)

Show all points of interest except those belonging to certain categories using the array you provide.

## Declaration

```swift
static func excluding(_ categories: [MKPointOfInterestCategory]) -> PointOfInterestCategories
```

## Parameters

- `categories`: An array of points of interest categories to exclude.

## Return Value

Return Value Returns a set of point of interest categories to exclude.

## See Also

### Modifying the categories to include or exclude

- [excluding(_:)](mapkit/pointofinterestcategories/excluding(_:)-4jo9h.md)
- [including(_:)](mapkit/pointofinterestcategories/including(_:)-22f7x.md)
- [including(_:)](mapkit/pointofinterestcategories/including(_:)-6flda.md)
