CircularRegion

@objc(UACircularRegion)
public class CircularRegion : NSObject

A circular region defines a radius, and latitude and longitude from its center.

  • Default constructor.

    Declaration

    Swift

    @objc
    public init?(radius: Double, latitude: Double, longitude: Double)

    Parameters

    radius

    The radius of the circular region in meters.

    latitude

    The latitude of the circular region’s center point in degrees.

    longitude

    The longitude of the circular region’s center point in degrees.

    Return Value

    Circular region object or nil if error occurs

  • Factory method for creating a circular region.

    Declaration

    Swift

    @objc(circularRegionWithRadius:latitude:longitude:)
    public class func circularRegion(
        radius: Double,
        latitude: Double,
        longitude: Double
    ) -> CircularRegion?

    Parameters

    radius

    The radius of the circular region in meters.

    latitude

    The latitude of the circular region’s center point in degrees.

    longitude

    The longitude of the circular region’s center point in degrees.

    Return Value

    Circular region object or nil if error occurs