Skip to main content
←API Reference ←NSDK ←NSDKVps2Session

deviceGeolocation


Declaration​

func deviceGeolocation(headingMode: HeadingMode = .cameraDirection) -> Vps2GeolocationData?

Summary​

Gets the geolocation of the device's last known camera pose.
Equivalent to passing the last camera pose to getGeolocation(pose:), with the heading
derived according to headingMode.

Returns​

Geolocation data corresponding to the device's current pose,
or nil if VPS2 tracking is unavailable.

Parameters​

NameTypeSummary
headingModeHeadingMode
Controls how the heading is derived.
Use .cameraDirection when the device is upright,
or .deviceTop when flat or for a compass-style heading.