飯店訂房

使用這個型別,為飯店或住宿地點的一或多位房客聲明預訂。

用途

以下使用案例是 LodgingReservation 架構的常見使用範例。請參考這些範例,確保標記結構正確。

基本飯店預訂

以下範例顯示最少量的標記,可讓電子郵件符合 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

擴充 Reservation

名稱 類型 說明
bookingAgent PersonOrganization 預訂代理人或代理商。也可以接受字串 (例如「」)。
bookingAgent.name Text 代理程式/服務的名稱。
bookingAgent.url 網址 代理商/服務的網站。
bookingTime DateTime 預訂日期。
cancelReservationUrl 網址 可取消預約的網頁。
checkinDate
(必要)
DateTime 入住時間。
checkoutDate
(必要)
DateTime 退房時間。
checkinUrl 網址 房客可辦理入住的網頁。
confirmReservationUrl 網址 可確認預訂的網頁。
lodgingUnitDescription Text 單位類型的文字說明 (包括套房與房間、床的大小等)。
modifiedTime DateTime (建議用於確認卡片/搜尋答案) 預訂上次修改的時間。
modifyReservationUrl 網址 (建議用於確認資訊卡/搜尋答案) 可修改預訂的網頁。
numAdults Number 入住住宿單位的成人人數。
numChildren Number 入住住宿單位的兒童人數。
price Text LodgingReservation 的總價。
priceCurrency Text 此為 LodgingReservation 價格的幣別 (由 3 個英文字母組成,採 ISO 4217 格式)。
programMembership ProgramMembership 預訂時套用的任何飛行常客或飯店會員方案等。
programMembership.memberNumber Text 成員 ID。
programMembership.program Text 學程計畫名稱。
reservationFor
(必要)
LodgingBusiness 預訂的住宿地點。
reservationFor.address
(必填)
PostalAddress 住宿地址。
reservationFor.address.addressCountry
(必要)
TextCountry 住宿地址所在國家/地區。
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 LodgingBusiness 的電話號碼。
reservationFor.url 網址 住宿服務商家的網站。
reservationNumber
(必要)
Text 預約號碼或 ID。
reservationStatus
(必填)
ReservationStatus 預訂的目前狀態。
underName
(必要)
PersonOrganization 邀請對象。
underName.email Text 電子郵件地址。
underName.name
(Required)
Text 人員姓名。
url 網址 可查看預約資訊的網頁。