餐廳訂位

使用這種類型,為餐廳或其他餐飲場所的一或多位顧客預訂座位。

用途

以下使用案例是 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

擴充 Reservation

名稱 類型 說明
bookingAgent OrganizationPerson 預訂代理人或代理商。也可以接受字串 (例如「」)。
bookingAgent.name Text 代理程式/服務的名稱。
bookingAgent.url 網址 代理商/服務的網站。
bookingTime DateTime 預訂日期。
cancelReservationUrl 網址 可取消預約的網頁。
confirmReservationUrl 網址 可確認預訂的網頁。
modifiedTime DateTime (建議用於確認卡片/搜尋答案) 預訂上次修改的時間。
modifyReservationUrl 網址 (建議用於確認資訊卡/搜尋答案) 可修改預訂的網頁。
partySize
(必要)
Number 派對人數。
price Text FoodEstablishmentReservation 的總價。
priceCurrency Text FoodEstablishmentReservation 價格的幣別 (由 3 個英文字母組成,採 ISO 4217 格式)。
programMembership ProgramMembership 預訂時套用的任何飛行常客或飯店會員方案等。
programMembership.memberNumber Text 成員 ID。
programMembership.program Text 學程計畫名稱。
reservationFor
(必要)
FoodEstablishment 預訂的餐廳。
reservationFor.address
(必填)
PostalAddress 餐廳地址。
reservationFor.address.addressCountry
(必要)
CountryText 餐廳所在國家/地區。
reservationFor.address.addressLocality
(必要)
Text 餐廳所在地 (例如城市)。
reservationFor.address.addressRegion
(必要)
Text 餐廳所在區域 (例如州/省)。
reservationFor.address.postalCode
(必要)
Text 餐廳的郵遞區號。
reservationFor.address.streetAddress
(Required)
Text 餐廳的街道地址。
reservationFor.image 網址 餐廳圖片。
reservationFor.name
(必填)
Text 餐廳名稱。
reservationFor.telephone Text FoodEstablishment 的電話號碼。
reservationFor.url 網址 餐廳網站。
reservationNumber
(必要)
Text 預約號碼或 ID。
reservationStatus
(必填)
ReservationStatus 預訂的目前狀態。
startTime
(必要)
DateTime 預訂日期和時間。
underName
(必要)
OrganizationPerson 預訂座位的人。
underName.email Text 電子郵件地址。
underName.name
(Required)
Text 人員姓名。
url 網址 可查看預約資訊的網頁。