Instance Property

headingAccuracy

The maximum deviation (measured in degrees) between the reported heading and the true geomagnetic heading.

Declaration

@property(readonly, nonatomic) CLLocationDirection headingAccuracy;

Discussion

A positive value in this property represents the potential error between the value reported by the magneticHeading property and the actual direction of magnetic north. Thus, the lower the value of this property, the more accurate the heading. A negative value means that the reported heading is invalid, which can occur when the device is uncalibrated or there is strong interference from local magnetic fields.

See Also

Accessing the Heading Attributes

magneticHeading

The heading (measured in degrees) relative to magnetic north.

trueHeading

The heading (measured in degrees) relative to true north.

timestamp

The time at which this heading was determined.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software