com.google.android.gms.location.places.Place |
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a human readable address for this Place.
| |||||||||||
Returns the unique id of this Place.
| |||||||||||
Returns the location of this Place.
| |||||||||||
Returns the locale in which the names and addresses were localized.
| |||||||||||
Returns the name of this Place.
| |||||||||||
Returns the place's phone number in international format.
| |||||||||||
Returns a list of place types for this Place.
| |||||||||||
Returns the price level for this place on a scale from 0 (cheapest) to 4.
| |||||||||||
Returns the place's rating, from 1.0 to 5.0, based on aggregated user reviews.
| |||||||||||
Returns a viewport for displaying this Place.
| |||||||||||
Returns the URI of the website of this Place.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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 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.