Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trang này liệt kê các giá trị được hỗ trợ cho thuộc tính types.
Bảng 1 liệt kê các loại được hỗ trợ cho nội dung tìm kiếm địa điểm và có thể được trả về cùng với kết quả Chi tiết về địa điểm, cũng như trong nội dung dự đoán địa điểm tự động hoàn thành.
Bảng 2 liệt kê các loại bổ sung có thể được trả về cùng với kết quả Chi tiết về địa điểm và trong phần dự đoán địa điểm tự động hoàn thành.
Bảng 3 liệt kê các loại bạn có thể sử dụng thay cho các yêu cầu tự động hoàn tất.
Bảng 1: Loại địa điểm
Các giá trị của loại Địa điểm trong Bảng 1 được sử dụng theo các cách sau:
Trong phần phản hồi Chi tiết về địa điểm. Yêu cầu phải chỉ định "loại" trường dữ liệu phù hợp.
Là một phần của cụm từ gợi ý của tính năng Tự động hoàn thành địa điểm (Legacy). Để biết thêm thông tin về các quy tắc sử dụng các giá trị này, hãy xem phần Tự động hoàn thành địa điểm (Cũ).
Trong tham số type cho tìm kiếm địa điểm (chỉ dành cho API Địa điểm), để giới hạn kết quả ở những địa điểm khớp với loại đã chỉ định.
accounting
airport
amusement_park
aquarium
art_gallery
atm
bakery
bank
bar
beauty_salon
bicycle_store
book_store
bowling_alley
bus_station
cafe
campground
car_dealer
car_rental
car_repair
car_wash
casino
cemetery
church
city_hall
clothing_store
convenience_store
courthouse
dentist
department_store
doctor
drugstore
electrician
electronics_store
embassy
fire_station
florist
funeral_home
furniture_store
gas_station
gym
hair_care
hardware_store
hindu_temple
home_goods_store
hospital
insurance_agency
jewelry_store
laundry
lawyer
library
light_rail_station
liquor_store
local_government_office
locksmith
lodging
meal_delivery
meal_takeaway
mosque
movie_rental
movie_theater
moving_company
museum
night_club
painter
park
parking
pet_store
pharmacy
physiotherapist
plumber
police
post_office
primary_school
real_estate_agency
restaurant
roofing_contractor
rv_park
school
secondary_school
shoe_store
shopping_mall
spa
stadium
storage
store
subway_station
supermarket
synagogue
taxi_stand
tourist_attraction
train_station
transit_station
travel_agency
university
veterinary_care
zoo
Bảng 2: Các loại bổ sung do dịch vụ Địa điểm trả về
Các giá trị Loại địa điểm trong Bảng 2 được sử dụng theo các cách sau:
Là một phần của kết quả yêu cầu thông tin chi tiết về Địa điểm (ví dụ: lệnh gọi đến fetchPlace()) hoặc bất cứ nơi nào kết quả về Địa điểm được trả về. Yêu cầu phải chỉ định "loại" trường dữ liệu thích hợp.
Là một phần của cụm từ gợi ý của tính năng Tự động hoàn thành địa điểm (Legacy). Để biết thêm thông tin về các quy tắc sử dụng các giá trị này, hãy xem phần Tự động hoàn thành địa điểm.
Để biểu thị các thành phần địa chỉ.
Để biết thêm thông tin chi tiết về các loại này, hãy tham khảo phần Loại địa chỉ.
administrative_area_level_1
administrative_area_level_2
administrative_area_level_3
administrative_area_level_4
administrative_area_level_5
administrative_area_level_6
administrative_area_level_7
archipelago
colloquial_area
continent
country
establishment
finance
floor
food
general_contractor
geocode
health
intersection
landmark
locality
natural_feature
neighborhood
place_of_worship
plus_code
point_of_interest
political
post_box
postal_code
postal_code_prefix
postal_code_suffix
postal_town
premise
room
route
street_address
street_number
sublocality
sublocality_level_1
sublocality_level_2
sublocality_level_3
sublocality_level_4
sublocality_level_5
subpremise
town_square
Bảng 3: Các bộ sưu tập loại được hỗ trợ trong yêu cầu Tự động hoàn thành địa điểm (Cũ)
Sử dụng các giá trị Loại địa điểm trong Bảng 3 hoặc các giá trị trong Bảng 1 và Bảng 2 trong một yêu cầu Tự động hoàn thành địa điểm (Cũ) để hạn chế kết quả ở một loại cụ thể.
Yêu cầu chỉ được phép chứa một loại trong Bảng 3. Nếu chỉ định một giá trị trong Bảng 3, bạn không thể chỉ định một giá trị trong Bảng 1 hoặc Bảng 2.
geocode hướng dẫn dịch vụ Tự động điền địa điểm (Cũ) chỉ trả về kết quả mã hoá địa lý thay vì kết quả về doanh nghiệp. Nhìn chung, bạn sử dụng yêu cầu này để phân biệt kết quả khi vị trí được chỉ định có thể không xác định.
address hướng dẫn dịch vụ Tự động hoàn thành địa điểm (Cũ) chỉ trả về kết quả mã hoá địa lý có địa chỉ chính xác. Nhìn chung, bạn sử dụng yêu cầu này khi biết người dùng sẽ tìm kiếm một địa chỉ được chỉ định đầy đủ.
establishment hướng dẫn dịch vụ Tự động hoàn thành địa điểm (Cũ) chỉ trả về kết quả về doanh nghiệp.
Bộ sưu tập loại (regions) hướng dẫn dịch vụ Địa điểm trả về mọi kết quả khớp với các loại sau:
locality
sublocality
postal_code
country
administrative_area_level_1
administrative_area_level_2
Bộ sưu tập loại (cities) hướng dẫn dịch vụ Địa điểm trả về kết quả khớp với locality hoặc administrative_area_level_3.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-06 UTC."],[],[],null,["This page lists the supported values for the `types` property.\n\n- [Table 1](#table1) lists the types that are supported for place searches, and can be returned with Place details results, and as part of autocomplete place predictions.\n- [Table 2](#table2) lists additional types that can be returned with Place details results, and as part of autocomplete place predictions.\n- [Table 3](#table3) lists types you can use in place autocomplete requests.\n\nTable 1: Place types\n\nThe Place type values in Table 1 are used in the following ways:\n\n- As part of a Place details response. The request must specify the appropriate \"types\" [data field](/maps/documentation/javascript/legacy/place-data-fields).\n- As part of an Place Autocomplete (Legacy) place prediction. For more information on the rules for using these values, see [Place Autocomplete (Legacy)](/maps/documentation/javascript/legacy/place-autocomplete#constraining-autocomplete).\n- In the `type` parameter for [place searches](/maps/documentation/places/web-service/search) (Places API only), to restrict the results to places matching the specified type.\n\n- `accounting`\n- `airport`\n- `amusement_park`\n- `aquarium`\n- `art_gallery`\n- `atm`\n- `bakery`\n- `bank`\n- `bar`\n- `beauty_salon`\n- `bicycle_store`\n- `book_store`\n- `bowling_alley`\n- `bus_station`\n- `cafe`\n- `campground`\n- `car_dealer`\n- `car_rental`\n- `car_repair`\n- `car_wash`\n- `casino`\n- `cemetery`\n- `church`\n- `city_hall`\n- `clothing_store`\n- `convenience_store`\n- `courthouse`\n- `dentist`\n- `department_store`\n- `doctor`\n- `drugstore`\n- `electrician`\n- `electronics_store`\n- `embassy`\n- `fire_station`\n- `florist`\n- `funeral_home`\n- `furniture_store`\n- `gas_station`\n- `gym`\n- `hair_care`\n- `hardware_store`\n- `hindu_temple`\n- `home_goods_store`\n- `hospital`\n- `insurance_agency`\n- `jewelry_store`\n- `laundry` \n- `lawyer`\n- `library`\n- `light_rail_station`\n- `liquor_store`\n- `local_government_office`\n- `locksmith`\n- `lodging`\n- `meal_delivery`\n- `meal_takeaway`\n- `mosque`\n- `movie_rental`\n- `movie_theater`\n- `moving_company`\n- `museum`\n- `night_club`\n- `painter`\n- `park`\n- `parking`\n- `pet_store`\n- `pharmacy`\n- `physiotherapist`\n- `plumber`\n- `police`\n- `post_office`\n- `primary_school`\n- `real_estate_agency`\n- `restaurant`\n- `roofing_contractor`\n- `rv_park`\n- `school`\n- `secondary_school`\n- `shoe_store`\n- `shopping_mall`\n- `spa`\n- `stadium`\n- `storage`\n- `store`\n- `subway_station`\n- `supermarket`\n- `synagogue`\n- `taxi_stand`\n- `tourist_attraction`\n- `train_station`\n- `transit_station`\n- `travel_agency`\n- `university`\n- `veterinary_care`\n- `zoo`\n\nTable 2: Additional types returned by the Places service\n\nThe Place type values in Table 2 are used in the following ways:\n\n- As part of the result of a Place details request (for example, a call to `fetchPlace()`), or anywhere a Place result is returned. The request must specify the appropriate \"types\" [data field](/maps/documentation/javascript/legacy/place-data-fields).\n| **Note:** Although `geocode` and `establishment` are part of Table 2, they cannot be combined with any other type in Tables 1, 2, or 3 in Place Autocomplete (Legacy) request filters.\n- As part of an Place Autocomplete (Legacy) place prediction. For more information on the rules for using these values, see [Places Autocomplete](/maps/documentation/javascript/legacy/places-autocomplete#constrain-place-types).\n- To denote address components.\n\nFor more details on these types, refer to\n[Address Types](/maps/documentation/geocoding/requests-geocoding#Types).\n**Note:** The types below are **not supported** in the `type` filter of a place search. \n- `administrative_area_level_1`\n- `administrative_area_level_2`\n- `administrative_area_level_3`\n- `administrative_area_level_4`\n- `administrative_area_level_5`\n- `administrative_area_level_6`\n- `administrative_area_level_7`\n- `archipelago`\n- `colloquial_area`\n- `continent`\n- `country`\n- `establishment`\n- `finance`\n- `floor`\n- `food`\n- `general_contractor`\n- `geocode`\n- `health`\n- `intersection`\n- `landmark`\n- `locality`\n- `natural_feature`\n- `neighborhood`\n- `place_of_worship` \n- `plus_code`\n- `point_of_interest`\n- `political`\n- `post_box`\n- `postal_code`\n- `postal_code_prefix`\n- `postal_code_suffix`\n- `postal_town`\n- `premise`\n- `room`\n- `route`\n- `street_address`\n- `street_number`\n- `sublocality`\n- `sublocality_level_1`\n- `sublocality_level_2`\n- `sublocality_level_3`\n- `sublocality_level_4`\n- `sublocality_level_5`\n- `subpremise`\n- `town_square`\n\nTable 3: Type collections supported in Place Autocomplete (Legacy) requests\n\nUse the Place type values in Table 3, or the values in Table 1 and Table 2, as part\nof a Place Autocomplete (Legacy) request to restrict the results to a specific type.\n\nOnly a single type from Table 3 is allowed in the request. If you do specify a value from Table 3,\nyou cannot specify a value from Table 1 or Table 2.\n\nFor more information on the rules for using these values, see\n\n[Places Autocomplete](/maps/documentation/javascript/legacy/places-autocomplete#constrain-place-types).\n\n\nThe supported types are:\n\n- `geocode` instructs the Place Autocomplete (Legacy) service to return only geocoding results, rather than business results. Generally, you use this request to disambiguate results where the location specified may be indeterminate.\n- `address` instructs the Place Autocomplete (Legacy) service to return only geocoding results with a precise address. Generally, you use this request when you know the user will be looking for a fully specified address.\n- `establishment` instructs the Place Autocomplete (Legacy) service to return only business results.\n- The `(regions)` type collection instructs the Places service to return any result matching the following types:\n - `locality`\n - `sublocality`\n - `postal_code`\n - `country`\n - `administrative_area_level_1`\n - `administrative_area_level_2`\n- The `(cities)` type collection instructs the Places service to return results that match `locality` or `administrative_area_level_3`."]]