ข้อมูลสรุปสถานที่ที่ทำงานด้วยระบบ AI

ข้อมูลสรุปสถานที่ที่ทำงานด้วยระบบ AI เป็นภาพรวมสั้นๆ ที่มีอักขระ 100 ตัวซึ่งเจาะจงสำหรับรหัสสถานที่ที่กำหนด ข้อมูลสรุปของสถานที่รวบรวมข้อมูลหลายประเภทไว้ในภาพรวมระดับสูงเพื่อช่วยให้ผู้ใช้เห็นภาพรวมของสถานที่

เช่น ข้อมูลสรุปของสถานที่อาจไฮไลต์อาหาร บริการ หรือสินค้าที่ได้รับความนิยม ซึ่งมีจำหน่ายในสถานที่นั้นๆ

  • "ร้านอาหารใน Forum Shops ที่เสิร์ฟอาหารอิตาเลียนแบบดั้งเดิมในปริมาณมากในบรรยากาศสบายๆ"
  • "ร้านทำผมสุดเก๋ที่ให้บริการตัดและทำสีผม รวมถึงไดร์ผม"
  • "ร้านค้าขนาดใหญ่ที่มีผู้ขายหลายรายนำเสนอของตกแต่ง เฟอร์นิเจอร์ และเสื้อผ้าสไตล์วินเทจหลากหลาย"

ข้อมูลสรุปสถานที่ได้รับการสนับสนุนโดย รายละเอียดสถานที่ (ใหม่) การค้นหาข้อความ (ใหม่) และ การค้นหาใกล้เคียง (ใหม่) ข้อมูลสรุปสถานที่พร้อมใช้งานสำหรับประเภทสถานที่ที่แสดงในประเภทที่รองรับสำหรับหมวดหมู่วัฒนธรรม ความบันเทิงและนันทนาการ อาหารและเครื่องดื่ม ช็อปปิ้ง บริการ และกีฬา

ขอสรุปสถานที่แบบ Generative

หากต้องการแสดงข้อมูลสรุปของสถานที่ในการตอบกลับ ให้รวมฟิลด์ต่อไปนี้ใน Field Mask ของ คำขอ

  • รายละเอียดสถานที่ (ใหม่): generativeSummary
  • การค้นหาข้อความ (ใหม่) และการค้นหาใกล้เคียง (ใหม่): places.generativeSummary

ฟิลด์ generativeSummary ประกอบด้วยฟิลด์ต่อไปนี้

  • generativeSummary: ข้อมูลสรุปของสถานที่
  • overviewFlagContentUri: ลิงก์ที่ผู้ใช้สามารถแจ้งปัญหาเกี่ยวกับข้อมูลสรุปของสถานที่
  • disclosureText: สตริงข้อความที่แปลแล้วซึ่งมีข้อความการเปิดเผยข้อมูล "สรุปด้วย Gemini" ที่ต้องรวมไว้ในการระบุแหล่งที่มา

คำขอรายละเอียดสถานที่ (ใหม่)

คำขอรายละเอียดสถานที่ (ใหม่) ต่อไปนี้จะแสดงoverviewสรุป สำหรับร้านซูชิในชิคาโก รัฐอิลลินอยส์

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

คำตอบจะอยู่ในรูปแบบต่อไปนี้

{
  "displayName": {
    "text": "Sushi Nova - Lincoln Park",
    "languageCode": "en"
  },
  "generativeSummary": {
    "overview": {
      "text": "Casual eatery with all-you-can-eat sushi and other Japanese fare, plus beer and sake.",
      "languageCode": "en-US"
    },
    "overviewFlagContentUri": "https://www.google.com/local/review/rap/report?postId=CiUweDg4MGZkMzcyZWM4NWUzZDU6MHg0NTBlM2MzOTNlZjEyZGFmMAI&d=17924085&t=12",
    "disclaimerText": {
      "text": "Summarized with Gemini",
      "languageCode": "en-US"
    }
  }
}

คำขอค้นหาข้อความ (ใหม่)

คำขอ 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" \
'https://places.googleapis.com/v1/places:searchText'

คำตอบจะอยู่ในรูปแบบต่อไปนี้

{
  "places": [
    {
      "id": "ChIJ8wN5kzm3j4AR_dRdUHoqrPI",
      "displayName": {
        "text": "Plant-Based Vegan Vietnamese",
        "languageCode": "en"
      }
    },
    {
      "id": "ChIJw4RuczO3j4ARC7RByZ5K9nI",
      "displayName": {
        "text": "sweetgreen",
        "languageCode": "en"
      },
      "generativeSummary": {
        "overview": {
          "text": "Casual eatery offering healthy, made-to-order salads, plates, and grain bowls with vegan options.",
          "languageCode": "en-US"
        },
        "overviewFlagContentUri": "https://www.google.com/local/review/rap/report?postId=CiUweDgwOGZiNzMzNzM2ZTg0YzM6MHg3MmY2NGE5ZWM5NDFiNDBiMAI&d=17924085&t=12",
        "disclosureText": {
          "text": "Summarized with Gemini",
          "languageCode": "en-US"
        }
      }
    },
    /.../
  ]
}

คำขอการค้นหาในบริเวณใกล้เคียง (ใหม่)

คำขอการค้นหาใกล้เคียง (ใหม่) ต่อไปนี้จะแสดงoverviewสรุป สำหรับร้านอาหารและคาเฟ่ในพอร์ตแลนด์ รัฐออริกอน

curl -X POST -d '{
  "maxResultCount": 5,
  "locationRestriction": {
    "circle": {
      "center": {
        "latitude": 45.553360,
        "longitude": -122.674934
        },
      "radius": 1000
    }
  },
  "includedTypes": ["restaurant", "cafe"],
  "excludedTypes": [],
  "rankPreference":"POPULARITY"
  }' \
-H 'Content-Type: application/json' -H "X-Goog-Api-Key: API_KEY" \
-H "X-Goog-FieldMask: places.id,places.generativeSummary" \
'https://places.googleapis.com/v1/places:searchNearby'

คำตอบจะอยู่ในรูปแบบต่อไปนี้

{
  "places": [
    {
      "id": "ChIJOa08KlqnlVQR_ZZx1jEcTYY",
      "generativeSummary": {
        "overview": {
          "text": "BBQ and Thai street fare, plus imaginative tropical cocktails, served in a vibrant space.",
          "languageCode": "en-US"
        },
        "disclosureText": {
          "text": "Summarized with Gemini",
          "languageCode": "en-US"
        }
      }
    },
    {
      "id": "ChIJU4OzoWynlVQRxlQMpGenSvA",
      "generativeSummary": {
        "overview": {
          "text": "Beer hall with a big selection of German brews, plus a central courtyard with food trucks.",
          "languageCode": "en-US"
        },
        "disclosureText": {
          "text": "Summarized with Gemini",
          "languageCode": "en-US"
        }
      }
    },
    /.../
  ]
}

การระบุแหล่งที่มา

ข้อมูลสรุปที่ทำงานด้วยระบบ AI ทั้งหมดที่แสดงในแอปของคุณต้องมี การระบุแหล่งที่มาอย่างเหมาะสมตามนโยบายและมาตรฐานของ Google ดูข้อมูลเพิ่มเติมได้ที่นโยบายสำหรับ Places API