Skip to main content
API Reference com.nianticspatial.nsdk.wps WPSSession

getLatestLocation

Gets the transform of the latest geolocation estimate. This exposes the low level data that can be used to pin geolocated content into the AR coordinate system. To retrieve simplified device specific coordinates and heading, see [getDevicePoseAsGeolocation].

Declaration

fun getLatestLocation(): NSDKResult<WPSLocation, WPSError>

Summary

Gets the transform of the latest geolocation estimate. This exposes the low level data that can be used to pin geolocated content into the AR coordinate system. To retrieve simplified device specific coordinates and heading, see [getDevicePoseAsGeolocation].

Returns

The location transform, if available, or an error code otherwise.


ON THIS PAGE