AI 赋能的区域摘要
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
系统会为某个地点周围的区域生成 AI 赋能的区域摘要。区域摘要可提供某个地点的更多背景信息,包括附近的兴趣点,以便用户在到达目的地后,能够更明智地决定去哪里以及做什么。
例如,在游览新城市时,您可以查看酒店生成的社区摘要,详细了解周边区域:
"旧金山的这个活力四射的街区融合了北滩和唐人街的特色,位于金融区的西北部,拥有文学地标、独特的文化景点和各式各样的餐饮场所。值得一去的地方包括标志性的城市之光书店、迷人的缆车博物馆和热闹的唐人街街道。
该地区历史悠久,文化底蕴深厚,虽然有些山丘和人群,但步行环境良好,非常适合探索。在城市之光书店沉浸于文学历史中,在唐人街体验充满活力的文化(那里有寺庙和幸运饼干工厂),或在缆车博物馆中穿越回过去。从正宗中餐到美味披萨,各种餐饮选择应有尽有。"
如果您正考虑为电动车辆充电,可以查看电动车辆充电站的生成摘要,以便在等待期间找到附近的咖啡店或餐厅:
- “该区域提供多种餐饮选择,步行 9 分钟即可到达,包括 Starbucks、Sushi Jin 和 Safeway。”
除了区域的说明之外,响应还包含说明中提及的地点的地点 ID 列表。
Places API(新)提供两种 AI 赋能的区域摘要:
- 社区摘要,可为类型为
premise
、street_address
的地点以及住宅和住宿类别中的所有类型提供附近景点的概览。
- 电动车辆充电站 (EVCS) 设施摘要,可为类型为
electric_vehicle_charging_station
的地点提供附近景点的概览。
地点详情(新)、文本搜索(新)和附近搜索(新)均支持 AI 赋能的区域摘要。
以下语言和地区的兴趣点支持区域摘要:
请求获取社区摘要
对于类型为 premise
、street_address
以及住宅和住宿类别中的所有类型的地点,系统可以生成社区摘要。如需在响应中返回社区摘要,请在请求的字段掩码中添加以下内容:
- 地点详情(新):
neighborhoodSummary
- 文本搜索(新)和附近搜索(新):
places.neighborhoodSummary
响应中某个地点的 neighborhoodSummary
字段包含以下内容:
- 两个子字段:
overview
和 description
。overview
子字段包含与相应地点相关的附近景点,而 description
子字段则提供有关周边区域的更一般信息。每个子字段都包含一个引用地点资源名称的列表,格式为 place/PLACE_ID
。
- 一个
flagContentUri
链接,用户可以通过该链接标记生成的摘要存在的问题。
- 本地化文本字符串,其中包含披露声明文本“由 Gemini 总结”,必须纳入提供方信息中。
以下示例请求纽约市一家酒店的社区摘要:
curl -X GET -H 'Content-Type: application/json' \
-H "X-Goog-Api-Key: API_KEY" \
-H "X-Goog-FieldMask: id,displayName,neighborhoodSummary" \
'https://places.googleapis.com/v1/places/ChIJT0DdRo1ZwokRkufwSD-TdGM'
响应的格式如下:
{
"id": "ChIJT0DdRo1ZwokRkufwSD-TdGM",
"displayName": {
"text": "Courtyard New York Manhattan/SoHo",
"languageCode": "en"
}
"neighborhoodSummary": {
"overview": {
"content": {
"text": "This area resides within SoHo, a trendy Lower Manhattan neighborhood celebrated for its upscale boutiques, designer shops, and thriving art scene. The area is home to the Color Factory and Dominique Ansel Bakery, known for its popular Cronuts.",
"languageCode": "en-US"
},
"referencedPlaces": [
"places/ChIJZd0F3oxZwokRiaEouMZKQ-0",
/.../
]
},
"description": {
"content": {
"text": "SoHo's walkability and convenient public transportation options make exploration easy. A diverse array of restaurants and cafes cater to varied tastes. SoHo's central location, surrounded by vibrant neighborhoods, contributes to its fast-paced and energetic atmosphere, with a focus on fashion and design.",
"languageCode": "en-US"
},
"referencedPlaces": [
"places/ChIJZd0F3oxZwokRiaEouMZKQ-0",
/.../
]
},
"flagContentUri": "https://www.google.com/local/review/rap/report?postId=&d=17924085&t=12",
"disclosureText": {
"text": "Summarized with Gemini",
"languageCode": "en-US"
}
}
}
请求 EVCS 设施摘要
可以为类型为 electric_vehicle_charging_station
的地点生成电动车辆充电站 (EVCS) 设施摘要。如需在响应中添加 EVCS 设施摘要,请在请求的字段掩码中添加以下内容:
- 地点详情(新):
evChargeAmenitySummary
- 文本搜索(新)和附近搜索(新):
places.evChargeAmenitySummary
响应中某个地点的 evChargeAmenitySummary 字段包含以下内容:
- 四个子字段:
overview
、coffee
、restaurant
和 store
。每个子字段都包含附近地图注点的简要说明,以及以 place/PLACE_ID
形式列出的引用地点资源名称。
- 一个
flagContentUri
链接,用户可以通过该链接标记生成的摘要存在的问题。
- 一个本地化的文本字符串,其中包含披露声明文本“由 Gemini 总结”,必须纳入提供方信息中。
以下示例请求了山景城中某个充电站的电动车辆充电站设施摘要:
curl -X GET -H 'Content-Type: application/json' \
-H "X-Goog-Api-Key: API_KEY" \
-H "X-Goog-FieldMask: id,displayName,evChargeAmenitySummary" \
'https://places.googleapis.com/v1/places/ChIJtwHgNNa2j4ARlC8vbI9lLZA'
响应的格式如下:
{
"id": "ChIJf8j-4z23j4AR_MQ2-bgMmrY",
"displayName": {
"text": "EVgo Charging Station",
"languageCode": "en"
},
"evChargeAmenitySummary": {
"overview": {
"content": {
"text": "Within a short walk, there are several coffee and restaurant options, including Clocktower Coffee Roasting Company, Khao Kang Thai Kitchen, and Roger's Deli & Donuts.",
"languageCode": "en-US"
},
"referencedPlaces": [
"places/ChIJZZR2-j23j4ARi5CXEIAc57Q",
/.../
]
},
"coffee": {
"content": {
"text": "Clocktower Coffee Roasting Company has Wi-Fi and a variety of coffee and pastries in a laid-back atmosphere.",
"languageCode": "en-US"
},
"referencedPlaces": [
"places/ChIJZZR2-j23j4ARi5CXEIAc57Q"
]
},
"restaurant": {
"content": {
"text": "Roger's Deli & Donuts is a bustling deli with sandwiches and breakfast items.\nJoy Sushi serves classic Japanese dishes, including vegetarian and healthy options.\nSubway is a chain sandwich shop offering its usual subs, wraps, and salads.",
"languageCode": "en-US"
},
"referencedPlaces": [
"places/ChIJQ4F3PBa3j4ARf7_QjN1Cklo",
/.../
]
},
"store": {
"content": {
"text": "Rotten Robbie is a chain gas station with a convenience store and a restroom.",
"languageCode": "en-US"
},
"referencedPlaces": [
"places/ChIJA6deFBa3j4AREY0EyTEGhN8",
/.../
]
},
"flagContentUri": "https://www.google.com/local/review/rap/report?postId=ABCDEFG=1234567&t=12",
"disclosureText": {
"text": "Summarized with Gemini",
"languageCode": "en-US"
}
}
}
归因
您的应用中显示的所有 AI 赋能的摘要都必须根据 Google 的政策和标准附上适当的提供方信息。如需了解详情,请参阅 Places API 政策。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[],[],null,["# AI-powered area summaries are generated for the area surrounding a place. Area\nsummaries provide additional context for a location, including points of\ninterest nearby, so that users can make a more informed decision about where to\ngo and what to do once they get there.\n\nFor example, when visiting a new city, you can view a generated neighborhood\nsummary for a hotel to learn more about the surrounding area:\n\n- *\"This vibrant area in San Francisco, blending North Beach and Chinatown,\n sits northwest of the Financial District and features literary landmarks,\n unique cultural attractions, and diverse dining. Notable spots include the\n iconic City Lights Bookstore, the fascinating Cable Car Museum, and the\n bustling streets of Chinatown.*\n\n *The area offers a unique blend of history and culture, where a\n pedestrian-friendly environment invites exploration despite some hills and\n crowds. Immerse yourself in the literary history at City Lights Bookstore,\n experience the vibrant culture of Chinatown with its temples and fortune\n cookie factories, or step back in time at the Cable Car Museum. A variety of\n dining options await, from authentic Chinese cuisine to delicious pizza.\"*\n\nIf you are considering charging an electric vehicle, you can view a generated\nsummary for an electric vehicle charging station to find nearby coffee shops or\nrestaurants to visit while you wait:\n\n- *\"This area offers a range of dining options within a 9-minute walk,\n including Starbucks, Sushi Jin, and Safeway.\"*\n\nAlong with a description of the area, the response also contains a list of place\nIDs for the places referenced in the description.\n\nPlaces API (New) provides two types of AI-powered area summaries:\n\n- **Neighborhood summaries** , which provide high-level overviews of nearby attractions for places with types `premise`, `street_address`, and all types in the **[Housing](/maps/documentation/places/web-service/place-types#housing)** and **[Lodging](/maps/documentation/places/web-service/place-types#lodging)** categories.\n- **Electric vehicle charging station (EVCS) amenity summaries** , which provide high-level overviews of nearby attractions for places with type `electric_vehicle_charging_station`.\n\nAI-powered area summaries are supported in\n[Place Details (New)](/maps/documentation/places/web-service/place-details),\n[Text Search (New)](/maps/documentation/places/web-service/text-search),\nand\n[Nearby Search (New)](/maps/documentation/places/web-service/nearby-search).\n\nArea summaries are supported for points of interest in the following languages and regions:\n\n| Language | Region |\n|----------|---------------|\n| English | United States |\n\n**Note:** Area summaries are not guaranteed for all places. \n[Try the AI-powered summaries demoopen_in_new](https://mapsplatform.google.com/gemini-placesapi-demo/)\n\nRequest a neighborhood summary\n------------------------------\n\nNeighborhood summaries can be generated for places with types `premise`,\n`street_address`, and all types in the\n**[Housing](/maps/documentation/places/web-service/place-types#housing)** and\n**[Lodging](/maps/documentation/places/web-service/place-types#lodging)**\ncategories. To return a neighborhood summary in the response, include the\nfollowing in the field mask of your request:\n\n- **Place Details (New):** `neighborhoodSummary`\n- **Text Search (New)** and **Nearby Search (New):** `places.neighborhoodSummary`\n\nThe `neighborhoodSummary` field for a place in the response contains the\nfollowing:\n\n- Two subfields: `overview` and `description`. The `overview` subfield includes nearby points of interest specific to the place, while the `description` subfield provides more general information about the surrounding area. Each subfield includes a list of referenced place resource names in the form `place/PLACE_ID`.\n- A [`flagContentUri`](/maps/documentation/places/web-service/content-reporting) link where users can flag a problem with the generated summary.\n- A localized text string with the disclosure text \"Summarized with Gemini\" that must be incorporated in the attributions.\n\nThe following example requests a neighborhood summary for a hotel in New York\nCity: \n\n```\ncurl -X GET -H 'Content-Type: application/json' \\\n-H \"X-Goog-Api-Key: API_KEY\" \\\n-H \"X-Goog-FieldMask: id,displayName,neighborhoodSummary\" \\\n'https://places.googleapis.com/v1/places/ChIJT0DdRo1ZwokRkufwSD-TdGM'\n```\n\nThe response is in the form: \n\n```json\n{\n \"id\": \"ChIJT0DdRo1ZwokRkufwSD-TdGM\",\n \"displayName\": {\n \"text\": \"Courtyard New York Manhattan/SoHo\",\n \"languageCode\": \"en\"\n }\n \"neighborhoodSummary\": {\n \"overview\": {\n \"content\": {\n \"text\": \"This area resides within SoHo, a trendy Lower Manhattan neighborhood celebrated for its upscale boutiques, designer shops, and thriving art scene. The area is home to the Color Factory and Dominique Ansel Bakery, known for its popular Cronuts.\",\n \"languageCode\": \"en-US\"\n },\n \"referencedPlaces\": [\n \"places/ChIJZd0F3oxZwokRiaEouMZKQ-0\",\n /.../\n ]\n },\n \"description\": {\n \"content\": {\n \"text\": \"SoHo's walkability and convenient public transportation options make exploration easy. A diverse array of restaurants and cafes cater to varied tastes. SoHo's central location, surrounded by vibrant neighborhoods, contributes to its fast-paced and energetic atmosphere, with a focus on fashion and design.\",\n \"languageCode\": \"en-US\"\n },\n \"referencedPlaces\": [\n \"places/ChIJZd0F3oxZwokRiaEouMZKQ-0\",\n /.../\n ]\n },\n \"flagContentUri\": \"https://www.google.com/local/review/rap/report?postId=&d=17924085&t=12\",\n \"disclosureText\": {\n \"text\": \"Summarized with Gemini\",\n \"languageCode\": \"en-US\"\n }\n }\n}\n```\n\nRequest an EVCS amenity summary\n-------------------------------\n\nElectric vehicle charging station (EVCS) amenity summaries can be generated for\nplaces with type `electric_vehicle_charging_station`. To include the EVCS\namenity summary in the response, include the following in the field mask of your\nrequest:\n\n- **Place Details (New):** `evChargeAmenitySummary`\n- **Text Search (New)** and **Nearby Search (New):** `places.evChargeAmenitySummary`\n\nThe **evChargeAmenitySummary** field for a place in the response contains the\nfollowing:\n\n- Four subfields: `overview`, `coffee`, `restaurant`, and `store`. Each subfield includes a brief description of nearby points of interest and a list of referenced place resource names in the form `place/PLACE_ID`.\n- A `flagContentUri` link where users can flag a problem with the generated summary.\n- A localized text string with the disclosure text \"Summarized with Gemini\" that must be incorporated in attributions.\n\nThe following example requests an EV charging station amenity summary for a\ncharging station in Mountain View: \n\n```\ncurl -X GET -H 'Content-Type: application/json' \\\n-H \"X-Goog-Api-Key: API_KEY\" \\\n-H \"X-Goog-FieldMask: id,displayName,evChargeAmenitySummary\" \\\n'https://places.googleapis.com/v1/places/ChIJtwHgNNa2j4ARlC8vbI9lLZA'\n```\n\nThe response is in the form: \n\n```json\n{\n \"id\": \"ChIJf8j-4z23j4AR_MQ2-bgMmrY\",\n \"displayName\": {\n \"text\": \"EVgo Charging Station\",\n \"languageCode\": \"en\"\n },\n \"evChargeAmenitySummary\": {\n \"overview\": {\n \"content\": {\n \"text\": \"Within a short walk, there are several coffee and restaurant options, including Clocktower Coffee Roasting Company, Khao Kang Thai Kitchen, and Roger's Deli & Donuts.\",\n \"languageCode\": \"en-US\"\n },\n \"referencedPlaces\": [\n \"places/ChIJZZR2-j23j4ARi5CXEIAc57Q\",\n /.../\n ]\n },\n \"coffee\": {\n \"content\": {\n \"text\": \"Clocktower Coffee Roasting Company has Wi-Fi and a variety of coffee and pastries in a laid-back atmosphere.\",\n \"languageCode\": \"en-US\"\n },\n \"referencedPlaces\": [\n \"places/ChIJZZR2-j23j4ARi5CXEIAc57Q\"\n ]\n },\n \"restaurant\": {\n \"content\": {\n \"text\": \"Roger's Deli & Donuts is a bustling deli with sandwiches and breakfast items.\\nJoy Sushi serves classic Japanese dishes, including vegetarian and healthy options.\\nSubway is a chain sandwich shop offering its usual subs, wraps, and salads.\",\n \"languageCode\": \"en-US\"\n },\n \"referencedPlaces\": [\n \"places/ChIJQ4F3PBa3j4ARf7_QjN1Cklo\",\n /.../\n ]\n },\n \"store\": {\n \"content\": {\n \"text\": \"Rotten Robbie is a chain gas station with a convenience store and a restroom.\",\n \"languageCode\": \"en-US\"\n },\n \"referencedPlaces\": [\n \"places/ChIJA6deFBa3j4AREY0EyTEGhN8\",\n /.../\n ]\n },\n \"flagContentUri\": \"https://www.google.com/local/review/rap/report?postId=ABCDEFG=1234567&t=12\",\n \"disclosureText\": {\n \"text\": \"Summarized with Gemini\",\n \"languageCode\": \"en-US\"\n }\n }\n}\n```\n\nAttributions\n------------\n\nAll AI-powered summaries displayed in your app must be accompanied by the\nappropriate attribution in accordance with Google's policies and standards. For\nmore information, see [Policies for Places\nAPI](/maps/documentation/places/web-service/policies#ai-powered_summaries)."]]