# Place

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/model/Place.java+class:androidx.car.app.model.Place) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

*** ** * ** ***


```
@CarProtocol
public final class Place
```

<br />

*** ** * ** ***

Represents a geographical location and additional information on how to display it.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/car/app/model/Place.Builder` A builder of `https://developer.android.com/reference/androidx/car/app/model/Place`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/model/Place#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html other)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/model/CarLocation` | `https://developer.android.com/reference/androidx/car/app/model/Place#getLocation()()` Returns the `https://developer.android.com/reference/androidx/car/app/model/CarLocation` instance associated with this place. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/PlaceMarker` | `https://developer.android.com/reference/androidx/car/app/model/Place#getMarker()()` Returns the `https://developer.android.com/reference/androidx/car/app/model/PlaceMarker` object associated with this place or `null` if one is not set. |
| `int` | `https://developer.android.com/reference/androidx/car/app/model/Place#hashCode()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/car/app/model/Place#toString()()` |

## Public methods

### equals

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

### getLocation

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

```
public @NonNull CarLocation getLocation()
```

Returns the `https://developer.android.com/reference/androidx/car/app/model/CarLocation` instance associated with this place.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/model/Place.Builder#Builder(androidx.car.app.model.CarLocation)` |   |

### getMarker

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

```
public @Nullable PlaceMarker getMarker()
```

Returns the `https://developer.android.com/reference/androidx/car/app/model/PlaceMarker` object associated with this place or `null` if one is not set.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/model/Place.Builder#setMarker(androidx.car.app.model.PlaceMarker)` |   |

### hashCode

```
public int hashCode()
```

### toString

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