飯店預訂

你可以使用這種類型為飯店或住宿地點的一或多位房客聲明預訂。

用途

以下應用實例說明瞭 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

擴充保留項目

名稱 類型 說明
bookingAgent PersonOrganization 預訂代理商或代理商。同時也接受字串 (例如 "")。
BookingAgent.name Text 服務專員/服務的名稱。
BookingAgent.url 網址 服務專員/服務的網站。
bookingTime DateTime 進行預訂的日期。
cancelReservationUrl 網址 可取消預訂的網頁。
checkinDate
(必填)
DateTime 入住時間。
checkoutDate
(必填)
DateTime 結帳時間。
checkinUrl 網址 放款人簽到的網頁。
ConfirmReservationUrl 網址 可確認預訂的網頁。
lodgingUnitDescription 說明 Text 單元類型的文字說明 (包括套房、會議室、床鋪等)。
修改時間 DateTime (建議用於確認卡片/搜尋答案) 上次修改預訂的時間。
修改訂房網址 網址 (適用於確認資訊卡/搜尋解答) 可以修改預訂的網頁。
<數字成人> Number 住宿住宿的成人人數。
numChildren Number 住宿住宿的兒童人數。
price Text LodgingReservation 的總價。
價格幣別 Text LodgingReservation 價格的貨幣 (採用 3 個英文字母組成的 ISO 4217 格式)。
program 會員 計畫成員資格 預訂大量機票、飯店會員方案等會員資格。
programMembership.memberNumber Text 成員資格的識別碼。
計畫成員資格.program Text 學程計畫名稱。
reservationFor
(必填)
LodgingBusiness 這個住房在位。
reservationFor.address
(必填)
郵寄地址 住宿地址的地址。
reservationFor.address.addressCountry
(必填)
TextCountry 住宿地址所在國家/地區。
reservationFor.address.addressLocality
(必填)
Text 住宿地址的縣市 (例如城市)。
reservationFor.address.addressRegion
(必填)
Text 住宿地址的區域 (例如州/省)。
reservationFor.address.postalCode
(必填)
Text 住宿地址的郵遞區號。
reservationFor.address.streetAddress
(必填)
Text 住宿地址的街道地址。
reservationFor.image 網址 住宿商家相片。
reservationFor.name
(必填)
Text 住宿地址的名稱。
reservationFor.phonephone
(必填)
Text LodgingBusiness 的電話號碼。
reservationFor.<網址> 網址 住宿業網站。
reservationNumber
(必填)
Text 保留項目的數字或 ID。
reservationStatus
(必填)
Reservation Status 保留項目目前的狀態。
underName
(必填)
PersonOrganization 訪客。
underName.email Text 電子郵件地址。
UnderName.name
(必填)
Text 人名。
網址 網址 可檢視預訂項目的網頁。