Skip to main content

ARDK for Android/com.nianticlabs.ardk.vps/VPSSession/getDevicePoseAsGeolocation

getDevicePoseAsGeolocation

[androidJvm]
fun getDevicePoseAsGeolocation(pose: Pose): ARDKResult<GeolocationData, VpsGraphOperationError>

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.

Return​

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

Parameters​

androidJvm

poseA pose in the device's AR space.

See also​

VPSSession.configure