RLMGeospatialBox
Objective-C
@interface RLMGeospatialBox : NSObject <RLMGeospatial>
Swift
class RLMGeospatialBox : NSObject, RLMGeospatial, @unchecked Sendable
A class that represents a rectangle, that can be used in a geospatial geoWithin
query.
Warning
This class cannot be persisted and can only be use within a geospatialgeoWithin
query.
-
The bottom left corner of the rectangle.
Declaration
Objective-C
@property (strong, readonly) RLMGeospatialPoint *_Nonnull bottomLeft;
Swift
var bottomLeft: RLMGeospatialPoint { get }
-
The top right corner of the rectangle.
Declaration
Objective-C
@property (strong, readonly) RLMGeospatialPoint *_Nonnull topRight;
Swift
var topRight: RLMGeospatialPoint { get }
-
Initialize a
RLMGeospatialBox
, with values for bottom left corner and top right corner.Declaration
Objective-C
- (nonnull instancetype) initWithBottomLeft:(nonnull RLMGeospatialPoint *)bottomLeft topRight:(nonnull RLMGeospatialPoint *)topRight;
Swift
init(bottomLeft: RLMGeospatialPoint, topRight: RLMGeospatialPoint)
Parameters
bottomLeft
The bottom left corner of the rectangle.
topRight
The top right corner of the rectangle.