飯店訂房

使用這種類型,為一或多位房客在飯店或住宿地點預訂房間。

用途

請參考這個範例,確保 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

延長預留項目

名稱 類型 說明
bookingAgent PersonOrganization 預訂代理人或代理機構。也可以接受字串 (例如「」)。
bookingAgent.name 文字 代理程式/服務的名稱。
bookingAgent.url 網址 代理商/服務的網站。
bookingTime DateTime 預訂日期。
cancelReservationUrl 網址 可取消預約的網頁。
入住日期
(必填)
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
(必要)
TextCountry 住宿地址所在國家/地區。
reservationFor.address.addressLocality
(必要)
文字 住宿地點(例如城市)地址。
reservationFor.address.addressRegion
(必要)
文字 住宿地址所在地區(例如州/省)。
reservationFor.address.postalCode
(必要)
文字 住宿地址的郵遞區號。
reservationFor.address.streetAddress
(Required)
文字 住宿地址的街道地址。
reservationFor.image 網址 住宿服務商家的相片。
reservationFor.name
(必填)
文字 住宿地址的名稱。
預訂電話.
(必填)
文字 LodgingBusiness 的電話號碼。
reservationFor.url 網址 住宿業務網站。
reservationNumber
(必要)
文字 預約號碼或 ID。
reservationStatus
(必要)
ReservationStatus 預訂的目前狀態。
underName
(必要)
PersonOrganization 邀請對象。
underName.email 文字 電子郵件地址。
underName.name
(Required)
文字 人員姓名。
url 網址 可查看預訂資訊的網頁。