AI 赋能的评价摘要
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
AI 赋能型评价摘要是 AI 根据用户评价生成的地点摘要。通过整合用户评价的关键要素(例如地点属性和评价者情绪),评价摘要可提供高级数据分析,帮助用户做出明智的决策。
例如,旧金山渡轮大厦的评价摘要包含从美食和购物到景色和氛围等各种信息:
“游客表示,这个历史地标提供各种各样的商店、餐厅和农贸市场,许多人称赞这里可欣赏海湾和城市美景。还突出了这里充满活力的氛围、可便捷地乘坐渡轮前往其他目的地,以及有机会光顾本地商家。”
地点详情(新)、文本搜索(新)和附近搜索(新)支持评价摘要。
以下语言和地区支持景点摘要:
语言 |
区域 |
英语 |
印度
日本
英国
美国
|
日语 |
日本 |
请求审核摘要
如需请求评价摘要,请在请求的字段掩码中添加 reviewSummary
:
- 地点详情(新):
reviewSummary
- 文本搜索(新)和附近搜索(新):
places.reviewSummary
评价摘要的提供方信息必须包含指向 Google 地图上相应地点评价的链接。如需检索该链接,请在请求的字段掩码中添加 reviewSummary.reviewsUri
。
响应正文包含三个字段:
text
:AI 生成的评价摘要。
flagContentUri
:用于标记不当内容,以便 Google 将其移除。
disclosureText
:本地化文本字符串,其中包含必须纳入提供方信息中的披露声明文本“由 Gemini 总结”。
“地点详情(新)”请求
以下示例请求纽约一家饺子餐厅的评价摘要:
curl -X GET https://places.googleapis.com/v1/places/ChIJD2l2k7ZL0YkRC80d-3MV1lM \
-H 'Content-Type: application/json' \
-H "X-Goog-Api-Key: API_KEY" \
-H "X-Goog-FieldMask: displayName,reviewSummary"
响应的格式如下:
{
"displayName": {
"text": "Dumpling House",
"languageCode": "en"
},
"reviewSummary": {
"text": {
"text": "People say this restaurant serves delicious dumplings, noodles, and pork belly buns. They highlight the generous portions, reasonable prices, and quick service. They also like the friendly and accommodating staff.",
"languageCode": "en-US"
},
"flagContentUri": "https://www.google.com/local/review/rap/report?postId=5%401:CAIQACodChtyc19oOnNwOUFtUVhIX1BoTEZjTFg0MmNXNEE%7CCAIQACorChtyc19oOnNwOUFtUVhIX1BoTEZjTFg0MmNXNEESDAikt7HDBhDopLLxAg&d=17924085&t=8",
"disclosureText": {
"text": "Summarized with Gemini",
"languageCode": "en-US"
},
"reviewsUri": "https://www.google.com/maps/place//data=!4m4!3m3!1s0x89d14bb69376690f:0x53d61573fb1dcd0b!9m1!1b1"
}
}
文本搜索(新)请求
以下示例请求纽约市一家咖啡店的评价摘要:
curl -X POST -d '{
"textQuery": "coffee shop",
"locationBias": {
"circle": {
"center": {
"latitude": 40.722630,
"longitude": -74.001397
}
}
},
}' \
-H 'Content-Type: application/json' -H "X-Goog-Api-Key: API_KEY" \
-H "X-Goog-FieldMask: places.id,places.reviewSummary" \
'https://places.googleapis.com/v1/places:searchText'
响应正文的格式如下:
{
"places": [
{
"id": "ChIJyfJXNphZwokRbo-oe0DjVT4",
"reviewSummary": {
"text": {
"text": "People say this coffee shop serves up delicious oat milk lattes, cold brew, and pastries, such as almond croissants and cheese danish. They also highlight the friendly staff, cozy atmosphere, and outdoor seating.",
"languageCode": "en-US"
},
"flagContentUri": "https://www.google.com/local/review/rap/report?postId=5%401:CAIQACodChtyc19oOkk1Z1UwZkp4cEJ3bnA3aGt5VGJLMFE%7CCAIQACorChtyc19oOkk1Z1UwZkp4cEJ3bnA3aGt5VGJLMFESDAj7p9_BBhCYsoeAAw&d=17924085&t=8",
"disclosureText": {
"text": "Summarized with Gemini",
"languageCode": "en-US"
},
"reviewsUri": "https://www.google.com/maps/place//data=!4m4!3m3!1s0x89c259983657f2c9:0x3e55e3407ba88f6e!9m1!1b1"
}
},
{
"id": "ChIJHcFFXH9ZwokR_QKedPacLiQ",
"reviewSummary": {
"text": {
"text": "People say this cafe offers delicious matcha, lattes, and freshly baked pastries, including the popular rose honey latte and blueberry lemon muffin. They highlight the spacious, chill, and cinema-inspired vibe, perfect for working or socializing, and the fast, friendly service. They also like the free WiFi, outlets, and clean restrooms.",
"languageCode": "en-US"
},
"flagContentUri": "https://www.google.com/local/review/rap/report?postId=5%401:CAIQACodChtyc19oOl8yWTlXS0NDVTk1UEhiTFdBQzhlelE%7CCAIQACorChtyc19oOl8yWTlXS0NDVTk1UEhiTFdBQzhlelESDAikt7HDBhDopLLxAg&d=17924085&t=8",
"disclosureText": {
"text": "Summarized with Gemini",
"languageCode": "en-US"
},
"reviewsUri": "https://www.google.com/maps/place//data=!4m4!3m3!1s0x89c2597f5c45c11d:0x242e9cf6749e02fd!9m1!1b1"
}
},
...
]
}
“附近搜索(新)”请求
以下示例请求的是西雅图市中心附近的酒店:
curl -X POST -d '{
"maxResultCount": 5,
"locationRestriction": {
"circle": {
"center": {
"latitude": 47.609937,
"longitude": -122.340714
},
"radius": 1000
}
},
"includedTypes": ["hotel"],
"excludedTypes": [],
"rankPreference":"POPULARITY"
}' \
-H 'Content-Type: application/json' -H "X-Goog-Api-Key: API_KEY" \
-H "X-Goog-FieldMask: places.id,places.reviewSummary" \
'https://places.googleapis.com/v1/places:searchNearby'
响应的格式如下:
{
"places": [
{
"id": "ChIJRwVmS-BrkFQRpAB3pO5JOuQ",
"reviewSummary": {
"text": {
"text": "People say this hotel offers clean, modern, and spacious rooms with comfortable beds and phenomenal city views. They highlight the convenient downtown location, with easy walking access to popular attractions, and the efficient self-parking option. They also like the friendly and helpful staff, and the smooth check-in and check-out process.",
"languageCode": "en-US"
},
"flagContentUri": "https://www.google.com/local/review/rap/report?postId=5%401:CAIQACodChtyc19oOlJWVG5YOXZrSnZhTXBqUy1rc1JZc3c%7CCAIQACorChtyc19oOlJWVG5YOXZrSnZhTXBqUy1rc1JZc3cSDAikt7HDBhDopLLxAg&d=17924085&t=8",
"disclosureText": {
"text": "Summarized with Gemini",
"languageCode": "en-US"
},
"reviewsUri": "https://www.google.com/maps/place//data=!4m4!3m3!1s0x54906be04b660547:0xe43a49eea47700a4!9m1!1b1"
}
},
{
"id": "ChIJQVJVX7RqkFQRcpsm3VVub9U",
"reviewSummary": {
"text": {
"text": "People say this hotel offers spacious rooms, a convenient location near the convention center and Pike Place Market, and a tasty restaurant. They also highlight the friendly and attentive staff, the comfortable beds and pillows, and the convenient amenities such as a Starbucks in the lobby and a club lounge.\n\nSome reviews mention the rooms can be noisy.",
"languageCode": "en-US"
},
"flagContentUri": "https://www.google.com/local/review/rap/report?postId=5%401:CAIQACodChtyc19oOldJVUlodGhTUTJOdUdTSmFxQWw2Nnc%7CCAIQACorChtyc19oOldJVUlodGhTUTJOdUdTSmFxQWw2NncSDAikt7HDBhDopLLxAg&d=17924085&t=8",
"disclosureText": {
"text": "Summarized with Gemini",
"languageCode": "en-US"
},
"reviewsUri": "https://www.google.com/maps/place//data=!4m4!3m3!1s0x54906ab45f555241:0xd56f6e55dd269b72!9m1!1b1"
}
},
...
]
}
归因
您的应用中显示的所有 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 review summaries are AI-generated summaries of places based solely on\nuser reviews. By synthesizing key elements of user reviews, such as place\nattributes and reviewer sentiment, review summaries provide high-level insights\nand help users make informed decisions.\n\nFor example, a review summary of the Ferry Building in San Francisco includes\ninformation ranging from food and shopping to views and atmosphere:\n\n*\"Visitors say this historical landmark offers a diverse selection of shops,\nrestaurants, and a farmers market, with many praising the views of the bay and\nthe city. They also highlight the vibrant atmosphere, convenient ferry access to\nother destinations, and the opportunity to enjoy local businesses.\"*\n\nReview 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\nReview summaries are supported for points of interest in the following languages\nand regions:\n\n| Language | Region |\n|----------|------------------------------------------|\n| English | India Japan United Kingdom United States |\n| Japanese | Japan |\n\n**Note:** Review 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 review summary\n------------------------\n\nTo request a review summary, include `reviewSummary` in the field mask of the\nrequest:\n\n- **Place Details (New):** `reviewSummary`\n- **Text Search (New)** and **Nearby Search (New):** `places.reviewSummary`\n\nAttributions for a review summary must include a link to the place's reviews on\nGoogle Maps. To retrieve that link, include\n[`reviewSummary.reviewsUri`](/maps/documentation/places/web-service/maps-links)\nin the field mask of the request.\n\nThe response body includes three fields:\n\n- `text`: The AI-generated review summary.\n- [`flagContentUri`](/maps/documentation/places/web-service/content-reporting): Used to flag inappropriate content for removal by Google.\n- `disclosureText`: A localized text string with the disclosure text \"Summarized with Gemini\" that must be incorporated in attributions.\n\n### Place Details (New) request\n\nThe following example requests a review summary for a dumpling restaurant in New\nYork: \n\n```\ncurl -X GET https://places.googleapis.com/v1/places/ChIJD2l2k7ZL0YkRC80d-3MV1lM \\\n-H 'Content-Type: application/json' \\\n-H \"X-Goog-Api-Key: API_KEY\" \\\n-H \"X-Goog-FieldMask: displayName,reviewSummary\"\n```\n\nThe response is in the form: \n\n```json\n{\n \"displayName\": {\n \"text\": \"Dumpling House\",\n \"languageCode\": \"en\"\n },\n \"reviewSummary\": {\n \"text\": {\n \"text\": \"People say this restaurant serves delicious dumplings, noodles, and pork belly buns. They highlight the generous portions, reasonable prices, and quick service. They also like the friendly and accommodating staff.\",\n \"languageCode\": \"en-US\"\n },\n \"flagContentUri\": \"https://www.google.com/local/review/rap/report?postId=5%401:CAIQACodChtyc19oOnNwOUFtUVhIX1BoTEZjTFg0MmNXNEE%7CCAIQACorChtyc19oOnNwOUFtUVhIX1BoTEZjTFg0MmNXNEESDAikt7HDBhDopLLxAg&d=17924085&t=8\",\n \"disclosureText\": {\n \"text\": \"Summarized with Gemini\",\n \"languageCode\": \"en-US\"\n },\n \"reviewsUri\": \"https://www.google.com/maps/place//data=!4m4!3m3!1s0x89d14bb69376690f:0x53d61573fb1dcd0b!9m1!1b1\"\n }\n}\n```\n\n### Text Search (New) request\n\nThe following example requests a review summary for a coffee shop in New York\nCity: \n\n```\ncurl -X POST -d '{\n \"textQuery\": \"coffee shop\",\n \"locationBias\": {\n \"circle\": {\n \"center\": {\n \"latitude\": 40.722630,\n \"longitude\": -74.001397\n }\n }\n },\n}' \\\n-H 'Content-Type: application/json' -H \"X-Goog-Api-Key: API_KEY\" \\\n-H \"X-Goog-FieldMask: places.id,places.reviewSummary\" \\\n'https://places.googleapis.com/v1/places:searchText'\n```\n\nThe response body is in the form: \n\n```json\n{\n \"places\": [\n {\n \"id\": \"ChIJyfJXNphZwokRbo-oe0DjVT4\",\n \"reviewSummary\": {\n \"text\": {\n \"text\": \"People say this coffee shop serves up delicious oat milk lattes, cold brew, and pastries, such as almond croissants and cheese danish. They also highlight the friendly staff, cozy atmosphere, and outdoor seating.\",\n \"languageCode\": \"en-US\"\n },\n \"flagContentUri\": \"https://www.google.com/local/review/rap/report?postId=5%401:CAIQACodChtyc19oOkk1Z1UwZkp4cEJ3bnA3aGt5VGJLMFE%7CCAIQACorChtyc19oOkk1Z1UwZkp4cEJ3bnA3aGt5VGJLMFESDAj7p9_BBhCYsoeAAw&d=17924085&t=8\",\n \"disclosureText\": {\n \"text\": \"Summarized with Gemini\",\n \"languageCode\": \"en-US\"\n },\n \"reviewsUri\": \"https://www.google.com/maps/place//data=!4m4!3m3!1s0x89c259983657f2c9:0x3e55e3407ba88f6e!9m1!1b1\"\n }\n },\n {\n \"id\": \"ChIJHcFFXH9ZwokR_QKedPacLiQ\",\n \"reviewSummary\": {\n \"text\": {\n \"text\": \"People say this cafe offers delicious matcha, lattes, and freshly baked pastries, including the popular rose honey latte and blueberry lemon muffin. They highlight the spacious, chill, and cinema-inspired vibe, perfect for working or socializing, and the fast, friendly service. They also like the free WiFi, outlets, and clean restrooms.\",\n \"languageCode\": \"en-US\"\n },\n \"flagContentUri\": \"https://www.google.com/local/review/rap/report?postId=5%401:CAIQACodChtyc19oOl8yWTlXS0NDVTk1UEhiTFdBQzhlelE%7CCAIQACorChtyc19oOl8yWTlXS0NDVTk1UEhiTFdBQzhlelESDAikt7HDBhDopLLxAg&d=17924085&t=8\",\n \"disclosureText\": {\n \"text\": \"Summarized with Gemini\",\n \"languageCode\": \"en-US\"\n },\n \"reviewsUri\": \"https://www.google.com/maps/place//data=!4m4!3m3!1s0x89c2597f5c45c11d:0x242e9cf6749e02fd!9m1!1b1\"\n }\n },\n ...\n ]\n}\n```\n\n### Nearby Search (New) request\n\nThe following example requests hotels near downtown Seattle: \n\n```\ncurl -X POST -d '{\n \"maxResultCount\": 5,\n \"locationRestriction\": {\n \"circle\": {\n \"center\": {\n \"latitude\": 47.609937,\n \"longitude\": -122.340714\n },\n \"radius\": 1000\n }\n },\n \"includedTypes\": [\"hotel\"],\n \"excludedTypes\": [],\n \"rankPreference\":\"POPULARITY\"\n}' \\\n-H 'Content-Type: application/json' -H \"X-Goog-Api-Key: API_KEY\" \\\n-H \"X-Goog-FieldMask: places.id,places.reviewSummary\" \\\n'https://places.googleapis.com/v1/places:searchNearby'\n```\n\nThe response is in the form: \n\n```json\n{\n \"places\": [\n {\n \"id\": \"ChIJRwVmS-BrkFQRpAB3pO5JOuQ\",\n \"reviewSummary\": {\n \"text\": {\n \"text\": \"People say this hotel offers clean, modern, and spacious rooms with comfortable beds and phenomenal city views. They highlight the convenient downtown location, with easy walking access to popular attractions, and the efficient self-parking option. They also like the friendly and helpful staff, and the smooth check-in and check-out process.\",\n \"languageCode\": \"en-US\"\n },\n \"flagContentUri\": \"https://www.google.com/local/review/rap/report?postId=5%401:CAIQACodChtyc19oOlJWVG5YOXZrSnZhTXBqUy1rc1JZc3c%7CCAIQACorChtyc19oOlJWVG5YOXZrSnZhTXBqUy1rc1JZc3cSDAikt7HDBhDopLLxAg&d=17924085&t=8\",\n \"disclosureText\": {\n \"text\": \"Summarized with Gemini\",\n \"languageCode\": \"en-US\"\n },\n \"reviewsUri\": \"https://www.google.com/maps/place//data=!4m4!3m3!1s0x54906be04b660547:0xe43a49eea47700a4!9m1!1b1\"\n }\n },\n {\n \"id\": \"ChIJQVJVX7RqkFQRcpsm3VVub9U\",\n \"reviewSummary\": {\n \"text\": {\n \"text\": \"People say this hotel offers spacious rooms, a convenient location near the convention center and Pike Place Market, and a tasty restaurant. They also highlight the friendly and attentive staff, the comfortable beds and pillows, and the convenient amenities such as a Starbucks in the lobby and a club lounge.\\n\\nSome reviews mention the rooms can be noisy.\",\n \"languageCode\": \"en-US\"\n },\n \"flagContentUri\": \"https://www.google.com/local/review/rap/report?postId=5%401:CAIQACodChtyc19oOldJVUlodGhTUTJOdUdTSmFxQWw2Nnc%7CCAIQACorChtyc19oOldJVUlodGhTUTJOdUdTSmFxQWw2NncSDAikt7HDBhDopLLxAg&d=17924085&t=8\",\n \"disclosureText\": {\n \"text\": \"Summarized with Gemini\",\n \"languageCode\": \"en-US\"\n },\n \"reviewsUri\": \"https://www.google.com/maps/place//data=!4m4!3m3!1s0x54906ab45f555241:0xd56f6e55dd269b72!9m1!1b1\"\n }\n },\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)."]]