适用于 Places API 的 Gemini 模型功能

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

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

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

  • “步行 2-4 分钟,就有多家餐厅和购物场所,包括主厨 Chu's、Gen 韩式烧烤店、Amber India、Pacific Catch 以及沃尔玛、Wole Foods Market 和 Trader Joe's 等几家杂货店。”

  • “步行 1-5 分钟即可找到多家餐饮和购物选择,包括 Khao Kang Techen、Roger's Deli & Donuts 以及 La Costeña。想吃寿司,Joy Sushi 就不错哦。Daily 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(新),才能将 Gemini 模型功能用于 Places API(新)。如需了解详情,请参阅设置 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 提供方说明和提供方说明(用一个空格分隔)。对于提供方说明,请使用“由 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 报告摘要内容方面的问题,请点击此链接

显示区域摘要提供方说明。