# LocationCorrespondences

# LocationCorrespondences

Artifact:[androidx.test.ext:truth](https://developer.android.com/jetpack/androidx/releases/test-ext)  
[View Source](https://cs.android.com/search?q=file:androidx/test/ext/truth/location/LocationCorrespondences.java+class:androidx.test.ext.truth.location.LocationCorrespondences)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/test/ext/truth/location/LocationCorrespondences "View this page in Java")

<br />

```
class LocationCorrespondences
```

<br />

*** ** * ** ***

Collection of[com.google.common.truth.Correspondence](https://truth.dev/api/0.41/com/google/common/truth/Correspondence.html)helpers for asserting lists of[Location](https://developer.android.com/reference/android/location/Location.html)s.  

|                                                                                          See also                                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [comparingElementsUsing](https://truth.dev/api/0.41/com/google/common/truth/IterableSubject.html#comparingElementsUsing-com.google.common.truth.Correspondence&lt;? super A,? super E&gt;-) |   |

## Summary

|                                                                                                                                  ### Public functions                                                                                                                                   |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[Correspondence](https://truth.dev/api/0.41/com/google/common/truth/Correspondence.html)`<`[Location](https://developer.android.com/reference/android/location/Location.html)`!, `[Location](https://developer.android.com/reference/android/location/Location.html)`!>!` | [at](https://developer.android.com/reference/kotlin/androidx/test/ext/truth/location/LocationCorrespondences#at())`()`                                                                                                          |
| `java-static `[Correspondence](https://truth.dev/api/0.41/com/google/common/truth/Correspondence.html)`<`[Location](https://developer.android.com/reference/android/location/Location.html)`!, `[Location](https://developer.android.com/reference/android/location/Location.html)`!>!` | [equality](https://developer.android.com/reference/kotlin/androidx/test/ext/truth/location/LocationCorrespondences#equality())`()`                                                                                              |
| `java-static `[Correspondence](https://truth.dev/api/0.41/com/google/common/truth/Correspondence.html)`<`[Location](https://developer.android.com/reference/android/location/Location.html)`!, `[Location](https://developer.android.com/reference/android/location/Location.html)`!>!` | [nearby](https://developer.android.com/reference/kotlin/androidx/test/ext/truth/location/LocationCorrespondences#nearby(float))`(distanceM: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` |

## Public functions

### at

```
java-static fun at(): Correspondence<Location!, Location!>!
```  

### equality

```
java-static fun equality(): Correspondence<Location!, Location!>!
```  

### nearby

```
java-static fun nearby(distanceM: Float): Correspondence<Location!, Location!>!
```