Represents a particular physical place.
A Place encapsulates information about a physical location, including its name, address, and any other information we might have about it.
Note that generally some fields will be inapplicable to certain places, or the information may be unknown.
| abstract CharSequence |
getAddress()
Returns a human readable address for this Place.
|
| abstract CharSequence |
getAttributions()
Returns the attributions to be shown to the user if data from the
Place is used.
|
| abstract String |
getId()
Returns the unique id of this Place.
|
| abstract LatLng |
getLatLng()
Returns the location of this Place.
|
| abstract Locale |
getLocale()
Returns the locale in which the names and addresses were localized.
|
| abstract CharSequence |
getName()
Returns the name of this Place.
|
| abstract CharSequence |
getPhoneNumber()
Returns the place's phone number in international format.
|
| abstract List<Integer> |
getPlaceTypes()
Returns a list of place types for this Place.
|
| abstract int |
getPriceLevel()
Returns the price level for this place on a scale from 0 (cheapest) to 4.
|
| abstract float |
getRating()
Returns the place's rating, from 1.0 to 5.0, based on aggregated user reviews.
|
| abstract LatLngBounds |
getViewport()
Returns a viewport for displaying this Place.
|
| abstract Uri |
getWebsiteUri()
Returns the URI of the website of this Place.
|
Returns a human readable address for this Place. May return null if the address is unknown.
The address is localized according to the locale returned by getLocale().
Returns the attributions to be shown to the user if data from the Place
is used.
We recommend placing this information below any place information. See Displaying Attributions for more details.
Returns the unique id of this Place.
This ID can be passed to
getPlaceById(GoogleApiClient, String...) to lookup the same place at a later
time, but it is not guaranteed that such a lookup will succeed (the place may no longer
exist in our database). It is possible that the returned Place in such a lookup will
have a different ID (so there may be multiple ID's for one given place).
Returns the location of this Place.
The location is not necessarily the center of the Place, or any particular entry or exit point, but some arbitrarily chosen point within the geographic extent of the Place.
Returns the locale in which the names and addresses were localized.
Returns the name of this Place.
The name is localized according to the locale returned by getLocale().
Returns the place's phone number in international format. Returns null if no phone number is known, or the place has no phone number.
International format includes the country code, and is prefixed with the plus (+) sign. For example, the international phone number for Google's Mountain View, USA office is +1 650-253-0000.
Returns a list of place types for this Place.
The elements of this list are drawn from Place.TYPE_* constants, though
one should expect there could be new place types returned that were introduced after an
app was published.
Returns the price level for this place on a scale from 0 (cheapest) to 4.
If no price level is known, a negative value is returned.
The price level of the place, on a scale of 0 to 4. The exact amount indicated by a specific value will vary from region to region. Price levels are interpreted as follows:
Returns the place's rating, from 1.0 to 5.0, based on aggregated user reviews.
If no rating is known, a negative value is returned.
Returns a viewport for displaying this Place. May return null if the size of the place is not known.
This returns a viewport of a size that is suitable for displaying this Place. For example, a Place representing a store may have a relatively small viewport, while a Place representing a country may have a very large viewport.
Returns the URI of the website of this Place. Returns null if no website is known.
This is the URI of the website maintained by the Place, if available. Note this is a third-party website not affiliated with the Places API.