Places

public class Places extends Object

The main entry point for apps to integrate with the Google Places API for Android. The Places API consists of the GeoDataClient, the PlaceDetectionClient, the autocomplete widgets, and the place picker widget.

The GeoDataClient contains methods that provide access to Google's database of local place and business information.

The PlaceDetectionClient contains methods that provide access to information about the device's current location.

For information on the autocomplete widgets, see PlaceAutocomplete and the corresponding developer's guide.

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.

Public Method Summary

static GeoDataClient
getGeoDataClient(Activity activity)
Returns an instance of GeoDataClient for use in an Activity.
static GeoDataClient
getGeoDataClient(Activity activity, PlacesOptions options)
This method is deprecated. use getGeoDataClient(Activity) instead.
static GeoDataClient
getGeoDataClient(Context context, PlacesOptions options)
This method is deprecated. use getGeoDataClient(Context) instead.
static GeoDataClient
getGeoDataClient(Context context)
Returns an instance of GeoDataClient for use in a non-activity Context.
static PlaceDetectionClient
getPlaceDetectionClient(Activity activity, PlacesOptions options)
This method is deprecated. use getPlaceDetectionClient(Activity) instead.
static PlaceDetectionClient
getPlaceDetectionClient(Activity activity)
Returns an instance of PlaceDetectionClient for use in an Activity.
static PlaceDetectionClient
getPlaceDetectionClient(Context context)
Returns an instance of PlaceDetectionClient for use in a non-activity Context.
static PlaceDetectionClient
getPlaceDetectionClient(Context context, PlacesOptions options)
This method is deprecated. use getPlaceDetectionClient(Context) instead

Inherited Method Summary

Public Methods

public static GeoDataClient getGeoDataClient (Activity activity)

Returns an instance of GeoDataClient for use in an Activity.

Parameters
activity

public static GeoDataClient getGeoDataClient (Activity activity, PlacesOptions options)

This method is deprecated.
use getGeoDataClient(Activity) instead.

Returns an instance of GeoDataClient for use in an Activity.

Parameters
activity
options

public static GeoDataClient getGeoDataClient (Context context, PlacesOptions options)

This method is deprecated.
use getGeoDataClient(Context) instead.

Returns an instance of GeoDataClient for use in a non-activity Context.

Parameters
context
options

public static GeoDataClient getGeoDataClient (Context context)

Returns an instance of GeoDataClient for use in a non-activity Context.

Parameters
context

public static PlaceDetectionClient getPlaceDetectionClient (Activity activity, PlacesOptions options)

This method is deprecated.
use getPlaceDetectionClient(Activity) instead.

Returns an instance of PlaceDetectionClient for use in an Activity.

Parameters
activity
options

public static PlaceDetectionClient getPlaceDetectionClient (Activity activity)

Returns an instance of PlaceDetectionClient for use in an Activity.

Parameters
activity

public static PlaceDetectionClient getPlaceDetectionClient (Context context)

Returns an instance of PlaceDetectionClient for use in a non-activity Context.

Parameters
context

public static PlaceDetectionClient getPlaceDetectionClient (Context context, PlacesOptions options)

This method is deprecated.
use getPlaceDetectionClient(Context) instead

Returns an instance of PlaceDetectionClient for use in a non-activity Context.

Parameters
context
options

Kirim masukan tentang...

Places SDK for Android