Skip to main content

ARDK for Android/com.nianticlabs.ardk.wps/WPSSession/getLatestLocation

getLatestLocation

[androidJvm]
fun getLatestLocation(): ARDKResult<WPSLocation, WPSError>

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.

Return​

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

See also​

WPSSession.getDevicePoseAsGeolocation