Class

MKPointOfInterestFilter

A list that specifies point of interest categories to be included or excluded in a map view, local search, or local search completer.

Declaration

class MKPointOfInterestFilter : NSObject

Overview

You can apply a point of interest filter in a map view (pointOfInterestFilter), a local search request (pointOfInterestFilter), a search completer (pointOfInterestFilter), and in snapshot options (pointOfInterestFilter).

Topics

Creating Filters

class var excludingAll: MKPointOfInterestFilter

A filter that excludes all point of interest categories.

class var includingAll: MKPointOfInterestFilter

A filter that includes all point of interest categories.

init(excluding: [MKPointOfInterestCategory])

Initialize the point of interest filter with the provided list of categories to exclude.

init(including: [MKPointOfInterestCategory])

Initialize the point of interest filter with the provided list of categories to include.

Querying FIlter Behavior

func excludes(MKPointOfInterestCategory) -> Bool

Returns a Boolean value indicating whether the filter excludes the point of interest category.

func includes(MKPointOfInterestCategory) -> Bool

Returns a Boolean value indicating whether the filter includes the point of interest category.

Relationships

Inherits From

See Also

Points of Interest

Optimizing Map Views with Filtering and Camera Constraints

Display a map that is relevant to the user by filtering points of interest and search results, and constraining the visible region.

struct MKPointOfInterestCategory

Point of interest categories.