Instance Method

contains(_:)

Returns a Boolean value indicating whether the region contains the specified coordinate.

Declaration

func contains(_ coordinate: CLLocationCoordinate2D) -> Bool

Parameters

coordinate

The coordinate to test against the region.

Return Value

true if the coordinate lies within the region’s boundaries or false if it does not.

Discussion

In iOS, use a CLCircularRegion object to manage geographic regions.

See Also

Deprecated

init(circularRegionWithCenter: CLLocationCoordinate2D, radius: CLLocationDistance, identifier: String)

Initializes and returns a region object defining a circular area.

Deprecated
var center: CLLocationCoordinate2D

The center point of the region.

Deprecated
var radius: CLLocationDistance

The radius (measured in meters) that defines the region’s outer boundary.

Deprecated