使用這個類型,即可聲明在飯店或住宿地點的一或多位房客預訂。
用途
以下應用實例是 LodgingReservation 結構定義的常見使用方式範例。請參考以下範例,確保標記的結構正確。
基本預訂
這個示例呈現只需使用最少標記數量的標記,即可將電子郵件歸類為住宿預訂。
JSON-LD
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "LodgingReservation",
  "reservationNumber": "abc456",
  "reservationStatus": "http://schema.org/Confirmed",
  "underName": {
    "@type": "Person",
    "name": "John Smith"
  },
  "reservationFor": {
    "@type": "LodgingBusiness",
    "name": "Hilton San Francisco Union Square",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "333 O'Farrell St",
      "addressLocality": "San Francisco",
      "addressRegion": "CA",
      "postalCode": "94102",
      "addressCountry": "US"
    },
    "telephone": "415-771-1400"
  },
  "checkinDate": "2027-04-11T16:00:00-08:00",
  "checkoutDate": "2027-04-13T11:00:00-08:00"
}
</script>
微資料
<div itemscope itemtype="http://schema.org/LodgingReservation">
  <meta itemprop="reservationNumber" content="abc456"/>
  <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/LodgingBusiness">
    <meta itemprop="name" content="Hilton San Francisco Union Square"/>
    <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
      <meta itemprop="streetAddress" content="333 O'Farrell St"/>
      <meta itemprop="addressLocality" content="San Francisco"/>
      <meta itemprop="addressRegion" content="CA"/>
      <meta itemprop="postalCode" content="94102"/>
      <meta itemprop="addressCountry" content="US"/>
    </div>
    <meta itemprop="telephone" content="415-771-1400"/>
  </div>
  <meta itemprop="checkinDate" content="2027-04-11T16:00:00-08:00"/>
  <meta itemprop="checkoutDate" content="2027-04-13T11:00:00-08:00"/>
</div>
測試標記
您可以使用電子郵件標記測試工具驗證標記。貼上標記程式碼,然後按一下「驗證」按鈕以掃描內容,並接收報告中列出的所有錯誤。
規格
請檢查電子郵件詳細資訊,確認是否有任何額外房源符合你的預訂項目。標記這些額外房源後,Google 就能向使用者顯示更加豐富的住宿預訂說明。
LodgingReservation
類型名稱:LodgingReservation
延長預留項目
| 名稱 | 類型 | 說明 | 
|---|---|---|
| bookingAgent | Person 或 Organization | 預訂代理商或代理商。也接受字串 (例如「」)。 | 
| bookingAgent.name | 文字 | 虛擬服務專員/服務的名稱。 | 
| bookingAgent.url | 網址 | 服務專員/服務的網站。 | 
| bookingTime | DateTime | 訂位日期。 | 
| cancelReservationUrl | 網址 | 可取消預訂的網頁。 | 
| checkinDate (必填) | DateTime | 入住時間。 | 
| checkoutDate (必填) | DateTime | 結帳時間。 | 
| checkinUrl | 網址 | 方便愛好者簽到的網頁。 | 
| confirmReservationUrl | 網址 | 可確認預訂網頁。 | 
| lodgingUnitDescription | 文字 | 單位類型的文字說明 (包括套房與客房、床鋪尺寸等)。 | 
| modifiedTime | DateTime | (適用於確認資訊卡/搜尋答案) 預訂的上次修改時間。 | 
| modifyReservationUrl | 網址 | (適用於確認資訊卡/搜尋答案) - 可修改預訂資訊的網頁。 | 
| numAdults | Number | 住宿地點的成人人數。 | 
| numChildren | Number | 住宿房型的兒童人數。 | 
| price | 文字 | 住宿預訂的總價。 | 
| priceCurrency | 文字 | 住宿預訂價格的幣別 (採用 3 個英文字母組成的 ISO 4217 格式), | 
| programMembership | ProgramMembership | 系統會將常客傳單、飯店會員方案等使用者的會員資格套用至預訂。 | 
| programMembership.memberNumber | 文字 | 會員的 ID。 | 
| programMembership.program | 文字 | 學程計畫名稱。 | 
| reservationFor (必要) | LodgingBusiness | 預訂的住宿地點。 | 
| ReservationFor.address (必填) | PostalAddress | 住宿地址的地址。 | 
| ReservationFor.address.addressCountry (必填) | Text 或 Country | 住宿地址的所在國家/地區。 | 
| ReservationFor.address.addressLocality (必填) | 文字 | 住宿地址的縣市 (例如城市)。 | 
| ReservationFor.address.addressRegion (必填) | 文字 | 住宿地址的區域 (例如州/省)。 | 
| ReservationFor.address.postalCode (必填) | 文字 | 住宿地址的郵遞區號。 | 
| ReservationFor.address.streetAddress (必填) | 文字 | 住宿地址的街道地址。 | 
| reservationFor.image | 網址 | 住宿商家的相片。 | 
| ReservationFor.name (必填) | 文字 | 住宿地址的名稱。 | 
| ReservationFor.telephone (必填) | 文字 | LodgingBusiness 的電話號碼。 | 
| reservationFor.url | 網址 | 住宿商家的網站。 | 
| reservationNumber (必要) | 文字 | 預留項目的 ID 或 ID。 | 
| reservationStatus (必要) | ReservationStatus | 預留項目的目前狀態。 | 
| underName (必要) | Person 或 Organization | 訪客。 | 
| underName.email | 文字 | 電子郵件地址。 | 
| UnderName.name (必填) | 文字 | 人名。 | 
| url | 網址 | 可以檢視預訂項目的網頁。 |