适用于 Places API 的 Gemini 模型功能

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

例如,一个标准的 文本搜索(新) 搜索“电动车辆充电站”用于返回提供电动汽车充电服务的地点列表。这个 那么您只需搜索最近的电动汽车充电站或 找到与您的车辆兼容的最近充电桩。

不过,您可能还想更好地了解 尤其是准备在那里停留一小时或更长时间时 。使用 Gemini 模型功能实现这一目的时 那么对于每次搜索,响应中可能会包含 响应中的位置,包括充电站周围区域的相关信息 电台:

  • “步行 2-4 分钟之内,就可以到达 其中包括 Chef Chu's、Gen Korea 烧烤屋、Amber India、Pacific 以及沃尔玛、全食超市和几家杂货店 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,以及地点列表 可按不同的内容类型排序例如,一种内容类型包含列表 一个列表,其中包含与该区域内的活动相关的地点,另一个则包含 附近的餐厅

区域摘要目前适用于以下位置中显示的地点类型: 支持的类型 Lodging 类别以及特定地点类型 electric_vehicle_charging_stationgeocodepremise

生成地点和区域摘要

生成式地点摘要和生成式区域摘要 。通过离线生成这些摘要 你可以在使用由 Gemini 提供支持的内容的同时, Places API(新)的表现达到您的预期。

Google 会经常重新生成这些摘要,以确保它们是最新的 根据最新可用信息生成的。也就是说, 最新数据。

内容相关搜索结果

文本搜索(新)可根据一个字符串返回一组地点的相关信息 — 例如“北京烤鸭”或“南京附近的鞋店”。文本搜索 (新)响应包含与文本字符串和任意 请求中设置的地理位置自定义调整。

当您将上下文搜索结果添加到响应后, 添加评价、照片和理由,帮助用户回答 问题:

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

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

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

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

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

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

对于在两个响应中均出现的餐馆,有关 是同一个,因为该数据与地点本身相关联。但是 内容相关搜索结果对于查询而言是唯一的,因为它们是从 查询字符串。然后,您就可以显示评价、照片和 向用户说明相关理由,以帮助他们 确定响应中的哪个位置最适合其搜索请求。

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

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

实验性版本的限制

此版本仅支持美国境内地点的地点和区域摘要 仅提供英语版州信息。

Gemini 是什么?

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

请求生成式地点摘要

地点摘要是 LLM 针对某个特定地点 位置。Places API(新)将两种类型的摘要添加到响应中:

  • 概览生成摘要:与静态编辑精选摘要类似 摘要。平均而言生成式简短摘要 拥有多项优势:

    • 许多地方没有编辑摘要,因此它们填补了 信息。

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

  • 说明生成式摘要来自许多来源, 包括来自 Google 地图的评价。广告内容描述,平均约 400 条 字符,其中包括用于生成 说明。

    若要手动生成说明摘要,需要有人汇总 然后自行制作和维护内容。 Places API 的 Gemini 模型功能(新)会构建这些摘要 以保持所生成内容的范围和新鲜度。

以下产品支持地点摘要: 地点详情(新)文本搜索(新)、 和 附近搜索(新)。 若要在响应中包含地点摘要,请在 字段掩码 部分:

  • 地点详情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 数组。对“Hotel”类型地点的响应包含 主题 "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"
              ]
            }
          }
        ]
      }
    },
    ...
  ]
}

请求上下文搜索结果

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

为了支持上下文摘要, 文本搜索(新) 包含一个名为 contextualContents 的新数组,该数组与 places 数组:

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

contextualContents 数组中的每个元素,类型为 ContextualContent, 与 places 数组中的位置相对应。这样 contextualContents[0] 处的元素对应于 places[0]

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

  • contextualContents.reviews:一个数组,最多包含三个 评价
  • contextualContents.photos:最多包含 5 个对象的数组 照片
  • 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 建议以 汽车体验的停车模式。如果在驾车模式下呈现摘要 屏幕上的信息应简洁明了,以确保 驾驶员的注意力会迅速回到道路上。

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

特别是在汽车环境中,开发者需要负责 以安全且符合所有 当地法律法规。

归因

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

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

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

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

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

在这种情况下,生成式 AI 归因可以单独显示在上方或 依据 Google 在其他地方对相关内容的出处。

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

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

单独显示的生成式 AI 摘要

当生成式 AI 摘要与任何其他内容分开显示时 Google 地图,则必须包含生成式 AI 的归因和归因 Google 使用英文句点分隔。对于出处,请使用文本“总结 “由 AI 开发”和 Google 徽标,如下图所示:

对于单独显示的摘要,请添加生成式 AI 归因和
  Google 归因模型是使用间歇性符号分隔的。

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

重复一次生成式 AI 时 地点摘要概览,查看地点列表, 其中:

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

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

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

如果生成式 AI 包含较长的说明摘要 列表中使用了,每个摘要都必须包含 归因(“由 AI 总结”,包含信息图标/按钮)。

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

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

添加信息图标(作为一种互动方式)即可访问此对话框 与 AI 归因结合使用(如上文所述) 并使 AI 归因区域和图标响应 按下/点击。

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

简介 AI 地点摘要根据 Google 评价和其他 数据。
报告问题 要向 Google 报告摘要内容方面的问题,请执行以下操作: 请点击此链接
参考 来源评价

例如:

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

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

简介 AI 领域摘要是根据 Google 评价和本地数据生成的。
报告问题 要向 Google 报告摘要内容方面的问题,请执行以下操作: 请点击此链接

显示区域摘要属性。