Android 12 Developer Preview is here! Try it out, and give us your feedback!

Place

public final class Place
extends Object

java.lang.Object
   ↳ androidx.car.app.model.Place


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

Summary

Nested classes

class Place.Builder

A builder of Place

Public methods

boolean equals(Object other)
CarLocation getLocation()

Returns the CarLocation instance associated with this place.

PlaceMarker getMarker()

Returns the PlaceMarker object associated with this place or null if one is not set.

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getLocation

public CarLocation getLocation ()

Returns the CarLocation instance associated with this place.

Returns
CarLocation

getMarker

public PlaceMarker getMarker ()

Returns the PlaceMarker object associated with this place or null if one is not set.

Returns
PlaceMarker

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String