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

Vps2Localization


Declaration​

data class Vps2Localization

Summary​

Spatial mapping between the device's AR coordinate space and real-world geolocation, as determined by VPS2. If [trackingState] is [Vps2TrackingState.UNAVAILABLE], conversions are invalid and native conversion APIs will throw ArdkInvalidOperationStatusException.


Properties​

NameTypeSummary
isAvailableBoolean
-
localizedAssetVps2LocalizedAsset?
The VPS asset the device is localized to, or null before any visual localization has
succeeded against a submitted asset.
The device is anchored to one asset at a time; this changes when it localizes against a
different asset. It is independent of [trackingState], which describes the geolocation
estimate: an asset with no georeference still reports here while tracking stays coarse.
localizedAssetIdString
The localized VPS map asset; empty until a visual localization succeeds. See [localizedAsset].
localizedSiteIdString
Site of the localized asset; empty until a visual localization succeeds. See [localizedAsset].
referenceAltitudeMetresDouble
Estimated altitude of the camera in metres.
referenceLatitudeDegreesDouble
Estimated latitude of the camera in degrees.
referenceLongitudeDegreesDouble
Estimated longitude of the camera in degrees.
trackingStateVps2TrackingState
The state of VPS2 tracking. The other fields in this class are
only valid if the tracking state is not [Vps2TrackingState.UNAVAILABLE].
trackingStateValueInt
Raw tracking state value from native (ARDK_VPS2_TrackingState).
trackingToRelativeLonNegAltLatDoubleArray
Transform from tracking to lat/lon/alt in metres relative to reference point. 4x4 flattened column-major matrix. Length is always 16.