# getPose Source: https://www.nianticspatial.com/docs/api/swift/NSDK.NSDKVps2Session.method-getPose/ getPose --- ## Declaration func getPose(location: GeolocationData) -> Vps2Pose? #### Summary Converts a geolocation to an AR pose using the latest localization. Equivalent to getPose(localization:location:) with getLatestLocalization(). #### Returns The pose in ARKit coordinate space corresponding to the given geolocation, or nil if VPS2 has not localized yet. ### Parameters | Name | Type | Summary | | --- | --- | --- | | localization | Vps2Localization | The localization to use for the conversion. | | location | GeolocationData | The geolocation to convert. | --- ## Overload 1 func getPose(location: CLLocation) -> Vps2Pose? #### Summary Converts a CLLocation to an AR pose using the latest localization. #### Returns The pose in the device's AR coordinate space, or nil if VPS2 has not localized yet. ### Parameters | Name | Type | Summary | | --- | --- | --- | | localization | Vps2Localization | The localization to use for the conversion. | | location | GeolocationData | The geolocation to convert. | --- ## Overload 2 func getPose(localization: Vps2Localization, location: GeolocationData) -> Vps2Pose? #### Summary Converts a geolocation to an AR pose using the provided localization snapshot. In most cases you want the overload that uses the latest localization automatically; use this one only when a batch of geolocations must share a single snapshot. #### Returns The pose in ARKit coordinate space corresponding to the given geolocation, or nil if localization has no tracking state. ### Parameters | Name | Type | Summary | | --- | --- | --- | | localization | Vps2Localization | The localization to use for the conversion. | | location | GeolocationData | The geolocation to convert. | --- ## Overload 3 func getPose(localization: Vps2Localization, location: CLLocation) -> Vps2Pose? #### Summary Converts a CLLocation to an AR pose using the provided localization snapshot. #### Returns The pose in the device's AR coordinate space, or nil if localization has no tracking state. ### Parameters | Name | Type | Summary | | --- | --- | --- | | localization | Vps2Localization | The localization to use for the conversion. | | location | GeolocationData | The geolocation to convert. | --- ## Overload 4 func getPose(coordinate: CLLocationCoordinate2D, altitude: Double = 0) -> Vps2Pose? #### Summary Converts a coordinate and altitude to an AR pose using the latest localization. #### Returns The pose in the device's AR coordinate space, or nil if VPS2 has not localized yet. ### Parameters | Name | Type | Summary | | --- | --- | --- | | localization | Vps2Localization | The localization to use for the conversion. | | location | GeolocationData | The geolocation to convert. | --- ## Overload 5 func getPose(localization: Vps2Localization, coordinate: CLLocationCoordinate2D, altitude: Double = 0) -> Vps2Pose? #### Summary Converts a coordinate and altitude to an AR pose using the provided localization snapshot. #### Returns The pose in the device's AR coordinate space, or nil if localization has no tracking state. ### Parameters | Name | Type | Summary | | --- | --- | --- | | localization | Vps2Localization | The localization to use for the conversion. | | location | GeolocationData | The geolocation to convert. | ---