Skip to main content
API Reference com.nianticspatial.nsdk.vps VPSSession

getDevicePoseAsGeolocation

Use VPS to get an estimated geolocation for a pose in AR space. Requires that the session was configured with enableGpsCorrectionForContinuousLocalization enabled and the user be currently localized. Note: Test (private) scans currently don't have GPS data so they cannot be used with this functionality.

Declaration

fun getDevicePoseAsGeolocation(pose: Pose): NSDKResult<GeolocationData, VpsGraphOperationError>

Summary

Use VPS to get an estimated geolocation for a pose in AR space. Requires that the session was configured with enableGpsCorrectionForContinuousLocalization enabled and the user be currently localized. Note: Test (private) scans currently don't have GPS data so they cannot be used with this functionality.

Returns

The estimated geolocation, if available, or an error code otherwise.


ON THIS PAGE