# GeospatialTester

Artifact: [androidx.xr.arcore:arcore-testing](https://developer.android.com/jetpack/androidx/releases/xr-arcore) [View Source](https://cs.android.com/search?q=file:androidx/xr/arcore/testing/GeospatialTester.kt+class:androidx.xr.arcore.testing.GeospatialTester) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

*** ** * ** ***


```
class GeospatialTester
```

<br />

*** ** * ** ***

Tests `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial` operations in unit tests.

## Summary

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/android/util/Range.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html>` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/GeospatialTester#allowedAnchorLatitudeRange()` the acceptable range of latitude values that `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial` can use when creating Anchors, with a default of `-90..90` (inclusive) |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose?` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/GeospatialTester#expectedAnchorPose()` the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` of the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Anchor` that will be returned by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createAnchor(kotlin.Double,kotlin.Double,kotlin.Double,androidx.xr.runtime.math.Quaternion)` or `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createAnchorOnSurface(kotlin.Double,kotlin.Double,kotlin.Double,androidx.xr.runtime.math.Quaternion,androidx.xr.arcore.GeospatialSurface)` |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/GeospatialTester#expectedGeospatialPose()` the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose` that would be created by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createGeospatialPoseFromPose(androidx.xr.runtime.math.Pose)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/GeospatialTester#expectedHorizontalAccuracy()` the horizontal accuracy of the value returned by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createGeospatialPoseFromPose(androidx.xr.runtime.math.Pose)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/GeospatialTester#expectedOrientationYawAccuracy()` the yaw accuracy of the value returned by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createGeospatialPoseFromPose(androidx.xr.runtime.math.Pose)` |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/GeospatialTester#expectedPose()` the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` that would be created by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createPoseFromGeospatialPose(androidx.xr.runtime.math.GeospatialPose)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/GeospatialTester#expectedVerticalAccuracy()` the vertical accuracy of the value returned by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createGeospatialPoseFromPose(androidx.xr.runtime.math.Pose)` |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/VpsAvailabilityResult` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/GeospatialTester#expectedVpsResult()` `https://developer.android.com/reference/kotlin/androidx/xr/arcore/VpsAvailabilityResult` that will be returned when checking for VPS availability if not null |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial.GeospatialTrackingState` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/GeospatialTester#state()` the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial.GeospatialTrackingState` device's Geospatial communication |

## Public properties

### allowedAnchorLatitudeRange

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var allowedAnchorLatitudeRange: Range<Double>
```

the acceptable range of latitude values that `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial` can use when creating Anchors, with a default of `-90..90` (inclusive)

### expectedAnchorPose

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var expectedAnchorPose: Pose?
```

the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` of the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Anchor` that will be returned by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createAnchor(kotlin.Double,kotlin.Double,kotlin.Double,androidx.xr.runtime.math.Quaternion)` or `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createAnchorOnSurface(kotlin.Double,kotlin.Double,kotlin.Double,androidx.xr.runtime.math.Quaternion,androidx.xr.arcore.GeospatialSurface)`

### expectedGeospatialPose

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var expectedGeospatialPose: GeospatialPose
```

the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose` that would be created by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createGeospatialPoseFromPose(androidx.xr.runtime.math.Pose)`

### expectedHorizontalAccuracy

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var expectedHorizontalAccuracy: Double
```

the horizontal accuracy of the value returned by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createGeospatialPoseFromPose(androidx.xr.runtime.math.Pose)`

### expectedOrientationYawAccuracy

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var expectedOrientationYawAccuracy: Double
```

the yaw accuracy of the value returned by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createGeospatialPoseFromPose(androidx.xr.runtime.math.Pose)`

### expectedPose

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var expectedPose: Pose
```

the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` that would be created by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createPoseFromGeospatialPose(androidx.xr.runtime.math.GeospatialPose)`

### expectedVerticalAccuracy

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var expectedVerticalAccuracy: Double
```

the vertical accuracy of the value returned by `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial#createGeospatialPoseFromPose(androidx.xr.runtime.math.Pose)`

### expectedVpsResult

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var expectedVpsResult: VpsAvailabilityResult
```

`https://developer.android.com/reference/kotlin/androidx/xr/arcore/VpsAvailabilityResult` that will be returned when checking for VPS availability if not null

### state

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var state: Geospatial.GeospatialTrackingState
```

the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Geospatial.GeospatialTrackingState` device's Geospatial communication