Class

CLCircularRegion

A circular geographic region, specified as a center point and radius.

Overview

The CLCircularRegion class defines the location and boundaries for a circular geographic region. You can use instances of this class to define geo fences for a specific location. The crossing of a geo fence’s boundary causes the location manager to notify its delegate.

Topics

Initializing a Circular Region

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

Initializes and returns a region object defining a circular geographic area.

Accessing a Region’s Attributes

var center: CLLocationCoordinate2D

The center point of the geographic area.

var radius: CLLocationDistance

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

Hit Testing in a Region

func contains(CLLocationCoordinate2D)

Returns a Boolean value indicating whether the geographic area contains the specified coordinate.

Relationships

Inherits From

See Also

Region Monitoring

Monitoring the User's Proximity to Geographic Regions

Use region monitoring to determine when the user enters or leaves a geographic region.

class CLRegion

An area that can be monitored.