Google is committed to advancing racial equity for Black communities. See how.

Place.Builder

public static class Place.Builder
extends Object

java.lang.Object
   ↳ com.google.android.libraries.car.app.model.Place.Builder


A builder of Place.

Summary

Public methods

Place build()

Constructs the Place defined by this builder.

Place.Builder setLatLng(LatLng latLng)

Sets the geographical location associated with this place.

Place.Builder setMarker(PlaceMarker marker)

Sets the PlaceMarker that specifies how this place is to be displayed on a map, or null to not display a marker for this place.

Inherited methods

Public methods

build

public Place build ()

Constructs the Place defined by this builder.

Returns
Place

setLatLng

public Place.Builder setLatLng (LatLng latLng)

Sets the geographical location associated with this place.

Parameters
latLng LatLng

Returns
Place.Builder

Throws
NullPointerException if latLng is null.

setMarker

public Place.Builder setMarker (PlaceMarker marker)

Sets the PlaceMarker that specifies how this place is to be displayed on a map, or null to not display a marker for this place.

By default and unless otherwise set in this method, a marker will not be displayed.

Parameters
marker PlaceMarker

Returns
Place.Builder