<!--
{
  "availability" : [
    "MapKit JS: 5.32.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/SearchOptions/pointOfInterestFilter",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Property",
  "symbol" : {
    "kind" : "Interface Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structp/mapkit.SearchOptions/pointOfInterestFilter"
  },
  "title" : "pointOfInterestFilter"
}
-->

# pointOfInterestFilter

A filter for including or excluding point-of-interest categories in search results.

```
pointOfInterestFilter?: PointOfInterestFilter;
```

## Discussion

If you provide a [`PointOfInterestFilter`](/documentation/MapKitJS/PointOfInterestFilter) and set [`includePointsOfInterest`](/documentation/MapKitJS/SearchConstructorOptions/includePointsOfInterest) to `false` in the constructor, the filter overrides the Boolean and the search returns points of interest allowed by the filter.

To include or exclude all points of interest use [`filterIncludingAllCategories`](/documentation/MapKitJS/mapkit/filterIncludingAllCategories) or [`filterExcludingAllCategories`](/documentation/MapKitJS/mapkit/filterExcludingAllCategories), respectively.

---

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)