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

Place

public class Place
extends Object

java.lang.Object
   ↳ com.google.android.libraries.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

static Place.Builder builder(LatLng latLng)

Create a builder for a Place instance.

boolean equals(Object other)
LatLng getLatLng()
PlaceMarker getMarker()
int hashCode()
Place.Builder newBuilder()

Returns a Place.Builder instance with the same data as this Place instance.

String toString()

Inherited methods

Public methods

builder

public static Place.Builder builder (LatLng latLng)

Create a builder for a Place instance.

Parameters
latLng LatLng: the geographical location associated with the place.

Returns
Place.Builder

Throws
NullPointerException if latLng is null.

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getLatLng

public LatLng getLatLng ()

Returns
LatLng

getMarker

public PlaceMarker getMarker ()

Returns
PlaceMarker

hashCode

public int hashCode ()

Returns
int

newBuilder

public Place.Builder newBuilder ()

Returns a Place.Builder instance with the same data as this Place instance.

Returns
Place.Builder

toString

public String toString ()

Returns
String