java.lang.Object | |
↳ | com.google.android.gms.location.places.ui.PlacePicker |
The Place Picker UI is a dialog that allows a user to pick a Place
using an interactive
map.
Users can select the place they are at, or a place nearby. Apps can also initialize the map to a particular viewport.
Nested Classes | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PlacePicker.IntentBuilder | Builder for a Place Picker launch intent. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | RESULT_ERROR | Indicates that an error occurred. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an HTML string with required attributions that must be shown whenever the data in the
selected
Place is used.
| |||||||||||
Returns the last
LatLngBounds of the map if a selection was made.
| |||||||||||
Retrieves the selected
Place from the result intent.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Indicates that an error occurred.
Returns an HTML string with required attributions that must be shown whenever the data in the
selected Place
is used.
Please refer to the developer's guide for more information about attribution.
One easy way to render this content is with a TextView:
String attributions = PlacePicker.getAttributions(selectedPlace); TextView attributionsTextView = findViewById(R.id.attributions); attributionsTextView.setText(Html.fromHtml(attributions))
Returns the last LatLngBounds
of the map if a selection was made.