AddPlaceRequest

public class AddPlaceRequest extends Object
implements Parcelable

This class is deprecated.
The addPlace method is deprecated and is not included in the new Places SDK. In the Compat library it will continue to be exposed indefinitely, as a no-op that will always succeed for backwards-compatibility.

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(AddPlaceRequest) method and the developer's guide.

Inherited Constant Summary

Field Summary

public static final Creator<AddPlaceRequest> CREATOR

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

int
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
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<AddPlaceRequest> CREATOR

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 int describeContents ()

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

public void writeToParcel (Parcel dest, int flags)

Parameters
dest
flags

フィードバックを送信...