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.Builder
|
setLatLng(LatLng latLng)
Sets the geographical location associated with this place. |
Place.Builder
|
setMarker(PlaceMarker marker)
Sets the |
Inherited methods | |
---|---|
Public methods
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 |