Skip to main content
←API Reference ←com.nianticspatial.nsdk.vps2 ←Vps2Session

getPose

Convert a geolocation to an AR pose using a localization snapshot.

Declaration​

fun getPose(localization: Vps2Localization, location: GeolocationData): Pose

Summary​

Convert a geolocation to an AR pose using a localization snapshot.

Returns​

The AR pose corresponding to the given location.

Throws​

  • NsdkInvalidOperationStatusException — if the current localization tracking state is VPS2TrackingState.UNAVAILABLE.

Overload​

fun getPose(localization: Vps2Localization, location: Location): Pose

Summary​

Convert an Android Location to an AR pose using a localization snapshot.

Returns​

The AR pose corresponding to the given location.

Throws​

  • NsdkInvalidOperationStatusException — if the current localization tracking state is VPS2TrackingState.UNAVAILABLE.