這類型可用於聲明餐廳或其他餐飲場所的訂位,為一或多位賓客進行預訂。
用途
以下應用實例是 FoodEstablishmentReservation 結構定義的常見使用方式範例。請參考以下範例,確保標記的結構正確。
簡單的餐廳訂位
這個示例是採用最少標記數量的標記,會將您的電子郵件視為 FoodEstablishmentReservation。
JSON-LD
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "FoodEstablishmentReservation",
  "reservationNumber": "OT12345",
  "reservationStatus": "http://schema.org/Confirmed",
  "underName": {
    "@type": "Person",
    "name": "John Smith"
  },
  "reservationFor": {
    "@type": "FoodEstablishment",
    "name": "Wagamama",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "1 Tavistock Street",
      "addressLocality": "London",
      "addressRegion": "Greater London",
      "postalCode": "WC2E 7PG",
      "addressCountry": "United Kingdom"
    }
  },
  "startTime": "2027-04-10T08:00:00+00:00",
  "partySize": "2"
}
</script>
微資料
<div itemscope itemtype="http://schema.org/FoodEstablishmentReservation">
  <meta itemprop="reservationNumber" content="OT12345"/>
  <link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="John Smith"/>
  </div>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/FoodEstablishment">
    <meta itemprop="name" content="Wagamama"/>
    <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
      <meta itemprop="streetAddress" content="1 Tavistock Street"/>
      <meta itemprop="addressLocality" content="London"/>
      <meta itemprop="addressRegion" content="Greater London"/>
      <meta itemprop="postalCode" content="WC2E 7PG"/>
      <meta itemprop="addressCountry" content="United Kingdom"/>
    </div>
  </div>
  <meta itemprop="startTime" content="2027-04-10T08:00:00+00:00"/>
  <meta itemprop="partySize" content="2"/>
</div>
測試標記
您可以使用電子郵件標記測試工具驗證標記。貼上標記程式碼,然後按一下「驗證」按鈕以掃描內容,並接收報告中列出的所有錯誤。
規格
請檢查電子郵件詳細資訊,確認是否有任何額外房源符合你的預訂項目。標記這些額外屬性後,Google 就能為使用者顯示更豐富的預訂說明。
FoodEstablishmentReservation
類型名稱:FoodEstablishmentReservation
延長預留項目
| 名稱 | 類型 | 說明 | 
|---|---|---|
| bookingAgent | 機構或 Person | 預訂代理商或代理商。也接受字串 (例如「」)。 | 
| bookingAgent.name | 文字 | 虛擬服務專員/服務的名稱。 | 
| bookingAgent.url | 網址 | 服務專員/服務的網站。 | 
| bookingTime | DateTime | 訂位日期。 | 
| cancelReservationUrl | 網址 | 可取消預訂的網頁。 | 
| confirmReservationUrl | 網址 | 可確認預訂網頁。 | 
| modifiedTime | DateTime | (適用於確認資訊卡/搜尋答案) 預訂的上次修改時間。 | 
| modifyReservationUrl | 網址 | (適用於確認資訊卡/搜尋答案) - 可修改預訂資訊的網頁。 | 
| partySize (必要) | Number | 派對人數。 | 
| price | 文字 | FoodBuildingmentReservation 的總價。 | 
| priceCurrency | 文字 | FoodMakementReservation 價格的幣別 (3 個英文字母組成的 ISO 4217 格式)。 | 
| programMembership | ProgramMembership | 系統會將常客傳單、飯店會員方案等使用者的會員資格套用至預訂。 | 
| programMembership.memberNumber | 文字 | 會員的 ID。 | 
| programMembership.program | 文字 | 學程計畫名稱。 | 
| reservationFor (必要) | FoodEstablishment | 預訂的餐飲商家。 | 
| ReservationFor.address (必填) | PostalAddress | 餐廳的地址。 | 
| ReservationFor.address.addressCountry (必填) | Country 或 Text | 餐廳的所在國家/地區。 | 
| ReservationFor.address.addressLocality (必填) | 文字 | 餐廳的所在地 (例如城市)。 | 
| ReservationFor.address.addressRegion (必填) | 文字 | 餐廳的區域 (例如州/省)。 | 
| ReservationFor.address.postalCode (必填) | 文字 | 餐廳的郵遞區號。 | 
| ReservationFor.address.streetAddress (必填) | 文字 | 餐廳的街道地址。 | 
| reservationFor.image | 網址 | 餐廳的圖片。 | 
| ReservationFor.name (必填) | 文字 | 餐廳的名稱。 | 
| reservationFor.telephone | 文字 | FoodSetupment 的電話號碼。 | 
| reservationFor.url | 網址 | 餐廳網站。 | 
| reservationNumber (必要) | 文字 | 預留項目的 ID 或 ID。 | 
| reservationStatus (必要) | ReservationStatus | 預留項目的目前狀態。 | 
| startTime (必要) | DateTime | 預訂日期和時間。 | 
| underName (必要) | 機構或 Person | 餐桌上的對象。 | 
| underName.email | 文字 | 電子郵件地址。 | 
| UnderName.name (必填) | 文字 | 人名。 | 
| url | 網址 | 可以檢視預訂項目的網頁。 |