# getGeolocation Source: https://www.nianticspatial.com/docs/api/swift/NSDK.NSDKVps2Session.method-getGeolocation/ getGeolocation --- ## Declaration func getGeolocation(pose: simd_float4x4) -> Vps2GeolocationData? #### Summary Converts an AR pose to a geolocation using the latest localization. The inverse of getPose(location:). pose can be any pose in AR tracking space, not just the camera's. The heading is the direction of the pose's forward axis projected onto the horizontal plane, which matches .cameraDirection in deviceGeolocation(headingMode:). .deviceTop is not offered because it depends on the display orientation, which an arbitrary pose does not have. The heading is not meaningful when the forward axis points straight up or down, or close to it. #### Returns The latitude, longitude, altitude, heading and orientation of pose, or nil if VPS2 has not localized yet. ### Parameters | Name | Type | Summary | | --- | --- | --- | | pose | simd_float4x4 | The 4x4 transform of the pose in ARKit tracking space, with translation in meters. Any scale is ignored. | ---