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 geoWithinquery.
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
centerCenter of the circle.
radiansRadius 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
centerCenter of the circle.
radiusRadius of the circle.
View on GitHub
Install in Dash