# Place

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/model/Place "View this page in Java")

<br />

```
@CarProtocol
class Place
```

<br />

*** ** * ** ***

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

## Summary

|                                                                                                ### Nested types                                                                                                |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[Place.Builder](https://developer.android.com/reference/kotlin/androidx/car/app/model/Place.Builder) A builder of[Place](https://developer.android.com/reference/kotlin/androidx/car/app/model/Place). |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                 | [equals](https://developer.android.com/reference/kotlin/androidx/car/app/model/Place#equals(java.lang.Object))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`                                                                          |
| [CarLocation](https://developer.android.com/reference/kotlin/androidx/car/app/model/CarLocation)    | [getLocation](https://developer.android.com/reference/kotlin/androidx/car/app/model/Place#getLocation())`()` Returns the[CarLocation](https://developer.android.com/reference/kotlin/androidx/car/app/model/CarLocation)instance associated with this place.                     |
| [PlaceMarker](https://developer.android.com/reference/kotlin/androidx/car/app/model/PlaceMarker)`?` | [getMarker](https://developer.android.com/reference/kotlin/androidx/car/app/model/Place#getMarker())`()` Returns the[PlaceMarker](https://developer.android.com/reference/kotlin/androidx/car/app/model/PlaceMarker)object associated with this place or`null`if one is not set. |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                         | [hashCode](https://developer.android.com/reference/kotlin/androidx/car/app/model/Place#hashCode())`()`                                                                                                                                                                           |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                   | [toString](https://developer.android.com/reference/kotlin/androidx/car/app/model/Place#toString())`()`                                                                                                                                                                           |

## Public functions

### equals

```
fun equals(other: Any?): Boolean
```  

### getLocation

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

```
fun getLocation(): CarLocation
```

Returns the[CarLocation](https://developer.android.com/reference/kotlin/androidx/car/app/model/CarLocation)instance associated with this place.  

|                                                                  See also                                                                  |
|--------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/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)  

```
fun getMarker(): PlaceMarker?
```

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

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

### hashCode

```
fun hashCode(): Int
```  

### toString

```
fun toString(): String
```