Places API 的 Gemini 模型功能

Places API (新版) 的 Gemini 模型功能支援 Places API,因此您可以傳回地點相關資料 (營業時間、評論、相片),以及 LLM 提供的資料。這類生成式資料包含 LLM 提供的匯總資料,並彙整出資料,可增強已與特定地點相關聯的資料。

舉例來說,針對「電動車充電站」的標準 Text Search (New),會傳回提供電動車充電服務的地點清單。如果只想搜尋最近的電動車充電器,或與車輛相容的最近充電站,這類回應類型是正常現象。

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

  • 「在 2 至 4 分鐘內步行時,有數種餐飲和購物選擇,包括 Chef Chu's、GenKorea 燒烤 House、Amber India、Pacific 捕魚網,以及 Walmart、Whole Foods Market 和 Trader Joe's 等數間雜貨店。」

  • 「步行 1 到 5 分鐘即可抵達多間餐飲及購物選擇,包括考康泰式廚房、羅傑的熟食店、甜甜圈和哥斯大黎加。使用壽司時,Joy Sushi 是不錯的選擇。以食品雜貨來說,美金 Tree 提供多種以折扣價販售的產品。」

這些 LLM 生成的內容能強化回覆,並提供其他資訊,協助使用者在充分掌握資訊的情況下做出決定。

Places API 新增採用 AI 技術輔助的功能 (新推出)

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

生成式地點摘要

系統產生的地點摘要專屬於特定地點 ID,地點摘要會將許多不同類型的資料匯總到該地點的單一摘要。

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

  • 總覽摘要:地點簡介 (平均約 100 個半形字元),協助使用者取得地點概況。

  • 說明摘要:地點的詳細摘要 (平均約 400 個字元),提供詳盡的總覽資訊,涵蓋該地點的特色。

地點摘要目前適用於「文化」、「娛樂與休閒」、「餐飲」、「購物」和「運動支援類型中顯示的地點類型。

生成式區域摘要

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

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

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

產生地點和區域摘要

生成式地點摘要和生成式區域摘要都是由 Google 經常離線產生。離線產生這些摘要後,您就能享有以 Gemini 技術提供的內容,同時又在 Places API (新版) 獲得相同的成效。

Google 經常重新產生這些摘要,確保內容都是以最新的可用資訊為依據。也就是說,當您呼叫 API 時,系統會在服務中顯示最新的資料。

內容比對搜尋結果

Text Search (New) 可根據字串 (例如「臺北披薩」或「渥太華附近的鞋店」) 傳回一組地點的相關資訊。Text Search (New) 回應會包含與文字字串及要求中設定的任何位置自訂調整相符的地點清單。

當您在回應中新增內容相關的搜尋結果時,回應現在會包含評論、相片和理由,協助使用者回答問題:

  • 為什麼我在搜尋結果中看到這個地點?
  • 為什麼我應該選擇這個地點?

舉例來說,假設您今天已向 Place Details (New)、Text Search (New) 或 Nearby Search (New) 提出要求,回應中包含特定地點。這三項要求的地點回應資料都相同,因為傳回的資料會與該地點建立關聯。

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

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

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

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

如果餐廳在兩則回應中都出現,則該地點的回應資料會相同,因為這些資料會與該地點本身建立關聯。但內容搜尋結果是查詢的唯一內容,因為這些結果衍生自查詢字串。接著,您可以向使用者顯示內容相關搜尋結果中的評論、相片和理由,協助他們決定回應中最適用於搜尋要求的地點。

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

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

實驗版本的相關限制

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

什麼是 Gemini?

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

要求產生生成地點摘要

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

  • 總覽:生成式摘要與地點相關的靜態編輯摘要類似。生成式的簡短摘要平均約為 100 個字元,具有下列幾項優點:

    • 許多地點沒有編輯摘要,因此可以填補特定地點的資訊落差。

    • 這些欄位是由 LLM 產生,因此不需要地點擁有者進行維護。

  • 說明 產生摘要的來源眾多,包括 Google 地圖的評論。說明 (平均約有 400 個半形字元) 包含一份評論清單,用來產生詳細說明。

    如要手動產生說明摘要,需要人員先匯總多個位置的資料,再手動製作及維護內容。Gemini 模型功能 (新版) 會根據 LLM 建構這些摘要,以維持生成內容的規模和即時性。

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

  • Place DetailsgenerativeSummary

  • Text Search 和 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 要求會傳回山景城特定電動車充電站的區域摘要 (以地點 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 (新版) 政策

在其他 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 說明摘要時,您必須加入摘要來源的相關資訊 (稱為「參照」references)。

存取此對話方塊,方法是加入資訊圖示 (做為互動功能用途) 搭配 AI 歸因 (如上例所示),然後讓 AI 歸因區域和圖示回應按下/點選動作。

生成地點摘要時,會顯示:

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

例如:

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

生成區域摘要時,會顯示:

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

顯示區域摘要出處。