地點類型 (新品)

地點類型是用來識別地點特性的類別。一個地點可以有多個地點類型。

Place Details (新版)、Nearby Search (新版)、Text Search (新版) 和 Place Autocomplete (新版) 要求的回應中會包含地點類型:

  • 地點可以有單一主要類型,來自與其相關聯的 表 A 類型或 表 B 類型。舉例來說,主要類型可能是 "mexican_restaurant""steak_house"
  • 地點可以有多個類型值,這些值來自與其相關聯的 表 A表 B 類型。舉例來說,餐廳可能有以下類型"seafood_restaurant""restaurant""food""point_of_interest""establishment"

您也可以在要求中指定地點類型。在要求中指定類型時,類型會做為篩選器,將回應限制為只包含符合指定類型的地點。

關於類型表

表 A 列出以下類型的使用方式:

  • 在 Place Details (新版)、Nearby Search (新版) 和 Text Search (新版) 的回應中,表 A 中的值會用於填入 Place 例項的 types 屬性。要求必須在欄位清單中指定 Place.Field.TYPESPlace.Field.PRIMARY_TYPE
  • 在 Nearby Search (新版) 的請求中,做為包含類型、排除類型、包含主要類型和排除主要類型參數的值。
  • 在 Text Search (新版) 的請求中,做為內含型別參數的值。
  • 在 Place Autocomplete (新版) 要求中,做為主要類型參數的值。
  • 在 Place Autocomplete (新版) 回應中使用,用於填入 AutocompletePrediction 例項的 types 屬性。

表 B 列出可能在 Place Details (新版)、Nearby Search (新版)、Text Search (新版) 和 Place Autocomplete (新版) 回應中傳回的其他地點類型值。要求必須在欄位清單中指定 Place.Field.TYPESPlace.Field.PRIMARY_TYPE。除了在 Place Autocomplete (新版) 請求中做為主要類型參數的值以外,「不得」在請求中使用表 B 中的值。

表 A

汽車
car_dealer
car_rental
car_repair
car_wash
electric_vehicle_charging_station
gas_station
parking
rest_stop
公司行號
corporate_office *
farm
ranch *
文化
art_gallery
art_studio *
auditorium *
cultural_landmark *
historical_place *
monument *
museum
performing_arts_theater
sculpture *
教育
library
preschool
primary_school
school
secondary_school
university
娛樂休閒場所
adventure_sports_center *
amphitheatre *
amusement_center
amusement_park
aquarium
banquet_hall
barbecue_area *
botanical_garden *
bowling_alley
casino
childrens_camp *
comedy_club *
community_center
concert_hall *
convention_center
cultural_center
cycling_park *
dance_hall *
dog_park
event_venue
ferris_wheel *
garden *
hiking_area *
historical_landmark
internet_cafe *
karaoke *
marina
movie_rental
movie_theater
national_park
night_club
observation_deck *
off_roading_area *
opera_house *
park
philharmonic_hall *
picnic_ground *
planetarium *
plaza *
roller_coaster *
skateboard_park *
state_park *
tourist_attraction
video_arcade *
visitor_center
water_park *
wedding_venue
wildlife_park *
wildlife_refuge *
zoo
設施
public_bath *
public_bathroom *
stable *
財經
accounting
atm
bank
餐飲
acai_shop *
afghani_restaurant *
african_restaurant *
american_restaurant
asian_restaurant *
bagel_shop *
bakery
bar
bar_and_grill *
barbecue_restaurant
brazilian_restaurant
breakfast_restaurant
brunch_restaurant
buffet_restaurant *
cafe
cafeteria *
candy_store *
cat_cafe *
chinese_restaurant
chocolate_factory *
chocolate_shop *
coffee_shop
confectionery *
deli *
dessert_restaurant *
dessert_shop *
diner *
dog_cafe *
donut_shop *
fast_food_restaurant
fine_dining_restaurant *
food_court *
french_restaurant
greek_restaurant
hamburger_restaurant
ice_cream_shop
indian_restaurant
indonesian_restaurant
italian_restaurant
japanese_restaurant
juice_shop *
korean_restaurant *
lebanese_restaurant
meal_delivery
meal_takeaway
mediterranean_restaurant
mexican_restaurant
middle_eastern_restaurant
pizza_restaurant
pub *
ramen_restaurant
restaurant
sandwich_shop
seafood_restaurant
spanish_restaurant
steak_house
sushi_restaurant
tea_house *
thai_restaurant
turkish_restaurant
vegan_restaurant
vegetarian_restaurant
vietnamese_restaurant
wine_bar *
地理區域
administrative_area_level_1
administrative_area_level_2
country
locality
postal_code
school_district
政府機關
city_hall
courthouse
embassy
fire_station
government_office *
local_government_office
police
post_office
健康與保健
chiropractor *
dental_clinic
dentist
doctor
drugstore
hospital
massage *
medical_lab *
pharmacy
physiotherapist
sauna *
skin_care_clinic *
spa
tanning_studio *
wellness_center *
yoga_studio *
住宅
apartment_building *
apartment_complex *
condominium_complex *
housing_complex *
住宿地點
bed_and_breakfast
budget_japanese_inn *
campground
camping_cabin
cottage
extended_stay_hotel
farmstay
guest_house hostel *
hotel *
inn *
japanese_inn *
lodging
mobile_home_park *
motel
private_guest_room
resort_hotel
rv_park
Natural Features
beach *
廟宇
church
hindu_temple
mosque
synagogue
服務
astrologer *
barber_shop
beautician *
beauty_salon
body_art_service *
catering_service *
cemetery
child_care_agency
consultant
courier_service
electrician
florist
food_delivery *
foot_care *
funeral_home
hair_care
hair_salon
insurance_agency laundry *
lawyer
locksmith
makeup_artist *
moving_company
nail_salon *
painter
plumber
psychic *
real_estate_agency
roofing_contractor
storage
summer_camp_organizer *
tailor
telecommunications_service_provider
tour_agency *
tourist_information_center *
travel_agency
veterinary_care
購物
asian_grocery_store *
auto_parts_store
bicycle_store
book_store
butcher_shop *
cell_phone_store
clothing_store
convenience_store
department_store
discount_store
electronics_store
food_store *
furniture_store
gift_shop
grocery_store
hardware_store
home_goods_store
home_improvement_store
jewelry_store
liquor_store
market
pet_store
shoe_store
shopping_mall
sporting_goods_store
store
supermarket
warehouse_store *
wholesaler
運動
arena *
athletic_field
fishing_charter *
fishing_pond *
fitness_center
golf_course
gym
ice_skating_rink *
playground *
ski_resort
sports_activity_location *
sports_club
sports_coaching *
sports_complex
stadium
swimming_pool
交通運輸
airport
airstrip *
bus_station
bus_stop
ferry_terminal
heliport
international_airport *
light_rail_station
park_and_ride *
subway_station
taxi_stand
train_station
transit_depot
transit_station
truck_stop

表 B

其他地點類型值
administrative_area_level_3
administrative_area_level_4
administrative_area_level_5
administrative_area_level_6
administrative_area_level_7
archipelago
colloquial_area
continent
establishment
finance
floor
food
general_contractor
geocode
health
intersection
landmark
natural_feature
neighborhood
place_of_worship
plus_code
point_of_interest
political
post_box
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