BDLocation

@interface BDLocation : NSObject <BDPDeepCopy>

Represents a recorded, geographic location; combining a geographic @ref BDPointSDK “point” with an altitude, as well as a known accuracy in metres.

  • Undocumented

    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;
  • 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;
  • 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;
  • The geographic location of this location, over the surface of the earth, independent of it’s altitude.

    Declaration

    Objective-C

    @property (nonatomic) BDPoint *point;
  • The altitude of this geographic location in metres.

    Declaration

    Objective-C

    @property (nonatomic) BDLocationDistance altitude;
  • The speed of the device at the point of the location.

    Declaration

    Objective-C

    @property (nonatomic) BDLocationSpeed speed;
  • The bearing of the device at the point of the location.

    Declaration

    Objective-C

    @property (nonatomic) BDLocationDirection bearing;
  • The location method provider of the device at the point of the location

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *provider;
  • GPS time of the location

    Declaration

    Objective-C

    @property (nonatomic) NSDate *timestamp;
  • Publicly available methods for evaluating locations.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)other;
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)isEqualToLocation: (BDLocation *)location;
  • Undocumented

    Declaration

    Objective-C

    - (NSUInteger)hash;