Class NCPosition - Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0 GitHub Wiki

NCPosition class describing user's position.

Referenced from: NCPositionListener.

@interface NCPosition : NSObject
- (nonnull instancetype)initWithPoint:(nonnull NCGlobalPoint *)point
                             accuracy:(double)accuracy
                              heading:(nullable NSNumber *)heading
                        locationPoint:(nullable NCLocationPoint *)locationPoint
                      locationHeading:(nullable NSNumber *)locationHeading;

+ (nonnull instancetype)positionWithPoint:(nonnull NCGlobalPoint *)point
                                 accuracy:(double)accuracy
                                  heading:(nullable NSNumber *)heading
                            locationPoint:(nullable NCLocationPoint *)locationPoint
                          locationHeading:(nullable NSNumber *)locationHeading;

@property (nonatomic, readonly, nonnull) NCGlobalPoint * point;

@property (nonatomic, readonly) double accuracy;

@property (nonatomic, readonly, nullable) NSNumber * heading;

@property (nonatomic, readonly, nullable) NCLocationPoint * locationPoint;

@property (nonatomic, readonly, nullable) NSNumber * locationHeading;

@end

Public fields

  • point - Position in WGS84 coordinates
  • accuracy - Position accuracy in meters
  • heading - Angle of rotation about the -Z axis (in radians). This value represents the angle between the device's Y axis and the magnetic north pole. When facing north, this angle is 0, when facing south, this angle is pi. Likewise, when facing east, this angle is pi/2, and when facing west, this angle is -pi/2. The range of values is [-pi, pi].
  • locationPoint - Position in metrics coordinates at calculated location and sublocation
  • locationHeading - Similiar to heading but with respect to sublocation north (top of the image)