AddPlaceRequest

public class AddPlaceRequest extends Object
implements Parcelable

This class is deprecated.
The addPlace() method is deprecated as of June 30, 2017. This feature will be turned down on June 30, 2018, and will no longer be available after that date.

Information about a new place that you would like to add to Google's Places database.

An AddPlaceRequest must include the place's name, geographic location, street address, a list of types which characterize the place, and either the place's website or phone number or both. For more information about adding places, see the addPlace(GoogleApiClient, AddPlaceRequest) method and the developer's guide.

Inherited Constant Summary

Public Constructor Summary

AddPlaceRequest(String name, LatLng latLng, String address, List<Integer> placeTypes, String phoneNumber, Uri websiteUri)
Creates a new AddPlaceRequest with both a phone number and website URI.
AddPlaceRequest(String name, LatLng latLng, String address, List<Integer> placeTypes, String phoneNumber)
Creates a new AddPlaceRequest with a phone number.
AddPlaceRequest(String name, LatLng latLng, String address, List<Integer> placeTypes, Uri uri)
Creates a new AddPlaceRequest with a website URI.

Public Method Summary

String
getAddress()
Returns the human-readable street address of the place.
LatLng
getLatLng()
Returns the geographic location of the place.
String
getName()
Returns the name of the place.
String
getPhoneNumber()
Returns the phone number for the place.
List<Integer>
getPlaceTypes()
Returns the list of place types which characterize the place.
Uri
getWebsiteUri()
Returns the URI of the authoritative website for the place.
String

Inherited Method Summary

Public Constructors

public AddPlaceRequest (String name, LatLng latLng, String address, List<Integer> placeTypes, String phoneNumber, Uri websiteUri)

Creates a new AddPlaceRequest with both a phone number and website URI.

Parameters
name The name of the business, point of interest, or other place. Limited to 255 characters.
latLng The geographic location of the place.
address A human-readable street address of the place.
placeTypes A list of place types that characterize this place. For a list of available place types, see the developer's guide and the constants in the Place interface.
phoneNumber A phone number for this place.
websiteUri A Uri containing the address of the authoritative website for this place, such as a business home page.

public AddPlaceRequest (String name, LatLng latLng, String address, List<Integer> placeTypes, String phoneNumber)

Creates a new AddPlaceRequest with a phone number.

Parameters
name The name of the business, point of interest, or other place. Limited to 255 characters.
latLng The geographic location of the place.
address A human-readable street address of the place.
placeTypes A list of place types that characterize this place. For a list of available place types, see the developer's guide and the constants in the Place interface.
phoneNumber A phone number for this place.

public AddPlaceRequest (String name, LatLng latLng, String address, List<Integer> placeTypes, Uri uri)

Creates a new AddPlaceRequest with a website URI.

Parameters
name The name of the business, point of interest, or other place. Limited to 255 characters.
latLng The geographic location of the place.
address A human-readable street address of the place.
placeTypes A list of place types that characterize this place. For a list of available place types, see the developer's guide and the constants in the Place interface.
uri A Uri containing the address of the authoritative website for this place, such as a business home page.

Public Methods

public String getAddress ()

Returns the human-readable street address of the place.

Returns
  • The address of the place.

public LatLng getLatLng ()

Returns the geographic location of the place.

Returns
  • The location of the place.

public String getName ()

Returns the name of the place.

Returns
  • The name of the place.

public String getPhoneNumber ()

Returns the phone number for the place.

Returns
  • The phone number for the place, or null if none was specified.

public List<Integer> getPlaceTypes ()

Returns the list of place types which characterize the place.

Returns
  • The place types for the place.

public Uri getWebsiteUri ()

Returns the URI of the authoritative website for the place.

Returns
  • The website for the place, or null if none was specified.

public String toString ()