java.lang.Object | |
↳ | com.google.android.gms.location.places.Places |
The main entry point for apps to integrate with the Google Places API for Android. The Places API
consists of the GeoDataApi
, the PlaceDetectionApi
and the place picker widget.
The GeoDataApi
contains methods that provide access to Google's database of local
place and business information.
The PlaceDetectionApi
contains methods that provide access to information about the
device's current location.
For information on the place picker, see PlacePicker
and the corresponding developer's guide.
For more information on how to use the API, including getting started guides and code samples, see the developer's guide.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GEO_DATA_API | Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>) to enable use of the GeoDataApi
features. |
||||||||||
GeoDataApi | Methods offered by the GeoDataApi . |
||||||||||
PLACE_DETECTION_API | Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>) to enable use of the PlaceDetectionApi features. |
||||||||||
PlaceDetectionApi | Methods offered by the PlaceDetectionApi . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an instance of
GeoDataClient for use in an Activity . | |||||||||||
This method is deprecated.
use
getGeoDataClient(Activity) instead.
| |||||||||||
This method is deprecated.
use
getGeoDataClient(Context) instead.
| |||||||||||
Returns an instance of
GeoDataClient for use in a non-activity Context . | |||||||||||
This method is deprecated.
use
getPlaceDetectionClient(Context) instead
| |||||||||||
Returns an instance of
PlaceDetectionClient for use in an Activity . | |||||||||||
This method is deprecated.
use
getPlaceDetectionClient(Activity) instead.
| |||||||||||
Returns an instance of
PlaceDetectionClient for use in a non-activity Context . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>)
to enable use of the GeoDataApi
features.
Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>)
to enable use of the PlaceDetectionApi
features.
Returns an instance of GeoDataClient
for use in an Activity
.
Parameters | |
---|---|
activity |
Activity |
Returns | |
---|---|
GeoDataClient |
This method is deprecated.
use getGeoDataClient(Activity)
instead.
Returns an instance of GeoDataClient
for use in an Activity
.
Parameters | |
---|---|
activity |
Activity |
options |
PlacesOptions |
Returns | |
---|---|
GeoDataClient |
This method is deprecated.
use getGeoDataClient(Context)
instead.
Returns an instance of GeoDataClient
for use in a non-activity Context
.
Parameters | |
---|---|
context |
Context |
options |
PlacesOptions |
Returns | |
---|---|
GeoDataClient |
Returns an instance of GeoDataClient
for use in a non-activity Context
.
Parameters | |
---|---|
context |
Context |
Returns | |
---|---|
GeoDataClient |
This method is deprecated.
use getPlaceDetectionClient(Context)
instead
Returns an instance of PlaceDetectionClient
for use in a non-activity Context
.
Parameters | |
---|---|
context |
Context |
options |
PlacesOptions |
Returns | |
---|---|
PlaceDetectionClient |
Returns an instance of PlaceDetectionClient
for use in an Activity
.
Parameters | |
---|---|
activity |
Activity |
Returns | |
---|---|
PlaceDetectionClient |
This method is deprecated.
use getPlaceDetectionClient(Activity)
instead.
Returns an instance of PlaceDetectionClient
for use in an Activity
.
Parameters | |
---|---|
activity |
Activity |
options |
PlacesOptions |
Returns | |
---|---|
PlaceDetectionClient |
Returns an instance of PlaceDetectionClient
for use in a non-activity Context
.
Parameters | |
---|---|
context |
Context |
Returns | |
---|---|
PlaceDetectionClient |