# ExerciseRoute

Artifact: [androidx.health.connect:connect-client](https://developer.android.com/jetpack/androidx/releases/health-connect) [View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/records/ExerciseRoute.kt+class:androidx.health.connect.client.records.ExerciseRoute) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

*** ** * ** ***


```
public final class ExerciseRoute
```

<br />

*** ** * ** ***

Captures a route associated with an exercise session a user does.

Contains a sequence of location points, with timestamps, which do not have to be in order.

Location points contain a timestamp, longitude, latitude, and optionally altitude, horizontal and vertical accuracy.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseRoute.Location` Represents a single location point recorded during an exercise. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseRoute#ExerciseRoute(kotlin.collections.List)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseRoute.Location> route)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseRoute#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseRoute.Location>` | `https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseRoute#getRoute()()` |
| `int` | `https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseRoute#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseRoute#toString()()` |

## Public constructors

### ExerciseRoute

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public ExerciseRoute(@NonNull List<@NonNull ExerciseRoute.Location> route)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getRoute

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final @NonNull List<@NonNull ExerciseRoute.Location> getRoute()
```

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```