ARSession has the getGeoLocation(forPoint: … method. Is there also a way to obtain the heading relative to north given a directional vector within the scene or for the device (point of view)?

We are not exposing the heading directly.

You can create any ARGeoAnchor in your vicinity and then compare its transform with your camera’s transform. Since ARGeoAnchors are always aligned to East-Up-South, you can derive any global camera orientation by comparing the camera’s transform to the ARGeoAnchor transform.

Tagged with: