Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.XRSubsystems ←XRVps2Subsystem

GetDeviceGeolocation

Get the geolocation of the device's last known camera pose.

Declaration​

public XRVps2Geolocation GetDeviceGeolocation(HeadingMode headingMode = HeadingMode.CameraDirection)

Summary​

Get the geolocation of the device's last known camera pose.

Returns​

Geolocation data. Check tracking state for availability.

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.