場所タイプ(新)

プラットフォームを選択: Android iOS JavaScript ウェブサービス

欧州経済領域(EEA)のデベロッパー

プレイスタイプは、場所の特性を識別するカテゴリです。1 つの場所に 1 つ以上の場所タイプを割り当てることができます。

場所のタイプは、Place Details(新版)、Nearby Search(新版)、テキスト検索(新版)、予測入力(新版)のリクエストからのレスポンスに含まれています。

  • プレイスには、タイプ 表 A またはタイプ 表 B単一のプライマリ タイプを関連付けることができます。たとえば、プライマリ タイプmexican_restaurant または steak_house になります。場所のプライマリ タイプがサポートされているタイプでない場合、プライマリ タイプは欠落している可能性があります。プライマリ タイプが存在する場合、それは常に types フィールドのタイプの 1 つです。
  • 場所には、タイプ 表 A またはタイプ 表 B複数のタイプ値を関連付けることができます。たとえば、レストランには seafood_restaurantrestaurantfoodpoint_of_interestestablishment などのタイプがあります。
  • 場所の住所と住所コンポーネントには、住所のタイプと住所コンポーネントのタイプの表にある特定のタイプをタグ付けできます。たとえば、アドレスに street_address のタグが付けられ、アドレスのコンポーネントに street_number のタグが付けられることがあります。

リクエストの一部として、場所のタイプを指定することもできます。リクエストで指定すると、タイプはフィルタとして機能し、指定されたタイプに一致する場所のみがレスポンスに含まれるように制限します。

これらのタイプにアクセスするには、Google Cloud プロジェクトで Places API(新版)を有効にする必要があります。詳細については、Google Cloud プロジェクトをセットアップするをご覧ください。

型テーブルについて

テーブル A には、次のように使用されるタイプが挙げられています。

  • Place Details(新版)、Nearby Search(新版)、テキスト検索(新版)からのレスポンスの一部として、表 A の値が GMSPlace インスタンスの types プロパティに設定されます。リクエストでは、フィールド リストに GMSPlacePropertyTypes を指定する必要があります。
  • 近隣検索(新版)リクエストの一部として、含まれるタイプ、除外されるタイプ、含まれるメインタイプ、除外されるメインタイプのパラメータの値として使用されます。
  • テキスト検索(新版)リクエストの、含まれる型パラメータの値として使用されます。
  • Place Autocomplete(新版)リクエストの types パラメータの値として使用されます。
  • GMSAutocompletePlaceSuggestion インスタンスの types プロパティを設定するために使用される Place Autocomplete(新版)レスポンスの一部として返されます。

テーブル B には、追加の場所タイプの値が挙げられています。これらの値も Place Details(新版)、Nearby Search(新版)、テキスト検索(新版)、および Place Autocomplete(新版)のレスポンスの一部として返される場合があります。リクエストでは、フィールド リストに GMSPlacePropertyTypes を指定する必要があります。テーブル B の値は、Place Autocomplete(新版)リクエストの types パラメータの値として使用する場合を除き、リクエストの一部として使用することはできません。

住所のタイプと住所コンポーネントのタイプには、レスポンス本文の住所のタイプと住所コンポーネントのタイプのいずれかまたは両方の配列に表示される可能性のあるタイプが一覧表示されています。住所コンポーネントのタイプは変更される可能性があります。

テーブル A

自動車
car_dealer
car_rental
car_repair
car_wash
ebike_charging_station *
electric_vehicle_charging_station
gas_station
parking
parking_garage *
parking_lot *
rest_stop
tire_shop *
truck_dealer *
Business
business_center *
corporate_office
coworking_space *
farm
manufacturer *
ranch
supplier *
television_studio *
文化
art_gallery
art_museum *
art_studio
auditorium
castle *
cultural_landmark
fountain *
historical_place
history_museum *
monument
museum
performing_arts_theater
sculpture
教育
academic_department *
educational_institution *
library
preschool
primary_school
research_institute *
school
secondary_school
university
エンターテイメント/レクリエーション
adventure_sports_center
amphitheatre
amusement_center
amusement_park
aquarium
banquet_hall
barbecue_area
botanical_garden
bowling_alley
casino
childrens_camp
city_park *
comedy_club
community_center
concert_hall
convention_center
cultural_center
cycling_park
dance_hall
dog_park
event_venue
ferris_wheel
garden
go_karting_venue *
hiking_area
historical_landmark
indoor_playground *
internet_cafe
karaoke
live_music_venue *
marina
miniature_golf_course *
movie_rental
movie_theater
national_park
night_club
observation_deck
off_roading_area
opera_house
paintball_center *
park
philharmonic_hall
picnic_ground
planetarium
plaza
roller_coaster
skateboard_park
state_park
tourist_attraction
video_arcade
vineyard *
visitor_center
water_park
wedding_venue
wildlife_park
wildlife_refuge
winery *
zoo
施設
public_bath
public_bathroom
stable
金融
accounting
atm
bank
フード、ドリンク
acai_shop
afghani_restaurant
african_restaurant
american_restaurant
argentinian_restaurant *
asian_fusion_restaurant *
asian_restaurant
australian_restaurant *
austrian_restaurant *
bagel_shop
bakery
bangladeshi_restaurant *
bar
bar_and_grill
barbecue_restaurant
basque_restaurant *
bavarian_restaurant *
beer_garden *
belgian_restaurant *
bistro *
brazilian_restaurant
breakfast_restaurant
brewery *
brewpub *
british_restaurant *
brunch_restaurant
buffet_restaurant
burmese_restaurant *
burrito_restaurant *
cafe
cafeteria
cajun_restaurant *
cake_shop *
californian_restaurant *
cambodian_restaurant *
candy_store
cantonese_restaurant *
caribbean_restaurant *
cat_cafe
chicken_restaurant *
chicken_wings_restaurant *
chilean_restaurant *
chinese_noodle_restaurant *
chinese_restaurant
chocolate_factory
chocolate_shop
cocktail_bar *
coffee_roastery *
coffee_shop
coffee_stand *
colombian_restaurant *
confectionery
croatian_restaurant *
cuban_restaurant *
czech_restaurant *
danish_restaurant *
deli
dessert_restaurant
dessert_shop
dim_sum_restaurant *
diner
dog_cafe
donut_shop
dumpling_restaurant *
dutch_restaurant *
eastern_european_restaurant *
ethiopian_restaurant *
european_restaurant *
falafel_restaurant *
family_restaurant *
fast_food_restaurant
filipino_restaurant *
fine_dining_restaurant
fish_and_chips_restaurant *
fondue_restaurant *
food_court
french_restaurant
fusion_restaurant *
gastropub *
german_restaurant *
greek_restaurant
gyro_restaurant *
halal_restaurant*
hamburger_restaurant
hawaiian_restaurant *
hookah_bar *
hot_dog_restaurant *
hot_dog_stand *
hot_pot_restaurant *
hungarian_restaurant *
ice_cream_shop
indian_restaurant
indonesian_restaurant
irish_pub *
irish_restaurant *
israeli_restaurant *
italian_restaurant
japanese_curry_restaurant *
japanese_izakaya_restaurant *
japanese_restaurant
juice_shop
kebab_shop *
korean_barbecue_restaurant *
korean_restaurant
latin_american_restaurant *
lebanese_restaurant
lounge_bar *
malaysian_restaurant *
meal_delivery
meal_takeaway
mediterranean_restaurant
mexican_restaurant
middle_eastern_restaurant
mongolian_barbecue_restaurant *
moroccan_restaurant *
noodle_shop *
north_indian_restaurant *
oyster_bar_restaurant *
pakistani_restaurant *
pastry_shop *
persian_restaurant *
peruvian_restaurant *
pizza_delivery *
pizza_restaurant
polish_restaurant *
portuguese_restaurant *
pub
ramen_restaurant
restaurant
romanian_restaurant *
russian_restaurant *
salad_shop *
sandwich_shop
scandinavian_restaurant *
seafood_restaurant
shawarma_restaurant *
snack_bar *
soul_food_restaurant *
soup_restaurant *
south_american_restaurant *
south_indian_restaurant *
southwestern_us_restaurant *
spanish_restaurant
sports_bar *
sri_lankan_restaurant *
steak_house
sushi_restaurant
swiss_restaurant *
taco_restaurant *
taiwanese_restaurant *
tapas_restaurant *
tea_house
tex_mex_restaurant *
thai_restaurant
tibetan_restaurant *
tonkatsu_restaurant *
turkish_restaurant
ukrainian_restaurant *
vegan_restaurant
vegetarian_restaurant
vietnamese_restaurant
western_restaurant *
wine_bar
winery *
yakiniku_restaurant *
yakitori_restaurant *
地理的エリア
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
neighborhood_police_station(日本のみ)
police
post_office
健康とウェルネス
chiropractor
dental_clinic
dentist
doctor
drugstore
general_hospital *
hospital
massage
massage_spa *
medical_center *
medical_clinic *
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
自然地物
beach
island *
lake *
mountain_peak *
nature_preserve *
river *
scenic_spot *
woods *
礼拝所
buddhist_temple *
church
hindu_temple
mosque
shinto_shrine *
synagogue
サービス
aircraft_rental_service *
association_or_organization *
astrologer
barber_shop
beautician
beauty_salon
body_art_service
catering_service
cemetery
chauffeur_service *
child_care_agency
consultant
courier_service
electrician
employment_agency *
florist
food_delivery
foot_care
funeral_home
hair_care
hair_salon
insurance_agency
laundry
lawyer
locksmith
makeup_artist
marketing_consultant *
moving_company
nail_salon
non_profit_organization *
painter
pet_boarding_service *
pet_care *
plumber
psychic
real_estate_agency
roofing_contractor
service *
shipping_service *
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
building_materials_store *
butcher_shop
cell_phone_store
clothing_store
convenience_store
cosmetics_store *
department_store
discount_store
discount_supermarket *
electronics_store
farmers_market *
flea_market *
food_store
furniture_store
garden_center *
general_store *
gift_shop
grocery_store
hardware_store
health_food_store *
home_goods_store
home_improvement_store
hypermarket *
jewelry_store
liquor_store
market
pet_store
shoe_store
shopping_mall
sporting_goods_store
sportswear_store *
store
supermarket
tea_store *
thrift_store *
toy_store *
warehouse_store
wholesaler
womens_clothing_store *
スポーツ
arena
athletic_field
fishing_charter
fishing_pier *
fishing_pond
fitness_center
golf_course
gym
ice_skating_rink
indoor_golf_course *
playground
race_course *
ski_resort
sports_activity_location
sports_club
sports_coaching
sports_complex
sports_school *
stadium
swimming_pool *
tennis_court *
交通
airport
yakitori_restaurant *
airstrip
bike_sharing_station *
bridge *
bus_station
bus_stop
ferry_service *
ferry_terminal
heliport
international_airport
light_rail_station
park_and_ride
subway_station
taxi_service *
taxi_stand
toll_station *
train_station
train_ticket_office *
tram_stop *
transit_depot
transit_station
transit_stop *
transportation_service *
truck_stop

テーブル B

テーブル B の場所タイプの値は、Place Details(新版)、Nearby Search(新版)、テキスト検索(新版)、または Autocomplete(新版)のレスポンスの一部として返される場合があります。これらのタイプは、Autocomplete(New)リクエストの includedPrimaryTypes でもサポートされています。

場所タイプの追加の値
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
food
general_contractor
geocode
health
intersection
landmark
natural_feature
neighborhood
place_of_worship
plus_code
point_of_interest
political
postal_code_prefix
postal_code_suffix
postal_town
premise
route
street_address
sublocality
sublocality_level_1
sublocality_level_2
sublocality_level_3
sublocality_level_4
sublocality_level_5
subpremise
town_square

住所のタイプと住所コンポーネントのタイプ

レスポンスの GMSPlace クラスの types 列挙型は、住所タイプを示します。住所の種類の例としては、番地、国、行政区画などがあります。GMSAddressComponent オブジェクトの types 配列は、住所の各部分のタイプを示します。たとえば、国や番地などです

住所には複数のタイプがあります。これらのタイプは「タグ」とみなすことができます。たとえば、多くの都市には political タイプと locality タイプのタグが付けられています。

ジオコーダでは、次のタイプは住所タイプと住所コンポーネント タイプの両方でサポートされており、返されます。

アドレスの種類 説明
street_address 正確な番地。
route 名前のある道路(US 101 など)。
intersection 主要交差点(通常は 2 つの大通りの交差点)。
political 政治団体。通常、このタイプは民政のポリゴンを示します。
country 国レベルの行政区画。一般的にはジオコーダから返される最上位のタイプです。
administrative_area_level_1 国の 1 段階下の行政区画。米国の場合、この行政上のレベルは州です。すべての国でこの行政区画レベルが存在するわけではありません。多くの場合、administrative_area_level_1 の省略名は下位区分 ISO 3166-2 とその他の一般的なリストに一致します。ただし、Google のジオコーディングの結果はさまざまな信号と位置情報データに基づいているため、これらの名前が厳密に一致するとは限りません。
administrative_area_level_2 国の 2 段階下の行政区画。米国の場合、この行政上のレベルは郡です。すべての国でこの行政区画レベルが存在するわけではありません。
administrative_area_level_3 国の 3 段階下の行政区画。このタイプは小規模な行政上の区域を示します。すべての国でこの行政区画レベルが存在するわけではありません。
administrative_area_level_4 国の 4 段階下の行政区画。このタイプは小規模な行政上の区域を示します。すべての国でこの行政区画レベルが存在するわけではありません。
administrative_area_level_5 国の 5 段階下の行政区画。このタイプは小規模な行政上の区域を示します。すべての国でこの行政区画レベルが存在するわけではありません。
administrative_area_level_6 国の 6 段階下の行政区画。このタイプは小規模な行政上の区域を示します。すべての国でこの行政区画レベルが存在するわけではありません。
administrative_area_level_7 国の 7 段階下の行政区画。このタイプは小規模な行政上の区域を示します。すべての国でこの行政区画レベルが存在するわけではありません。
colloquial_area 一般的に使用されている通称。
locality 行政区画である都市または町。
sublocality locality の 1 段階下の行政区画。一部の場所では、sublocality_level_1 から sublocality_level_5 のいずれかの追加タイプを受け取ります。各下位地区レベルは行政区画で、数が大きいほど区域は小さくなります。
neighborhood 名前のある近隣地域。
premise 名前のある場所。通常は共通の名前を持つ建物や建物の集合体です。
subpremise アパート、ユニット、スイートなど、建物レベル以下の住所指定可能なエンティティ。
plus_code エンコードされた場所の参照情報。緯度と経度に基づきます。Plus Codes は、番地がない場所(建物に番号が付いていない場所や、通りに名前がない場所)で、番地の代わりに使用できます。詳しくは https://plus.codes をご覧ください。
postal_code 対象の国内で郵便物の宛先として使用される郵便番号。
natural_feature 特徴的な地勢。
airport 空港。
park 名前付きの公園。
point_of_interest 名前のあるスポット。通常、これらの「スポット」は、その地域で有名な場所のことを指し、「エンパイア ステートビル」や「エッフェル塔」など、他のカテゴリにはあまり当てはまらないものです。

タイプリストが空の場合は、特定の住所コンポーネントに対して既知のタイプが存在しないことを意味します(たとえば、フランスのリュディがこれに相当します)。

上記の他に、住所コンポーネントには以下のタイプが含まれることがあります。

住所コンポーネントのタイプ 説明
floor 建物の住所の階数。
establishment 通常は、まだ分類されていない場所です。
landmark ナビゲーションを支援するために参照として使用される付近の場所。
point_of_interest 名前のあるスポット。
parking 駐車場または立体駐車場。
post_box 特定の郵便ポスト。
postal_town localitysublocality など、一部の国で郵送先住所に使用される地域グループ。
room 建物の部屋。
street_number 正確な番地。
bus_stationtrain_stationtransit_station バス、電車、公共交通機関の停留所の位置。