このページでは、types プロパティでサポートされている値について説明します。
- 表 1 には、場所検索でサポートされており、Place Details の結果として返したり、予測入力による場所予測の一部として返したりできるタイプがまとめられています。
- 表 2 には、Place Details の結果として返したり、予測入力による場所予測の一部として返したりできるその他のタイプがまとめられています。
- 表 3 には、Place Autocomplete リクエストで使用できるタイプがまとめられています。
表 1: 場所のタイプ
表 1 の 場所タイプの値は、次のように使用されます。
- Place Details に対する応答の一部として使用できます。リクエストでは、適切な「タイプ」のデータ フィールドを指定する必要があります。
- Place Autocomplete(従来版)の場所予測の一部として使用できます。これらの値を使用するためのルールの詳細は、Place Autocomplete(従来版) でご確認ください。
- Place Search(Places API のみ)の
typeパラメータで、指定したタイプに一致する場所のみに結果を絞り込みます。
accountingairportamusement_parkaquariumart_galleryatmbakerybankbarbeauty_salonbicycle_storebook_storebowling_alleybus_stationcafecampgroundcar_dealercar_rentalcar_repaircar_washcasinocemeterychurchcity_hallclothing_storeconvenience_storecourthousedentistdepartment_storedoctordrugstoreelectricianelectronics_storeembassyfire_stationfloristfuneral_homefurniture_storegas_stationgymhair_carehardware_storehindu_templehome_goods_storehospitalinsurance_agencyjewelry_storelaundry
lawyerlibrarylight_rail_stationliquor_storelocal_government_officelocksmithlodgingmeal_deliverymeal_takeawaymosquemovie_rentalmovie_theatermoving_companymuseumnight_clubpainterparkparkingpet_storepharmacyphysiotherapistplumberpolicepost_officeprimary_schoolreal_estate_agencyrestaurantroofing_contractorrv_parkschoolsecondary_schoolshoe_storeshopping_mallspastadiumstoragestoresubway_stationsupermarketsynagoguetaxi_standtourist_attractiontrain_stationtransit_stationtravel_agencyuniversityveterinary_carezoo
表 2: プレイス サービスで返されるその他のタイプ
表 2 の場所タイプの値は、次のように使用されます。
- Place Details リクエストの結果(
fetchPlace()の呼び出しなど)の一部として、またはプレイスの結果が返される場所で使用できます。リクエストでは、適切な「タイプ」のデータ フィールドを指定する必要があります。 - Place Autocomplete(従来版)の場所予測の一部として使用できます。これらの値を使用するためのルールの詳細は、Places Autocomplete でご確認ください。
- 住所コンポーネントの指定に使用できます。
これらのタイプの詳細については、住所タイプをご覧ください。
administrative_area_level_1administrative_area_level_2administrative_area_level_3administrative_area_level_4administrative_area_level_5administrative_area_level_6administrative_area_level_7archipelagocolloquial_areacontinentcountryestablishmentfinancefloorfoodgeneral_contractorgeocodehealthintersectionlandmarklocalitynatural_featureneighborhoodplace_of_worship
plus_codepoint_of_interestpoliticalpost_boxpostal_codepostal_code_prefixpostal_code_suffixpostal_townpremiseroomroutestreet_addressstreet_numbersublocalitysublocality_level_1sublocality_level_2sublocality_level_3sublocality_level_4sublocality_level_5subpremisetown_square
表 3: Place Autocomplete(従来版)リクエストでサポートされているタイプの一覧
Place Autocomplete(従来版)リクエストの一部として、表 3 の場所タイプ値、または表 1 と表 2 の値を使用して、結果を特定のタイプに制限します。
リクエストでは、表 3 のタイプのうち、1 つのみが許可されます。表 3 の値を指定する場合、表 1 または表 2 の値は指定できません。
これらの値を使用するためのルールの詳細は、Places Autocomplete でご確認ください。
サポートされるタイプは次のとおりです。
geocodeは、お店やサービスの結果ではなく、ジオコーディングの結果のみを返すように Place Autocomplete(従来版)サービスに指示します。通常、このリクエストは、はっきり特定できない場所を明確にするために使用します。addressは、正確な住所のあるジオコーディングの結果のみを返すように Place Autocomplete(従来版)サービスに指示します。通常、このリクエストはユーザーが完全な住所を指定して検索することがわかっている場合に使用します。establishmentは、お店やサービスの結果のみを返すよう Place Autocomplete(従来版)サービスに指示します。(regions)タイプ コレクションは、次のタイプに一致する結果を返すようにプレイス サービスに指示します。localitysublocalitypostal_codecountryadministrative_area_level_1administrative_area_level_2
(cities)タイプ コレクションは、localityまたはadministrative_area_level_3に一致する結果を返すようにプレイス サービスに指示します。