BDLocation
Objective-C
@interface BDLocation : NSObject <BDPDeepCopy>
Swift
class BDLocation : NSObject, BDPDeepCopy
Represents a recorded, geographic location; combining a geographic BDPointSDK
“point” with an altitude, as well as a known
accuracy in metres.
-
Initialisation methods for to creation a location.
Declaration
Objective-C
- (instancetype)initWithCLLocation:(CLLocation *)coreLocation;
Swift
init!(clLocation coreLocation: CLLocation!)
-
Initialisation methods for to creation a location.
Declaration
Objective-C
- (instancetype)initWithLatitude:(BDLocationDegrees)latitude longitude:(BDLocationDegrees)longitude altitude:(BDLocationDistance)altitude accuracy:(BDLocationAccuracy)accuracy altitudeAccuracy:(BDLocationAccuracy)altitudeAccuracy speed:(BDLocationSpeed)speed bearing:(BDLocationDirection)bearing;
Swift
init!(latitude: BDLocationDegrees, longitude: BDLocationDegrees, altitude: BDLocationDistance, accuracy: BDLocationAccuracy, altitudeAccuracy: BDLocationAccuracy, speed: BDLocationSpeed, bearing: BDLocationDirection)
-
The accuracy, in metres, to which this location is known. Sometimes referred to as the ‘horizontal accuracy’ or just ‘error’.
Declaration
Objective-C
@property (nonatomic) BDLocationAccuracy accuracy;
Swift
var accuracy: BDLocationAccuracy { get set }
-
The altitude accuracy, in metres, to which this location is known. Sometimes referred to as the ‘vertical accuracy’ or just ‘error’.
Declaration
Objective-C
@property (nonatomic) BDLocationAccuracy altitudeAccuracy;
Swift
var altitudeAccuracy: BDLocationAccuracy { get set }
-
The altitude of this geographic location in metres.
Declaration
Objective-C
@property (nonatomic) BDLocationDistance altitude;
Swift
var altitude: BDLocationDistance { get set }
-
The speed of the device at the point of the location.
Declaration
Objective-C
@property (nonatomic) BDLocationSpeed speed;
Swift
var speed: BDLocationSpeed { get set }
-
The bearing of the device at the point of the location.
Declaration
Objective-C
@property (nonatomic) BDLocationDirection bearing;
Swift
var bearing: BDLocationDirection { get set }
-
The location method provider of the device at the point of the location
Declaration
Objective-C
@property (nonatomic, readonly) NSString *provider;
Swift
var provider: String! { get }
-
GPS time of the location
Declaration
Objective-C
@property (nonatomic) NSDate *timestamp;
Swift
var timestamp: Date! { get set }
-
Publicly available methods for evaluating locations.
Declaration
Objective-C
- (BOOL)isEqualToLocation:(BDLocation *)location;
Swift
func isEqual(to location: BDLocation!) -> Bool