---
title: "includes(_:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkaddressfilter/includes(_:)"
---

# includes(_:)

Indicates whether options are included for filtering.

## Declaration

```swift
func includes(_ options: MKAddressFilter.Options) -> Bool
```

## Parameters

- `options`: The filters to check for inclusion.

## Return Value

Return Value Returns true if the passed options are included in the filtering options; otherwise, false.

## Discussion

Discussion A filter includes or excludes a set of filter options. Use this method to query the filter instance for one or more options. let filter = MKAddressFilter(including: [.locality,  .subLocality]) let result = filter.includes(.locality) The method returns true because filter includes Locality.

## See Also

### Filtering results

- [MKAddressFilter.Options](mapkit/mkaddressfilter/options.md)
- [excludingAll](mapkit/mkaddressfilter/excludingall.md)
- [includingAll](mapkit/mkaddressfilter/includingall.md)
- [excludes(_:)](mapkit/mkaddressfilter/excludes(_:).md)
