# GetDeviceGeolocation Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.XRSubsystems.XRVps2Subsystem.GetDeviceGeolocation/ 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 | 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. | ---