Summary: Inherited Constants | Ctors | Methods | Inherited Methods | [Expand All]
public class

# AddPlaceRequest

extends Object
implements SafeParcelable

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 com.google.android.gms.common.internal.safeparcel.SafeParcelable
String | NULL |
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Public Constructors
| 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.
| AddPlaceRequest(String name, LatLng latLng, String address, List<Integer> placeTypes, String phoneNumber, Uri uri) Creates a new `AddPlaceRequest` with both a phone number and 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
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## Public Constructors

#### 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 AddPlaceRequest (String name, LatLng latLng, String address, List<Integer> placeTypes, String phoneNumber, Uri uri)

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.
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 ()