Summary: Constants | Methods | Inherited Methods | [Expand All]
public interface

# Place

implements Freezable<Place>

com.google.android.gms.location.places.Place

## Class Overview

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.

## Summary

Constants
int | TYPE_ACCOUNTING |
int | TYPE_ADMINISTRATIVE_AREA_LEVEL_1 |
int | TYPE_ADMINISTRATIVE_AREA_LEVEL_2 |
int | TYPE_ADMINISTRATIVE_AREA_LEVEL_3 |
int | TYPE_AIRPORT |
int | TYPE_AMUSEMENT_PARK |
int | TYPE_AQUARIUM |
int | TYPE_ART_GALLERY |
int | TYPE_ATM |
int | TYPE_BAKERY |
int | TYPE_BANK |
int | TYPE_BAR |
int | TYPE_BEAUTY_SALON |
int | TYPE_BICYCLE_STORE |
int | TYPE_BOOK_STORE |
int | TYPE_BOWLING_ALLEY |
int | TYPE_BUS_STATION |
int | TYPE_CAFE |
int | TYPE_CAMPGROUND |
int | TYPE_CAR_DEALER |
int | TYPE_CAR_RENTAL |
int | TYPE_CAR_REPAIR |
int | TYPE_CAR_WASH |
int | TYPE_CASINO |
int | TYPE_CEMETERY |
int | TYPE_CHURCH |
int | TYPE_CITY_HALL |
int | TYPE_CLOTHING_STORE |
int | TYPE_COLLOQUIAL_AREA |
int | TYPE_CONVENIENCE_STORE |
int | TYPE_COUNTRY |
int | TYPE_COURTHOUSE |
int | TYPE_DENTIST |
int | TYPE_DEPARTMENT_STORE |
int | TYPE_DOCTOR |
int | TYPE_ELECTRICIAN |
int | TYPE_ELECTRONICS_STORE |
int | TYPE_EMBASSY |
int | TYPE_ESTABLISHMENT |
int | TYPE_FINANCE |
int | TYPE_FIRE_STATION |
int | TYPE_FLOOR |
int | TYPE_FLORIST |
int | TYPE_FOOD |
int | TYPE_FUNERAL_HOME |
int | TYPE_FURNITURE_STORE |
int | TYPE_GAS_STATION |
int | TYPE_GENERAL_CONTRACTOR |
int | TYPE_GEOCODE |
int | TYPE_GROCERY_OR_SUPERMARKET |
int | TYPE_GYM |
int | TYPE_HAIR_CARE |
int | TYPE_HARDWARE_STORE |
int | TYPE_HEALTH |
int | TYPE_HINDU_TEMPLE |
int | TYPE_HOME_GOODS_STORE |
int | TYPE_HOSPITAL |
int | TYPE_INSURANCE_AGENCY |
int | TYPE_INTERSECTION |
int | TYPE_JEWELRY_STORE |
int | TYPE_LAUNDRY |
int | TYPE_LAWYER |
int | TYPE_LIBRARY |
int | TYPE_LIQUOR_STORE |
int | TYPE_LOCALITY |
int | TYPE_LOCAL_GOVERNMENT_OFFICE |
int | TYPE_LOCKSMITH |
int | TYPE_LODGING |
int | TYPE_MEAL_DELIVERY |
int | TYPE_MEAL_TAKEAWAY |
int | TYPE_MOSQUE |
int | TYPE_MOVIE_RENTAL |
int | TYPE_MOVIE_THEATER |
int | TYPE_MOVING_COMPANY |
int | TYPE_MUSEUM |
int | TYPE_NATURAL_FEATURE |
int | TYPE_NEIGHBORHOOD |
int | TYPE_NIGHT_CLUB |
int | TYPE_OTHER |
int | TYPE_PAINTER |
int | TYPE_PARK |
int | TYPE_PARKING |
int | TYPE_PET_STORE |
int | TYPE_PHARMACY |
int | TYPE_PHYSIOTHERAPIST |
int | TYPE_PLACE_OF_WORSHIP |
int | TYPE_PLUMBER |
int | TYPE_POINT_OF_INTEREST |
int | TYPE_POLICE |
int | TYPE_POLITICAL |
int | TYPE_POSTAL_CODE |
int | TYPE_POSTAL_CODE_PREFIX |
int | TYPE_POSTAL_TOWN |
int | TYPE_POST_BOX |
int | TYPE_POST_OFFICE |
int | TYPE_PREMISE |
int | TYPE_REAL_ESTATE_AGENCY |
int | TYPE_RESTAURANT |
int | TYPE_ROOFING_CONTRACTOR |
int | TYPE_ROOM |
int | TYPE_ROUTE |
int | TYPE_RV_PARK |
int | TYPE_SCHOOL |
int | TYPE_SHOE_STORE |
int | TYPE_SHOPPING_MALL |
int | TYPE_SPA |
int | TYPE_STADIUM |
int | TYPE_STORAGE |
int | TYPE_STORE |
int | TYPE_STREET_ADDRESS |
int | TYPE_SUBLOCALITY |
int | TYPE_SUBLOCALITY_LEVEL_1 |
int | TYPE_SUBLOCALITY_LEVEL_2 |
int | TYPE_SUBLOCALITY_LEVEL_3 |
int | TYPE_SUBLOCALITY_LEVEL_4 |
int | TYPE_SUBLOCALITY_LEVEL_5 |
int | TYPE_SUBPREMISE |
int | TYPE_SUBWAY_STATION |
int | TYPE_SYNAGOGUE |
int | TYPE_SYNTHETIC_GEOCODE |
int | TYPE_TAXI_STAND |
int | TYPE_TRAIN_STATION |
int | TYPE_TRANSIT_STATION |
int | TYPE_TRAVEL_AGENCY |
int | TYPE_UNIVERSITY |
int | TYPE_VETERINARY_CARE |
int | TYPE_ZOO |

Public Methods
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.

[Expand] Inherited Methods
From interface com.google.android.gms.common.data.Freezable
abstract Place | freeze() Freeze a volatile representation into an immutable representation.
abstract boolean | isDataValid() Check to see if this object is valid for use.

## Constants

#### public static final int TYPE_ACCOUNTING

Constant Value: 1 (0x00000001)

#### public static final int TYPE_ADMINISTRATIVE_AREA_LEVEL_1

Constant Value: 1001 (0x000003e9)

#### public static final int TYPE_ADMINISTRATIVE_AREA_LEVEL_2

Constant Value: 1002 (0x000003ea)

#### public static final int TYPE_ADMINISTRATIVE_AREA_LEVEL_3

Constant Value: 1003 (0x000003eb)

#### public static final int TYPE_AIRPORT

Constant Value: 2 (0x00000002)

#### public static final int TYPE_AMUSEMENT_PARK

Constant Value: 3 (0x00000003)

#### public static final int TYPE_AQUARIUM

Constant Value: 4 (0x00000004)

#### public static final int TYPE_ART_GALLERY

Constant Value: 5 (0x00000005)

#### public static final int TYPE_ATM

Constant Value: 6 (0x00000006)

#### public static final int TYPE_BAKERY

Constant Value: 7 (0x00000007)

#### public static final int TYPE_BANK

Constant Value: 8 (0x00000008)

#### public static final int TYPE_BAR

Constant Value: 9 (0x00000009)

#### public static final int TYPE_BEAUTY_SALON

Constant Value: 10 (0x0000000a)

#### public static final int TYPE_BICYCLE_STORE

Constant Value: 11 (0x0000000b)

#### public static final int TYPE_BOOK_STORE

Constant Value: 12 (0x0000000c)

#### public static final int TYPE_BOWLING_ALLEY

Constant Value: 13 (0x0000000d)

#### public static final int TYPE_BUS_STATION

Constant Value: 14 (0x0000000e)

#### public static final int TYPE_CAFE

Constant Value: 15 (0x0000000f)

#### public static final int TYPE_CAMPGROUND

Constant Value: 16 (0x00000010)

#### public static final int TYPE_CAR_DEALER

Constant Value: 17 (0x00000011)

#### public static final int TYPE_CAR_RENTAL

Constant Value: 18 (0x00000012)

#### public static final int TYPE_CAR_REPAIR

Constant Value: 19 (0x00000013)

#### public static final int TYPE_CAR_WASH

Constant Value: 20 (0x00000014)

#### public static final int TYPE_CASINO

Constant Value: 21 (0x00000015)

#### public static final int TYPE_CEMETERY

Constant Value: 22 (0x00000016)

#### public static final int TYPE_CHURCH

Constant Value: 23 (0x00000017)

#### public static final int TYPE_CITY_HALL

Constant Value: 24 (0x00000018)

#### public static final int TYPE_CLOTHING_STORE

Constant Value: 25 (0x00000019)

#### public static final int TYPE_COLLOQUIAL_AREA

Constant Value: 1004 (0x000003ec)

#### public static final int TYPE_CONVENIENCE_STORE

Constant Value: 26 (0x0000001a)

#### public static final int TYPE_COUNTRY

Constant Value: 1005 (0x000003ed)

#### public static final int TYPE_COURTHOUSE

Constant Value: 27 (0x0000001b)

#### public static final int TYPE_DENTIST

Constant Value: 28 (0x0000001c)

#### public static final int TYPE_DEPARTMENT_STORE

Constant Value: 29 (0x0000001d)

#### public static final int TYPE_DOCTOR

Constant Value: 30 (0x0000001e)

#### public static final int TYPE_ELECTRICIAN

Constant Value: 31 (0x0000001f)

#### public static final int TYPE_ELECTRONICS_STORE

Constant Value: 32 (0x00000020)

#### public static final int TYPE_EMBASSY

Constant Value: 33 (0x00000021)

#### public static final int TYPE_ESTABLISHMENT

Constant Value: 34 (0x00000022)

#### public static final int TYPE_FINANCE

Constant Value: 35 (0x00000023)

#### public static final int TYPE_FIRE_STATION

Constant Value: 36 (0x00000024)

#### public static final int TYPE_FLOOR

Constant Value: 1006 (0x000003ee)

#### public static final int TYPE_FLORIST

Constant Value: 37 (0x00000025)

#### public static final int TYPE_FOOD

Constant Value: 38 (0x00000026)

#### public static final int TYPE_FUNERAL_HOME

Constant Value: 39 (0x00000027)

#### public static final int TYPE_FURNITURE_STORE

Constant Value: 40 (0x00000028)

#### public static final int TYPE_GAS_STATION

Constant Value: 41 (0x00000029)

#### public static final int TYPE_GENERAL_CONTRACTOR

Constant Value: 42 (0x0000002a)

#### public static final int TYPE_GEOCODE

Constant Value: 1007 (0x000003ef)

#### public static final int TYPE_GROCERY_OR_SUPERMARKET

Constant Value: 43 (0x0000002b)

#### public static final int TYPE_GYM

Constant Value: 44 (0x0000002c)

#### public static final int TYPE_HAIR_CARE

Constant Value: 45 (0x0000002d)

#### public static final int TYPE_HARDWARE_STORE

Constant Value: 46 (0x0000002e)

#### public static final int TYPE_HEALTH

Constant Value: 47 (0x0000002f)

#### public static final int TYPE_HINDU_TEMPLE

Constant Value: 48 (0x00000030)

#### public static final int TYPE_HOME_GOODS_STORE

Constant Value: 49 (0x00000031)

#### public static final int TYPE_HOSPITAL

Constant Value: 50 (0x00000032)

#### public static final int TYPE_INSURANCE_AGENCY

Constant Value: 51 (0x00000033)

#### public static final int TYPE_INTERSECTION

Constant Value: 1008 (0x000003f0)

#### public static final int TYPE_JEWELRY_STORE

Constant Value: 52 (0x00000034)

#### public static final int TYPE_LAUNDRY

Constant Value: 53 (0x00000035)

#### public static final int TYPE_LAWYER

Constant Value: 54 (0x00000036)

#### public static final int TYPE_LIBRARY

Constant Value: 55 (0x00000037)

#### public static final int TYPE_LIQUOR_STORE

Constant Value: 56 (0x00000038)

#### public static final int TYPE_LOCALITY

Constant Value: 1009 (0x000003f1)

#### public static final int TYPE_LOCAL_GOVERNMENT_OFFICE

Constant Value: 57 (0x00000039)

#### public static final int TYPE_LOCKSMITH

Constant Value: 58 (0x0000003a)

#### public static final int TYPE_LODGING

Constant Value: 59 (0x0000003b)

#### public static final int TYPE_MEAL_DELIVERY

Constant Value: 60 (0x0000003c)

#### public static final int TYPE_MEAL_TAKEAWAY

Constant Value: 61 (0x0000003d)

#### public static final int TYPE_MOSQUE

Constant Value: 62 (0x0000003e)

#### public static final int TYPE_MOVIE_RENTAL

Constant Value: 63 (0x0000003f)

#### public static final int TYPE_MOVIE_THEATER

Constant Value: 64 (0x00000040)

#### public static final int TYPE_MOVING_COMPANY

Constant Value: 65 (0x00000041)

#### public static final int TYPE_MUSEUM

Constant Value: 66 (0x00000042)

#### public static final int TYPE_NATURAL_FEATURE

Constant Value: 1010 (0x000003f2)

#### public static final int TYPE_NEIGHBORHOOD

Constant Value: 1011 (0x000003f3)

#### public static final int TYPE_NIGHT_CLUB

Constant Value: 67 (0x00000043)

#### public static final int TYPE_OTHER

Constant Value: 0 (0x00000000)

#### public static final int TYPE_PAINTER

Constant Value: 68 (0x00000044)

#### public static final int TYPE_PARK

Constant Value: 69 (0x00000045)

#### public static final int TYPE_PARKING

Constant Value: 70 (0x00000046)

#### public static final int TYPE_PET_STORE

Constant Value: 71 (0x00000047)

#### public static final int TYPE_PHARMACY

Constant Value: 72 (0x00000048)

#### public static final int TYPE_PHYSIOTHERAPIST

Constant Value: 73 (0x00000049)

#### public static final int TYPE_PLACE_OF_WORSHIP

Constant Value: 74 (0x0000004a)

#### public static final int TYPE_PLUMBER

Constant Value: 75 (0x0000004b)

#### public static final int TYPE_POINT_OF_INTEREST

Constant Value: 1013 (0x000003f5)

#### public static final int TYPE_POLICE

Constant Value: 76 (0x0000004c)

#### public static final int TYPE_POLITICAL

Constant Value: 1012 (0x000003f4)

#### public static final int TYPE_POSTAL_CODE

Constant Value: 1015 (0x000003f7)

#### public static final int TYPE_POSTAL_CODE_PREFIX

Constant Value: 1016 (0x000003f8)

#### public static final int TYPE_POSTAL_TOWN

Constant Value: 1017 (0x000003f9)

#### public static final int TYPE_POST_BOX

Constant Value: 1014 (0x000003f6)

#### public static final int TYPE_POST_OFFICE

Constant Value: 77 (0x0000004d)

#### public static final int TYPE_PREMISE

Constant Value: 1018 (0x000003fa)

#### public static final int TYPE_REAL_ESTATE_AGENCY

Constant Value: 78 (0x0000004e)

#### public static final int TYPE_RESTAURANT

Constant Value: 79 (0x0000004f)

#### public static final int TYPE_ROOFING_CONTRACTOR

Constant Value: 80 (0x00000050)

#### public static final int TYPE_ROOM

Constant Value: 1019 (0x000003fb)

#### public static final int TYPE_ROUTE

Constant Value: 1020 (0x000003fc)

#### public static final int TYPE_RV_PARK

Constant Value: 81 (0x00000051)

#### public static final int TYPE_SCHOOL

Constant Value: 82 (0x00000052)

#### public static final int TYPE_SHOE_STORE

Constant Value: 83 (0x00000053)

#### public static final int TYPE_SHOPPING_MALL

Constant Value: 84 (0x00000054)

#### public static final int TYPE_SPA

Constant Value: 85 (0x00000055)

#### public static final int TYPE_STADIUM

Constant Value: 86 (0x00000056)

#### public static final int TYPE_STORAGE

Constant Value: 87 (0x00000057)

#### public static final int TYPE_STORE

Constant Value: 88 (0x00000058)

#### public static final int TYPE_STREET_ADDRESS

Constant Value: 1021 (0x000003fd)

#### public static final int TYPE_SUBLOCALITY

Constant Value: 1022 (0x000003fe)

#### public static final int TYPE_SUBLOCALITY_LEVEL_1

Constant Value: 1023 (0x000003ff)

#### public static final int TYPE_SUBLOCALITY_LEVEL_2

Constant Value: 1024 (0x00000400)

#### public static final int TYPE_SUBLOCALITY_LEVEL_3

Constant Value: 1025 (0x00000401)

#### public static final int TYPE_SUBLOCALITY_LEVEL_4

Constant Value: 1026 (0x00000402)

#### public static final int TYPE_SUBLOCALITY_LEVEL_5

Constant Value: 1027 (0x00000403)

#### public static final int TYPE_SUBPREMISE

Constant Value: 1028 (0x00000404)

#### public static final int TYPE_SUBWAY_STATION

Constant Value: 89 (0x00000059)

#### public static final int TYPE_SYNAGOGUE

Constant Value: 90 (0x0000005a)

#### public static final int TYPE_SYNTHETIC_GEOCODE

Constant Value: 1029 (0x00000405)

#### public static final int TYPE_TAXI_STAND

Constant Value: 91 (0x0000005b)

#### public static final int TYPE_TRAIN_STATION

Constant Value: 92 (0x0000005c)

#### public static final int TYPE_TRANSIT_STATION

Constant Value: 1030 (0x00000406)

#### public static final int TYPE_TRAVEL_AGENCY

Constant Value: 93 (0x0000005d)

#### public static final int TYPE_UNIVERSITY

Constant Value: 94 (0x0000005e)

#### public static final int TYPE_VETERINARY_CARE

Constant Value: 95 (0x0000005f)

#### public static final int TYPE_ZOO

Constant Value: 96 (0x00000060)

## Public Methods

#### public abstract CharSequence getAddress ()

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

#### public abstract CharSequence getAttributions ()

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 attributions in HTML format, or null if there are no attributions to display.

#### public abstract String getId ()

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

#### public abstract LatLng getLatLng ()

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.

#### public abstract Locale getLocale ()

Returns the locale in which the names and addresses were localized.

#### public abstract CharSequence getName ()

Returns the name of this Place.

The name is localized according to the locale returned by `getLocale()`.

#### public abstract CharSequence getPhoneNumber ()

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.

#### public abstract List<Integer> getPlaceTypes ()

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.

#### public abstract int getPriceLevel ()

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:

- 0 — Free
- 1 — Inexpensive
- 2 — Moderate
- 3 — Expensive
- 4 — Very Expensive

#### public abstract float getRating ()

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.

#### public abstract LatLngBounds getViewport ()

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.

#### public abstract Uri getWebsiteUri ()

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.