Skip to main content
←API Reference ←NSDK ←NSDKVps2Session

getLatestLocalization


Declaration​

func getLatestLocalization() -> Vps2Localization

Summary​

Gets a copy of the latest VPS2 localization.
The localization contains all data required to convert between AR tracking space and
geolocation: a transform from the tracking space origin to a geographic reference point.
It is not relative to the current camera pose.
If VPS2 has not yet localized, the localization's trackingState will be .unavailable
and the geolocation fields should be considered invalid.
For reactive use, subscribe to $latestLocalization instead of calling this directly.

Returns​

The latest VPS2 localization.