餐廳訂位

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

用途

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