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 coordinatesaccuracy
- Position accuracy in metersheading
- 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 sublocationlocationHeading
- Similiar toheading
but with respect tosublocation north
(top of the image)