public class

AddPlaceRequest

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.location.places.AddPlaceRequest

Class Overview

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.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
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 Methods
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 toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

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 String: The name of the business, point of interest, or other place. Limited to 255 characters.
latLng LatLng: The geographic location of the place.
address String: A human-readable street address of the place.
placeTypes List: 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 String: A phone number for this place.
websiteUri Uri: 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 String: The name of the business, point of interest, or other place. Limited to 255 characters.
latLng LatLng: The geographic location of the place.
address String: A human-readable street address of the place.
placeTypes List: 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 String: 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 String: The name of the business, point of interest, or other place. Limited to 255 characters.
latLng LatLng: The geographic location of the place.
address String: A human-readable street address of the place.
placeTypes List: 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 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
String The address of the place.

public LatLng getLatLng ()

Returns the geographic location of the place.

Returns
LatLng The location of the place.

public String getName ()

Returns the name of the place.

Returns
String The name of the place.

public String getPhoneNumber ()

Returns the phone number for the place.

Returns
String 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
List<Integer> The place types for the place.

public Uri getWebsiteUri ()

Returns the URI of the authoritative website for the place.

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

public String toString ()

Returns
String