Places API 的 Gemini 模型功能

Places API (新版) 提供的 Gemini 模型功能為 Places API 支援大型語言模型,因此您可以傳回與地點 (營業時間、評論、相片) 相關的資料,以及 LLM 提供的資料。這類生成式資料包含 LLM 的匯總和摘要資料,可提升與地點相關聯的資料。

舉例來說,「電動車充電站」的標準 Text Search (新版) 會傳回提供電動車充電的地點清單。僅搜尋最近的電動車充電器或與車輛相容的距離,就沒有這類回應。

但您可能也想更瞭解充電站附近的區域,特別是在車輛充電時需要一小時以上的地點。如果在同一筆搜尋中使用 Gemini 模型功能,回應中可能會包含每個地點的動態生成說明,包括充電站周圍區域的相關資訊:

  • 「步行 2 到 4 分鐘即可走路,這裡有好幾種餐飲與購物選擇,包括 Chef Chu's、GenKian 烤肉 House、琥珀印度、太平洋捕魚,以及 Walmart、Whole Foods Market 和 Trader Joe's 等幾家雜貨店。」

  • 「步行 1-5 分鐘即可走路,這裡有數家餐飲與購物選擇, 例如 Khao Kang Thai Kitchen、Roger's Deli & Donuts 以及拉哥斯大尼亞。就壽司而言,Joy Sushi 是很好的選擇。以雜貨店來說,美元樹是一種以折扣價出售的各種產品。」

大型語言模型生成的內容可提升回覆效率,並提供其他資訊,協助使用者做出明智的決定。

Places API 中新增了採用 AI 技術的功能 (新功能)

這些功能會將下列資料新增至 Places API (新版) 回應:

生成地點摘要

生成的地點摘要是專屬地點 ID。地點摘要會將許多不同類型的資料匯總為地點的單一摘要。

Places API (新版) 提供兩種生成地點摘要:

  • 總覽摘要:地點的簡要總覽 (平均約 100 個字元),可協助使用者取得地點快照。

  • 說明摘要:地點的更多摘要 (平均約 400 個字元) 可詳細說明該地點的重點特色。

地點摘要目前支援以下類別的地點類型:文化娛樂與休閒餐飲購物運動類別。

生成區域摘要

生成式區域摘要是由 LLM 針對某地點的附近區域建立。地點的區域摘要可能包含使用者做出決定所需的所有資訊,使用者不必提出進一步要求細查區域詳細資料。

除了區域說明外,回應中也會包含說明中參照的地點 ID 清單,以及按不同內容類型排序的地點清單。例如,一種內容類型包含與該區域活動相關的地點清單,而另一個內容類型則包含該區域的餐廳清單。

區域摘要目前適用於「住宿」類別支援類型中顯示的地點類型,以及特定地點類型 electric_vehicle_charging_stationgeocodepremise

產生地點和區域摘要

生成式地點摘要和生成式區域摘要皆由 Google 經常以離線方式產生。離線產生這些摘要後,您就能充分運用 Gemini 提供的內容,同時仍可看到 Places API (新版) 的預期成效。

Google 經常會重新產生這些摘要,確保這些摘要包含最新的可用資訊。這表示當您呼叫 API 時,會在服務中顯示最新資料。

內容比對搜尋結果

Text Search (新版) 可根據字串 (例如「台南魯肉飯」或「西門町附近的鞋店」) 傳回一組地點的相關資訊。Text Search (新版) 回應包含與文字字串和要求中設定的任何位置自訂調整相符的地點清單。

在回應中新增內容相關搜尋結果後,回應中現在會包含評論、相片和原因,以便使用者回答問題:

  • 為什麼我的搜尋結果會顯示這個地點?
  • 為何要選擇這個地點?

舉例來說,您今天向 Place Details (新版)、Text Search (新版) 或 Nearby Search (新版) 發出要求,並在回應中包含特定地點。這三項要求的地點回應資料都相同,因為傳回的資料與該地點相關聯。

不過,如果是使用新功能的 Text Search (新版),回應可能會包含從輸入查詢字串本身衍生的資料。這表示該查詢字串獨有的內容搜尋結果。舉例來說,您可以使用以下查詢字串發出 Text Search (新版) 要求:

「加州山景城的素食餐廳」

然後,所有輸入參數均維持不變,只將查詢字串變更為:

「加州山景城的純素餐廳」

如果餐廳同時出現在兩個回應中,地點的回應資料就會相同,因為資料與地點本身相關聯。但是,內容搜尋結果是查詢專屬的內容,因為這些搜尋結果是衍生自查詢字串。然後,您可以從內容相關搜尋結果中向使用者顯示評論、相片和理由,協助使用者決定回應中最符合他們的搜尋要求。

為 Places API 啟用 Gemini 模型功能 (新功能)

必須啟用 Places API (新版),才能使用 Places API (新版) 的 Gemini 模型功能。詳情請參閱「設定 Google Cloud 專案」一文。

實驗版本的限制

這個版本僅支援美國境內地點的地點和區域摘要,而且僅支援英文。

Gemini 是什麼?

如要瞭解 Gemini 模型,請參閱 Gemini 常見問題

要求產生地點摘要

地點摘要是 LLM 針對特定地點建立的生成摘要。Places API (新版) 會在回應中加入兩種摘要:

  • 總覽:生成摘要,類似於與地點相關的靜態編輯摘要。生成式簡短摘要約為 100 個字元 具備以下優點

    • 許多地點都沒有編輯摘要,因此會填補地點資訊的缺口。

    • 這些屬性是由 LLM 產生,地點擁有者無需維護這些資訊。

  • 「說明」生成式摘要取自許多來源,包括來自 Google 地圖的評論。說明中平均約有 400 個字元,其中包含用來產生詳細說明的評論清單。

    如要手動產生說明摘要,使用者必須匯總多個地點的資料,然後手動製作及維護內容。Places API (新版) 的 Gemini 模型功能會從大型語言模型建立這些摘要,藉此維護生成內容的涵蓋範圍和新鮮度。

Place Details (新版)Text Search (新版)Nearby Search (新版) 皆支援地點摘要。如要在回應中納入地點摘要,請在要求的欄位遮罩中加入下列欄位:

  • Place DetailsgenerativeSummary

  • Text Search and Nearby Searchplaces.generativeSummary

generativeSummary 欄位包含下列欄位:

  • generativeSummary.overview:生成式總覽摘要。
  • generativeSummary.description:生成式說明摘要。
  • generativeSummary.references:最多包含五則評論的陣列,用於提供說明摘要的內容。如果沒有說明摘要,這個陣列會是空白的。

總覽摘要要求範例

以下 Text Search 範例只會傳回加州山景城的辛辣素食餐廳 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 根據地點附近區域產生的生成摘要。區域摘要對使用者做出地點決定的重要元素非常重要。

舉例來說,假設您想預訂一個新城市的飯店,除了能找出符合您需求的飯店,您還想進一步瞭解飯店周遭區域。如果不想查看附近區域的地圖,再花時間逐一調查地圖上的每個地點,不如為飯店產生區域摘要。

Place Details (新版)Text Search (新版)Nearby Search (新版) 皆支援區域摘要。

如要在回應中納入區域摘要,請納入要求的欄位遮罩

  • areaSummary (Place Details)
  • places.areaSummary (「搜尋文字」和「附近地點搜尋」)。

回應中地點的 areaSummary 欄位包含最多四個 contentBlocks 的陣列。每個區塊的主題取決於地點類型:

  • 電動車充電站 (定義為 electric_vehicle_charging_station 類型的地點) 的主題區塊包括:"overview""coffee""restaurant""store"

  • 如果地點的類型是由住宿類別定義,以及特定地點類型 geocodepremise,主題區塊包括:"overview""activity""restaurant""store"

電動車充電站區域摘要的要求範例

這個 Place Details 要求範例會傳回 Mountain View 中特定電動車充電站的區域摘要,以地點 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"
          ]
        }
      }
    ]
  }
}

飯店區域摘要要求範例

以下 Text Search 要求範例要求位於加州山景城的飯店:

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"
              ]
            }
          }
        ]
      }
    },
    ...
  ]
}

要求情境搜尋結果

Text Search (New) 要求的回應包含符合輸入搜尋字串條件的地點陣列。您現在可以根據對 API 的輸入查詢,在回應中要求內容比對搜尋資料。

為支援內容摘要,Text Search (New) 的回應會包含名為 contextualContents 的新陣列,該陣列的層級與回應中的 places 陣列相同:

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

contextualContents 陣列中的每個元素 (類型為 ContextualContent) 都位於對應的陣列位置,做為 places 陣列中的位置。也就是說,contextualContents[0] 中的元素會與 places[0] 中的地點對應。

每個陣列元素包含下列陣列欄位:

  • contextualContents.reviews:最多包含三次評論的陣列。
  • contextualContents.photos:最多包含五張相片的陣列。
  • contextualContents.justifications:地點的原因陣列,包括:

    • reviewJustification:醒目顯示使用者可能感興趣的部分。
    • businessAvailabilityAttributesJustification:包含使用者可能感興趣的商家屬性。

如要在回應中納入關聯搜尋結果,請在 Text Search (新版) 要求的欄位遮罩中加入 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 政策 (新版)

生成式 AI 摘要顯示在其他 Google 資料中

在這種情況下,生成式 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 說明摘要時,您必須加入摘要來源的相關資訊,稱為「參照」references

要啟用這個對話方塊的存取權,請加入資訊圖示 (做為互動用途) 和 AI 歸因 (如上述範例所示),並讓 AI 歸因區域和圖示回應按下/點選動作。

如要查看生成式地點摘要,請顯示:

簡介 AI 地點摘要是根據 Google 評論和其他資料產生。
回報問題 如要向 Google 回報摘要內容相關問題,請點選這個連結
參考資料 來源評論

例如:

在對話方塊中顯示生成式 AI 摘要的相關資訊。

如要查看生成區域摘要,請填入以下資訊:

簡介 AI 區域摘要是根據 Google 評論和當地資料產生。
回報問題 如要向 Google 回報摘要內容相關問題,請點選這個連結

顯示區域摘要歸因。