适用于 Places API 的 Gemini 模型功能

Places API 的 Gemini 模型功能(新)为 Places API 提供了对 LLM 的支持,以便您可以返回与某个地点关联的数据(营业时间、评价、照片)以及 LLM 提供的数据。这些生成数据包含来自 LLM 的汇总数据和汇总数据,以增强已与地点关联的数据。

例如,针对“电动车辆充电站”执行标准文本搜索(新)会返回提供电动车辆充电站的地点列表。如果您仅搜索最近的电动汽车充电器或与您的车辆兼容的最近充电器,则此类响应非常合适。

不过,您可能还需要更好地了解充电站周围的区域,尤其是您打算在充电站充电一小时或更长时间时。针对同一搜索使用 Gemini 模型功能时,响应中可以包含每个地点的动态生成式说明,包括充电站周围区域的相关信息:

  • “2-4 分钟的步行路程内有多个餐饮和购物场所,包括 Chef Chu's、G Gen Korea 烧烤屋、Amber India、Pacific Catch,以及沃尔玛、Wole Foods Market 和 Trader Joe's 等多家杂货店。”

  • “步行 1-5 分钟即可到达多家餐饮和购物场所,包括 Khao Kang Ta Kitchen、Roger's Deli & Donuts 以及 La Costeña。想吃寿司,Joy Sushi 是个不错的选择。在食品杂货方面,Dollar Tree 以折扣价提供各种产品。”

这些来自 LLM 的生成式内容可以增强回答,并提供更多信息来帮助用户做出明智的决定。

Places API 中添加了 AI 赋能的新功能(新)

这些功能可将以下数据添加到 Places API(新)响应中:

生成式地点摘要

生成式地点摘要特定于地点 ID。地点摘要将许多不同类型的数据汇总到该地点的单个摘要中。

Places API(新)提供两种类型的地点生成摘要:

  • 概览摘要:地点的简要概览,平均约 100 个字符,可帮助用户获取地点的快照。

  • 说明摘要:对地点的较长摘要(平均约 400 个字符)提供,用于提供涵盖地点主要方面的详细概览。

目前,支持的类型中针对文化娱乐和休闲餐饮购物体育类别的地点类型提供地点摘要。

生成区域摘要

生成区域摘要由 LLM 针对地点周围的区域创建。地点的区域摘要可能包含用户做出决定所需的所有信息,用户无需发出进一步请求即可深入了解区域详情。

除了区域说明之外,响应还包含说明中引用的地点的地点 ID 列表,以及按不同内容类型排序的地点列表。例如,一种内容类型包含与该区域的活动相关联的地点列表,另一种内容类型包含该区域的餐厅列表。

区域摘要目前适用于住宿类别的支持的类型部分所示的地点类型,以及特定地点类型 electric_vehicle_charging_stationgeocodepremise

生成地点和区域摘要

Google 经常离线生成地点生成式摘要和生成式区域摘要。通过离线生成这些摘要,您可以在利用由 Gemini 提供支持的内容的同时,仍能获得您期望的 Places API(新)性能。

Google 会经常重新生成这些摘要,以确保它们是基于最新的可用信息。这意味着,当您调用该 API 时,将在服务中显示最新数据。

内容相关搜索结果

文本搜索(新)可以根据一个字符串(例如,“北京烤鸭”或“南京附近的鞋店”)返回一组地点的相关信息。“文本搜索(新)”响应包含与文本字符串和请求中设置的任何位置偏向匹配的地点列表。

将上下文搜索结果添加到响应后,响应现在会包含有助于用户回答问题的评价、照片和理由:

  • 为什么我会在结果中看到此地点?
  • 为什么我应该选择此地点?

例如,您今天向“地点详情(新)”“文本搜索(新)”或“附近搜索(新)”发出请求,在响应中包含特定地点。对于所有三个请求,该地点的响应数据都是相同的,因为返回的数据与该地点相关联。

但是,对于使用新功能的文本搜索(新),响应可以包含从输入查询字符串本身派生的数据。这意味着上下文搜索结果对于查询字符串是唯一的。例如,您可以使用以下查询字符串发出“文本搜索(新)”请求:

“加利福尼亚州山景城的辛辣素食餐馆”

然后,保持所有输入参数不变,仅将查询字符串更改为:

“加利福尼亚州山景城的辛辣素食餐馆”

对于在两个响应中均出现的餐馆,有关该地点的响应数据是相同的,因为该数据与地点本身相关联。但是,上下文搜索结果对于查询来说是唯一的,因为它们是从查询字符串派生的。然后,您可以将上下文搜索结果中的评价、照片和理由显示给用户,帮助他们确定响应中的哪个地点最符合他们的搜索请求。

为 Places API 启用 Gemini 模型功能(新)

您必须启用 Places API(新)才能对 Places API(新)使用 Gemini 模型功能。如需了解详情,请参阅设置您的 Google Cloud 项目

实验性版本的限制

此版本仅支持英语的地点和区域摘要。

Gemini 是什么?

如需了解 Gemini 模型,请参阅 Gemini 常见问题解答

请求生成式地点摘要

地点摘要是由 LLM 针对特定地点生成的生成式摘要。Places API(新)将两种类型的摘要添加到响应中:

  • 概览生成的摘要,类似于与某个地点相关联的静态编辑摘要。生成式简短摘要平均约 100 个字符,具有以下几项优势:

    • 许多地点没有编辑摘要,因此它们填补了某个地点的可用信息。

    • 它们是从 LLM 生成的,因此地点所有者无需维护它们。

  • 说明生成式摘要源自许多来源,包括来自 Google 地图的评价。说明平均包含约 400 个字符,其中包括用于生成长说明的评价列表。

    如需手动生成说明摘要,需要有人汇总来自多个位置的数据,然后手动编写和维护内容。Places API(新)的 Gemini 模型功能通过 LLM 构建这些摘要,以保持所生成内容的范围和新鲜度。

地点详情(新)文本搜索(新)附近搜索(新)均支持地点摘要。如需在响应中包含地点摘要,请在请求的字段掩码中添加以下字段:

  • 地点详情generativeSummary

  • 文本搜索和附近搜索places.generativeSummary

generativeSummary 字段包含以下字段:

  • generativeSummary.overview:生成式概览摘要。
  • generativeSummary.description:生成式说明摘要。
  • generativeSummary.references:用于为说明摘要提供内容的评价的数组(最多五条)。如果没有说明摘要,则此数组为空。

概览摘要请求示例

以下示例文本搜索仅返回加利福尼亚州山景城的辛辣素食餐馆的 overview 摘要:

curl -X  POST -d '{
  "textQuery": "Spicy Vegetarian Food",
  "location_bias":{
    "rectangle":{
      "low": {
        "latitude": 37.415,
       "longitude": -122.091},
    "high":{
      "latitude": 37.429,
      "longitude": -122.065}
    }
  },
  "maxResultCount": 5
}' \
-H 'Content-Type: application/json' -H "X-Goog-Api-Key: API_KEY" \
-H "X-Goog-FieldMask: places.id,places.displayName,places.generativeSummary.overview" \
https://places.googleapis.com/v1/places:searchText

响应中包含 generativeSummary.overview 字段,而该字段包含 overview.textoverview.languageCode

{
  "places": [
    {
      "id": "ChIJQ8nPjFW3j4ARcAaUg5pF-Ts",
      "displayName": {
        "text": "Zareen's",
        "languageCode": "en"
      },
      "generativeSummary": {
        "overview": {
          "text": "Casual restaurant serving halal Pakistani and Indian cuisine, plus a selection of vegetarian items.",
          "languageCode": "en-US"
        }
      }
    },
    {
      "id": "ChIJETHw0F-7j4AR85V_I6OobCI",
      "displayName": {
        "text": "Hyderabad Dum Biryani",
        "languageCode": "en"
      },
      "generativeSummary": {
        "overview": {
          "text": "Casual eatery offering vegetarian & non-vegetarian Indian fare, plus breads & desserts.",
          "languageCode": "en-US"
        }
      }
    },
  . . .
}

示例概览和说明摘要请求

此示例执行与上一示例相同的查询,但使用字段掩码 places.generativeSummary 返回整个 generativeSummary 对象,包括 generativeSummary.overviewgenerativeSummary.descriptiongenerativeSummary.references 字段:

{
  "places": [
    {
      "id": "ChIJQ8nPjFW3j4ARcAaUg5pF-Ts",
      "displayName": {
        "text": "Zareen's",
        "languageCode": "en"
      },
      "generativeSummary": {
        "overview": {
          "text": "Casual restaurant serving halal Pakistani and Indian cuisine, plus a selection of vegetarian items.",
          "languageCode": "en-US"
        },
        "description": {
          "text": "Pakistani restaurant dishing up comfort food including vegetarian, vegan, and halal options.
          Offerings include chicken tikka masala, naan, and paratha. There's also a salad bar, and dessert is
          available.\nOpen for breakfast, lunch, and dinner, the venue has a casual atmosphere and outdoor rooftop
          seating. People mention the ambiance and say the service is prompt.\nCustomers typically spend $10–20.",
          "languageCode": "en-US"
        },
        "references": {
          "reviews": [
            {
              "name": "places/ChIJQ8nPjFW3j4ARcAaUg5pF-Ts/reviews/ChZDSUhNMG9nS0VJQ0FnSUN4aUtDbVJREAE",
              "relativePublishTimeDescription": "12 months ago",
              "rating": 5,
              "text": {
                "text": "Insanely good Pakistani food with the perfect ambiance! This food never disappoints AND THEY ARE OPEN TILL MIDNIGHT!!",
                "languageCode": "en"
              },
              "originalText": {
                "text": "Insanely good Pakistani food with the perfect ambiance! This food never disappoints AND THEY ARE OPEN TILL MIDNIGHT!!",
                "languageCode": "en"
              },
              "authorAttribution": {
                "displayName": "Anam Qureshi",
                "uri": "https://www.google.com/maps/contrib/116859422317024657778/reviews",
                "photoUri": "https://lh3.googleusercontent.com/a-/ALV-UjWbImVTop_1dl9FTSmec0x00000000-cc-rp-mo"
              },
              "publishTime": "2023-05-09T07:24:36Z"
            },
            . . .
          ]
        }
      }
    },
    {
      "id": "ChIJETHw0F-7j4AR85V_I6OobCI",
      "displayName": {
        "text": "Hyderabad Dum Biryani",
        "languageCode": "en"
      },
      "generativeSummary": {
        "overview": {
          "text": "Indian restaurant offering comfort food including vegetarian and vegan options.",
          "languageCode": "en-US"
        },
        . . .
}

请求生成区域摘要

区域摘要是由 LLM 针对地点附近区域创建的生成式摘要。区域摘要对用户决定是否要决定某个地点非常重要。

例如,您想要预订新城市的酒店,虽然可以找到符合要求的酒店,但也希望了解更多有关酒店周边区域的信息。您可以为酒店生成区域摘要,而无需查看周围区域的地图,然后不得不调查地图上的每个地点。

地点详情(新)文本搜索(新)附近搜索(新)均支持区域摘要。

如需在响应中包含区域摘要,请在请求的字段掩码中添加区域摘要:

  • areaSummary(地点详情)
  • places.areaSummary(文本搜索和附近搜索)。

响应中某个地点的 areaSummary 字段包含一个最多包含四个 contentBlocks 的数组。每个区块的主题取决于地点类型:

  • 对于电动车辆充电站(定义为 electric_vehicle_charging_station 类型的地点),主题块包括:"overview""coffee""restaurant""store"

  • 对于类型由住宿类别定义的地点,以及具体地点类型 geocodepremise,主题块包括:"overview""activity""restaurant""store"

针对电动车辆充电站区域摘要的请求示例

以下示例“地点详情”请求会返回山景城特定电动车辆充电站的区域摘要,由地点 ID ChIJC5b6QKiwj4ARgn2EwlnJnWU 标识:

curl -X GET -H 'Content-Type: application/json' \
  -H "X-Goog-Api-Key: API_KEY" \
  -H "X-Goog-FieldMask: id,displayName,areaSummary" \
  https://places.googleapis.com/v1/places/ChIJC5b6QKiwj4ARgn2EwlnJnWU

响应中包含 areaSummary 字段,其中包括 contentBlocks 数组:

  • topic 字段指定内容块的类型。由于此示例中的地点是电动车辆充电站,因此这四个内容块分别是 "overview""coffee""restaurant""store"

  • content 字段包含该主题的摘要,包括语言代码。

  • references 数组以 places/PLACE_ID 格式指定地点资源名称,用于为内容区块提供内容。

{
  "id": "ChIJC5b6QKiwj4ARgn2EwlnJnWU",
  "displayName": {
    "text": "EVgo Charging Station",
    "languageCode": "en"
  },
  "areaSummary": {
    "contentBlocks": [
      {
        "topic": "overview",
        "content": {
          "text": "Within a 4-minute walk, there are several dining and shopping options from this charging station, including Starbucks and Los Altos Taqueria.",
          "languageCode": "en-US"
        },
        "references": {
          "places": [
            "places/ChIJ-f-lEaiwj4ARB1IwfdLFfRY",
            "places/ChIJhzHBsAe6j4ARvq9oi8u-bqQ"
          ]
        }
      },
      {
        "topic": "coffee",
        "content": {
          "text": "Starbucks offers Wi-Fi, light bites, and its signature roasts in a cozy space.",
          "languageCode": "en-US"
        },
        "references": {
          "places": [
            "places/ChIJ-f-lEaiwj4ARB1IwfdLFfRY"
          ]
        }
      },
      {
        "topic": "restaurant",
        "content": {
          "text": "Los Altos Taqueria serves classic Mexican dishes in a kid-friendly venue.\nHyderabad Dum Biryani specializes in vegetarian and vegan Indian fare, including lunch and dinner options.\nSushi Jin is a popular spot for sushi and other Japanese dishes, featuring a relaxed atmosphere.\nSuper tacos el conrro is a kid-friendly spot for Mexican fare.",
          "languageCode": "en-US"
        },
        "references": {
          "places": [
            "places/ChIJhzHBsAe6j4ARvq9oi8u-bqQ",
            "places/ChIJETHw0F-7j4AR85V_I6OobCI",
            "places/ChIJ-9pg_Qmxj4AR4deSLfZINW0",
            "places/ChIJvcqEhTyxj4AR4ZdQevNxGZk"
          ]
        }
      },
      {
        "topic": "store",
        "content": {
          "text": "Safeway provides a range of groceries, along with a deli and a bakery.",
          "languageCode": "en-US"
        },
        "references": {
          "places": [
            "places/ChIJF7_iDaiwj4ARzdC4NlGzJFI"
          ]
        }
      }
    ]
  }
}

针对酒店的区域摘要的请求示例

以下示例文本搜索请求请求加利福尼亚州山景城的酒店:

curl -X  POST -d '{
  "textQuery": "Hotels",
  "location_bias":{
    "rectangle":{
      "low": {
        "latitude": 37.415,
       "longitude": -122.091},
    "high":{
      "latitude": 37.429,
      "longitude": -122.065}
    }
  },
  "maxResultCount": 5
}' \
-H 'Content-Type: application/json' -H "X-Goog-Api-Key: API_KEY" \
-H "X-Goog-FieldMask: places.id,places.displayName,places.areaSummary" \
https://places.googleapis.com/v1/places:searchText

响应包含 areaSummary 字段,其中包括 contentBlocks 数组。酒店类型地点的响应包含主题 "overview""activity""restaurant""store" 的内容块:

{
  "places": [
    {
      "id": "ChIJ81X7bC63j4ARNJTuqMFBq-4",
      "displayName": {
        "text": "Shashi Hotel Mountain View, an Urban Resort",
        "languageCode": "en"
      },
      "areaSummary": {
        "contentBlocks": [
          {
            "topic": "overview",
            "content": {
              "text": "This area offers several attractions, including Cinemark Century Mountain View 16 and Computer History Museum. Charleston Park provides picnic spots and the Pear Theatre hosts performances.",
              "languageCode": "en-US"
            },
            "references": {
              "places": [
                "places/ChIJOYvCo1W3j4AR1LAifgk13rs",
                "places/ChIJm7NJkla3j4AR8vR-HWRxgOo",
                "places/ChIJo4za6vi5j4ARMua093RgGGA",
                "places/ChIJ4V-yslC3j4ARE6I2cpvyOeU"
              ]
            }
          },
          {
            "topic": "activity",
            "content": {
              "text": "Cinemark Century Mountain View 16 offers XD and RealD 3D screens, plus comfortable seating and a snack bar.\nComputer History Museum showcases the evolution of technology with interactive exhibits.\nRyptic Room Escape Mountain View presents themed rooms where teams solve puzzles to escape.",
              "languageCode": "en-US"
            },
            "references": {
              "places": [
                "places/ChIJOYvCo1W3j4AR1LAifgk13rs",
                "places/ChIJm7NJkla3j4AR8vR-HWRxgOo",
                "places/ChIJ1_ZkCKqwj4ARPaLA4yiEtdI"
              ]
            }
          },
          {
            "topic": "restaurant",
            "content": {
              "text": "Cucina Venti Restaurant prepares Italian cuisine in a rustic setting with outdoor seating.\nRoger Bar and Restaurant provides cocktails on tap, along with an indoor-outdoor bar and dining area.\nBroma Restaurant serves Spanish-inspired tapas and shareable plates in a trendy atmosphere.",
              "languageCode": "en-US"
            },
            "references": {
              "places": [
                "places/ChIJC_3cdla3j4ARMgf4Pw8Irek",
                "places/ChIJh1Y1MA23j4AREJz6Kxl75Uo",
                "places/ChIJLRvDZtu3j4ARgoNrKZnNw8g"
              ]
            }
          },
          {
            "topic": "store",
            "content": {
              "text": "NASA Gear Store and Food Mart offer a variety of gifts and convenience store items.",
              "languageCode": "en-US"
            },
            "references": {
              "places": [
                "places/ChIJh64-r0O3j4ARy1P41IH2j3k",
                "places/ChIJ5ZJtB8u3j4ARR0gohzD8-ns"
              ]
            }
          }
        ]
      }
    },
    ...
  ]
}

请求上下文搜索结果

文本搜索(新)请求的响应包含一组与输入搜索字符串的条件匹配的地点。现在,您可以根据对 API 的输入查询,在响应中请求上下文搜索数据。

为了支持上下文摘要,文本搜索(新)的响应包含一个名为 contextualContents 的新数组,该数组与响应中的 places 数组位于同一级别:

{
  "places": [],
  "contextualContents":[]
}

contextualContents 数组中的每个元素类型为 ContextualContent,与 places 数组中的地点一样位于对应的数组位置。也就是说,contextualContents[0] 中的元素与 places[0] 中的地点相对应。

每个数组元素都包含以下数组字段:

  • contextualContents.reviews:最多包含三条评价的数组。
  • contextualContents.photos:最多包含五张照片的数组。
  • contextualContents.justifications:地点的理由数组,包括:

    • reviewJustification:突出显示最终用户可能感兴趣的用户评价部分。
    • businessAvailabilityAttributesJustification:包含最终用户可能感兴趣的商家属性。

如需在响应中包含上下文搜索结果,请在“文本搜索(新)”请求的字段掩码中添加 contextualContents

curl -X  POST  -d '{
  "textQuery": "Spicy vegetarian restaurant in Mountain View, CA",
  "openNow": true,
  "maxResultCount": 3
}' \
-H 'Content-Type: application/json' -H "X-Goog-Api-Key: API_KEY" \
-H "X-Goog-FieldMask: places.id,places.displayName,contextualContents" \
https://places.googleapis.com/v1/places:searchText

响应中包含响应中每个地点的 contextualContents 数组:

{
  "places": [
    {
      "id": "ChIJETHw0F-7j4AR85V_I6OobCI",
      "displayName": {
        "text": "Hyderabad Dum Biryani",
        "languageCode": "en"
      }
    },
    . . .
  ],
  "contextualContents": [
    {
      "reviews": [
        {
          "name": "places/ChIJETHw0F-7j4AR85V_I6OobCI/reviews/ChdDSUhNMG9nS0VJQ0FnSURSeEtMdHZ3RRAB",
          "relativePublishTimeDescription": "a year ago",
          "rating": 5,
          "text": {
            "text": "Very tasty! Rich spices and textures. We really appreciated
            all of the vegan options. We shared samosas (great sauce!) , tofu 65
            (spicy!!), gobi manchurian (less flavorful but a nice sweet offset to
            the tofu 65) and veg pakoras (very crunchy and awesome flavor). We
            enjoyed all of it, with the pakoras being the table's favorite.",
            "languageCode": "en"
          },
          "originalText": {
            "text": "Very tasty! Rich spices and textures. We really appreciated
            all of the vegan options. We shared samosas (great sauce!) , tofu 65
            (spicy!!), gobi manchurian (less flavorful but a nice sweet offset
            to the tofu 65) and veg pakoras (very crunchy and awesome flavor).
            We enjoyed all of it, with the pakoras being the table's favorite.",
            "languageCode": "en"
          },
          "authorAttribution": {
            "displayName": "Guillaume Riesen",
            "uri": "https://www.google.com/maps/contrib/1131462893/reviews",
            "photoUri": "https://lh3.googleusercontent.com/a-/ALVVXe4iwG_WXt1SjB1rJg=s128-c-c0x00000000-cc-rp-mo-br100"
          },
          "publishTime": "2023-04-18T02:48:02Z"
        },
        {
          "name": "places/ChIJETHw0F-7j4AR85V_I6OobCI/reviews/ChdDSUhNMG9nS0VJQ0FnSUNKZzlhTG53RRAB",
          "relativePublishTimeDescription": "10 months ago",
          "rating": 5,
          "text": {
            "text": "This is a nice little spot to eat at. I'm a big fan of
            curries, and they are spot on when it comes to flavor and spice. I highly recommend this place.",
            "languageCode": "en"
          },
          "originalText": {
            "text": "This is a nice little spot to eat at. I'm a big fan of curries,
            and they are spot on when it comes to flavor and spice. I highly recommend this place.",
            "languageCode": "en"
          },
          "authorAttribution": {
            "displayName": "Paul Sacks",
            "uri": "https://www.google.com/maps/contrib/1106671734435/reviews",
            "photoUri": "https://lh3.googleusercontent.com/a/ACg8ocIAGguhz-EccsS9sVQ=s128-c-c0x00000000-cc-rp-mo-ba4-br100"
          },
          "publishTime": "2023-07-03T16:51:49Z"
        },
        . . .
      ],
      "photos": [
        {
          "name": "places/ChIJETHw0F-7j4AR85V_I6OobCI/photos/Vt2DAKajwJfgC_I-baPKjSeSw-JAXY-tCZOBAe7pBxxIS0Vo1w23sCO9o5RzoxJ",
          "widthPx": 1920,
          "heightPx": 1080,
          "authorAttributions": [
            {
              "displayName": "A Google User",
              "uri": "//maps.google.com/maps/contrib/113209927655010465422",
              "photoUri": "//lh3.googleusercontent.com/a-/ALV-UjV_8hbrtgycOLDgOqPRYhzJ0EJlBFyKo9OrmacOo3C5YvrtR4Q=s100-p-k-no-mo"
            }
          ]
        },
        {
          "name": "places/ChIJETHw0F-7j4AR85V_I6OobCI/photos/AUGGfZkJ4MMlLikE2EyP-b13GeFZ9YNzyjkjDMD15gyobIQtIYg1GFPy3BdQHAaA3iNwhk24vK212hZo",
          "widthPx": 960,
          "heightPx": 720,
          "authorAttributions": [
            {
              "displayName": "Toast"
            }
          ]
        },
        . . .
      ],
      "justifications": [
        {
          "reviewJustification": {
            "highlightedText": {
              "text": "\"Not too spicy or oily.\"",
              "highlightedTextRanges": [
                {
                  "startIndex": 9,
                  "endIndex": 14
                }
              ]
            },
            "review": {
              "name": "places/ChIJETHw0F-7j4AR85V_I6OobCI/reviews/ChZDSUhNMG9nS0VJQ0FnSUR4djR2Z1B3EAE",
              "relativePublishTimeDescription": "10 months ago",
              "rating": 5,
              "text": {
                "text": "Not too spicy or oily. We have the mutton dum biryanis
                and tandoori fish. Very flavorful. The food was served promptly.
                Clean environment. A little small more like a hole in the wall.
                We'd come back for sure.",
                "languageCode": "en"
              },
              "originalText": {
                "text": "Not too spicy or oily. We have the mutton dum biryanis
                and tandoori fish. Very flavorful. The food was served promptly.
                Clean environment. A little small more like a hole in the wall.
                We'd come back for sure.",
                "languageCode": "en"
              },
              "authorAttribution": {
                "displayName": "Harpal Kochar",
                "uri": "https://www.google.com/maps/contrib/1166232959/reviews",
                "photoUri": "https://lh3.googleusercoEnzB1zdrNbR00000-cc-rp-mo"
              },
              "publishTime": "2023-06-18T06:12:41Z"
            }
          }
        },
        {
          "businessAvailabilityAttributesJustification": {
            "dineIn": true
          }
        }
      ]
    },
    . . .
  ]
}

适用于汽车用例的实现指南

为保障驾驶员安全,Google 建议以停车模式下呈现生成式 AI 摘要,以提升车载体验。如果在驾车模式下渲染摘要,屏幕上的信息应简洁明了,以确保驾驶员能够快速将注意力集中在道路上。

  • 不得超过 3 行
  • 120 个字符或不超过 24 个字词
  • 正面大小下限为 24dp

尤其是在汽车环境中,开发者有责任以安全且符合所有当地法律法规的方式呈现生成式 AI 摘要。

归因

当您在应用中显示评价、照片和生成式 AI 摘要(包括地点摘要和区域摘要)时,必须确保也显示必要的提供方说明。

显示生成式摘要的提供方说明

在应用中显示生成式 AI 摘要(包括地点和区域摘要)时,您还必须显示必要的提供方说明。本部分介绍了如何根据您在应用中显示生成式 AI 摘要的方式显示提供方说明。

在任何情况下,提供方说明都必须采用句子大小写。提供方说明和 Google 徽标必须符合所有颜色、样式和字体标准。如需详细了解这些标准,请参阅 Places API(新)的政策

在其他 Google 数据上下文中显示生成式 AI 摘要

在这种情况下,生成式 AI 归因可以单独显示在摘要上方或下方,具体取决于 Google 在其他位置对相应内容的归因。

对于提供方说明,请使用文本“由 AI 总结”,如下图所示:

对于归因,请使用“由 AI 总结”的文本。

单独显示的生成式 AI 摘要

如果生成式 AI 摘要与任何其他内容分开显示,与 Google 地图的内容分开显示,其中必须同时包含生成式 AI 的提供方说明和对 Google 的提供方说明,两者之间用句点隔开。对于提供方说明,请使用文本“Summarized by AI”和 Google 徽标,如下图所示:

对于单独显示的摘要,请添加生成式 AI 归因和 Google 归因(用句点分隔)。

生成式 AI 摘要显示在列表中

在地点列表中重复生成式 AI 地点摘要概览时,其中所有地点:

  • 列表内容由 Google 提供
  • 显示的摘要是由 AI 生成的
  • 内容可从 Google 获取

提供方说明应以单行方式显示在列表上方或下方。AI 归因为左对齐,Google 归因为右对齐:

对于列表,请在列表上方或下方使用一行显示提供方说明。

如果列表中使用了较长的生成式 AI 说明摘要,则每个摘要都必须具有 AI 提供方标示(“由 AI 生成的摘要”,带有信息图标/按钮)。

在对话框中显示生成式 AI 摘要的相关信息

除了生成式 AI 摘要之外,您还必须向最终用户提供一个对话框,以显示摘要相关信息,以及一个用于报告问题的链接。使用生成式 AI 说明摘要时,必须包含有关摘要来源的信息(称为references)。

如需访问此对话框,请添加一个与 AI 归因结合使用的信息图标(作为一种互动方式,如上例所示),并让 AI 归因区域和图标响应按下/点击。

对于生成式地点摘要,显示以下内容:

Google 大全 AI 地点摘要根据 Google 评价和其他数据生成。
报告问题 如需向 Google 报告摘要内容方面的问题,请点击此链接
参考 来源评价

例如:

在对话框中显示生成式 AI 摘要的相关信息。

对于生成式区域摘要,显示以下内容:

Google 大全 AI 领域摘要是根据 Google 评价和本地数据生成的。
报告问题 如需向 Google 报告摘要内容方面的问题,请点击此链接

显示区域摘要属性。