<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/PointOfInterestCategories/excluding(_:)-16bp0",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI25PointOfInterestCategoriesV9excludingyACSaySo07MKPointfG8CategoryaGFZ"
  },
  "title" : "excluding(_:)"
}
-->

# excluding(_:)

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

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

## Parameters

`categories`

An array of points of interest categories to exclude.

## Return Value

Returns a set of point of interest categories to exclude.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)