GetDeviceGeolocation
Get the geolocation of the device's last known camera pose.
Declaration
public XRVps2Geolocation GetDeviceGeolocation(HeadingMode headingMode = HeadingMode.CameraDirection)
Summary
Remarks
Equivalent to converting the last camera pose with TryGetGeolocation, with the
heading derived according to headingMode.
Returns
Geolocation data. Check tracking state for availability.
Parameters
| Name | Type | Summary |
|---|---|---|
| headingMode | HeadingMode | Controls how the heading is derived. Use CameraDirection when the device is upright, or DeviceTop when flat or for a compass-style heading. |
Get the geolocation of the device's last known camera pose.