RLMGeospatialCircle
Objective-C
@interface RLMGeospatialCircle : NSObject <RLMGeospatial>
Swift
class RLMGeospatialCircle : NSObject, RLMGeospatial, @unchecked Sendable
A class that represents a circle, that can be used in a geospatial geoWithin
query.
Warning
This class cannot be persisted and can only be use within a geospatialgeoWithin
query.
-
Center of the circle.
Declaration
Objective-C
@property (strong, readonly) RLMGeospatialPoint *_Nonnull center;
Swift
var center: RLMGeospatialPoint { get }
-
Radius of the circle.
Declaration
Objective-C
@property (readonly) double radians;
Swift
var radians: Double { get }
-
Initialize a
RLMGeospatialCircle
, from its center and radius.Declaration
Objective-C
- (nullable instancetype)initWithCenter:(nonnull RLMGeospatialPoint *)center radiusInRadians:(double)radians;
Swift
init?(center: RLMGeospatialPoint, radiusInRadians radians: Double)
Parameters
center
Center of the circle.
radians
Radius of the circle.
-
Initialize a
GeoCircle
, from its center and radius.Declaration
Objective-C
- (nonnull instancetype)initWithCenter:(nonnull RLMGeospatialPoint *)center radius:(nonnull RLMDistance *)radius;
Swift
init(center: RLMGeospatialPoint, radius: RLMDistance)
Parameters
center
Center of the circle.
radius
Radius of the circle.