用途
以下應用實例是 RentalCarReservation
結構定義的常見使用方式範例。請參考以下範例,確保標記的結構正確。
基本預訂確認
傳送租車預訂確認通知時,請在電子郵件中嵌入下列標記。
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "RentalCarReservation",
"reservationNumber": "546323",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "John Smith"
},
"reservationFor": {
"@type": "RentalCar",
"name": "Economy Class Car",
"model": "Civic",
"brand": {
"@type": "Brand",
"name": "Honda"
},
"rentalCompany": {
"@type": "Organization",
"name": "Hertz"
}
},
"pickupLocation": {
"@type": "Place",
"name": "Hertz San Diego Airport",
"address": {
"@type": "PostalAddress",
"streetAddress": "1500 Orange Avenue",
"addressLocality": "San Diego",
"addressRegion": "CA",
"postalCode": "94043",
"addressCountry": "US"
}
},
"pickupTime": "2027-08-05T16:00:00-07:00",
"dropoffLocation": {
"@type": "Place",
"name": "Hertz LAX",
"address": {
"@type": "PostalAddress",
"streetAddress": "1234 First Street",
"addressLocality": "Los Angeles",
"addressRegion": "CA",
"postalCode": "94043",
"addressCountry": "US"
}
},
"potentialAction": {
"@type": "ConfirmAction",
"target": "http://cheapcar.com/confirm?id=546323"
},
"dropoffTime": "2027-08-06T20:00:00-07:00"
}
</script>
微資料
<div itemscope itemtype="http://schema.org/RentalCarReservation">
<meta itemprop="reservationNumber" content="546323"/>
<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/RentalCar">
<meta itemprop="name" content="Economy Class Car"/>
<meta itemprop="model" content="Civic"/>
<div itemprop="brand" itemscope itemtype="http://schema.org/Brand">
<meta itemprop="name" content="Honda"/>
</div>
<div itemprop="rentalCompany" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Hertz"/>
</div>
</div>
<div itemprop="pickupLocation" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="Hertz San Diego Airport"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="1500 Orange Avenue"/>
<meta itemprop="addressLocality" content="San Diego"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="postalCode" content="94043"/>
<meta itemprop="addressCountry" content="US"/>
</div>
</div>
<meta itemprop="pickupTime" content="2027-08-05T16:00:00-07:00"/>
<div itemprop="dropoffLocation" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="Hertz LAX"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="1234 First Street"/>
<meta itemprop="addressLocality" content="Los Angeles"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="postalCode" content="94043"/>
<meta itemprop="addressCountry" content="US"/>
</div>
</div>
<meta itemprop="dropoffTime" content="2027-08-06T20:00:00-07:00"/>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ConfirmAction">
<link itemprop="target" href="http://cheapcar.com/confirm?id=546323"/>
</div>
</div>
包含所有支援欄位的範例
以下是填入所有支援欄位的範例,供您參考:
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "RentalCarReservation",
"reservationNumber": "546323",
"reservationStatus": "http://schema.org/Confirmed",
"url": "http://carrentals.com/view/546323",
"underName": {
"@type": "Person",
"name": "John Smith",
"email": "john@mail.com"
},
"programMembership": {
"@type": "ProgramMembership",
"memberNumber": "1234567",
"program": "AAA"
},
"bookingAgent": {
"@type": "Organization",
"name": "Car Rentals Internationaly",
"url": "http://carrentals.com/"
},
"bookingTime": "2027-01-14T13:05:00-05:00",
"modifiedTime": "2027-03-14T13:05:00-05:00",
"confirmReservationUrl": "http://carrentals.com/confirm?id=546323",
"cancelReservationUrl": "http://carrentals.com/cancel?id=546323",
"checkinUrl": "http://carrentals.com/checkin?id=546323",
"modifyReservationUrl": "http://carrentals.com/edit?id=546323",
"potentialAction": [
{
"@type": "ConfirmAction",
"target": "http://carrentals.com/confirm?id=546323"
},
{
"@type": "CancelAction",
"target": "http://carrentals.com/cancel?id=546323"
},
{
"@type": "EditAction",
"target": "http://carrentals.com/edit?id=546323"
},
{
"@type": "CheckInAction",
"target": "http://carrentals.com/checkin?id=546323"
}
],
"reservationFor": {
"@type": "RentalCar",
"name": "Economy Class Car",
"model": "Civic",
"brand": {
"@type": "Brand",
"name": "Honda"
},
"description": "Sedan 4 Door, 5 Seatbelts, Automatic transmission",
"rentalCompany": {
"@type": "Organization",
"name": "Hertz"
}
},
"pickupLocation": {
"@type": "Place",
"name": "Hertz San Diego Airport",
"address": {
"@type": "PostalAddress",
"streetAddress": "1500 Orange Avenue",
"addressLocality": "San Diego",
"addressRegion": "CA",
"postalCode": "94043",
"addressCountry": "US"
},
"telephone": "+1-800-123-4567"
},
"pickupTime": "2027-08-05T16:00:00-07:00",
"dropoffLocation": {
"@type": "Place",
"name": "Hertz LAX",
"address": {
"@type": "PostalAddress",
"streetAddress": "1234 First Street",
"addressLocality": "Los Angeles",
"addressRegion": "CA",
"postalCode": "94043",
"addressCountry": "US"
},
"telephone": "+1-800-123-4567"
},
"dropoffTime": "2027-08-06T20:00:00-07:00",
"price": "119.00",
"priceCurrency": "USD"
}
</script>
微資料
<div itemscope itemtype="http://schema.org/RentalCarReservation">
<meta itemprop="reservationNumber" content="546323"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<link itemprop="url" href="http://carrentals.com/view/546323"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="John Smith"/>
<meta itemprop="email" content="john@mail.com"/>
</div>
<div itemprop="programMembership" itemscope itemtype="http://schema.org/ProgramMembership">
<meta itemprop="memberNumber" content="1234567"/>
<meta itemprop="program" content="AAA"/>
</div>
<div itemprop="bookingAgent" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Car Rentals Internationaly"/>
<link itemprop="url" href="http://carrentals.com/"/>
</div>
<meta itemprop="bookingTime" content="2027-01-14T13:05:00-05:00"/>
<meta itemprop="modifiedTime" content="2027-03-14T13:05:00-05:00"/>
<link itemprop="confirmReservationUrl" href="http://carrentals.com/confirm?id=546323"/>
<link itemprop="cancelReservationUrl" href="http://carrentals.com/cancel?id=546323"/>
<link itemprop="modifyReservationUrl" href="http://carrentals.com/edit?id=546323"/>
<link itemprop="checkinUrl" href="http://carrentals.com/checkin?id=546323"/>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ConfirmAction">
<link itemprop="target" href="http://carrentals.com/confirm?id=546323"/>
</div>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/CancelAction">
<link itemprop="target" href="http://carrentals.com/cancel?id=546323"/>
</div>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/EditAction">
<link itemprop="target" href="http://carrentals.com/edit?id=546323"/>
</div>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/CheckInAction">
<link itemprop="target" href="http://carrentals.com/checkin?id=546323"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/RentalCar">
<meta itemprop="name" content="Economy Class Car"/>
<meta itemprop="model" content="Civic"/>
<div itemprop="brand" itemscope itemtype="http://schema.org/Brand">
<meta itemprop="name" content="Honda"/>
</div>
<meta itemprop="description" content="Sedan 4 Door, 5 Seatbelts, Automatic transmission"/>
<div itemprop="rentalCompany" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Hertz"/>
</div>
</div>
<div itemprop="pickupLocation" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="Hertz San Diego Airport"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="1500 Orange Avenue"/>
<meta itemprop="addressLocality" content="San Diego"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="postalCode" content="94043"/>
<meta itemprop="addressCountry" content="US"/>
</div>
<meta itemprop="telephone" content="+1-800-123-4567"/>
</div>
<meta itemprop="pickupTime" content="2027-08-05T16:00:00-07:00"/>
<div itemprop="dropoffLocation" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="Hertz LAX"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="1234 First Street"/>
<meta itemprop="addressLocality" content="Los Angeles"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="postalCode" content="94043"/>
<meta itemprop="addressCountry" content="US"/>
</div>
<meta itemprop="telephone" content="+1-800-123-4567"/>
</div>
<meta itemprop="dropoffTime" content="2027-08-06T20:00:00-07:00"/>
<meta itemprop="price" content="119.00"/>
<meta itemprop="priceCurrency" content="USD"/>
</div>
測試標記
您可以使用電子郵件標記測試工具驗證標記。貼上標記程式碼,然後按一下「驗證」按鈕以掃描內容,並接收報告中列出的所有錯誤。
規格
請檢查電子郵件詳細資訊,確認是否有任何房源與你的預訂資訊相符。標記這些額外屬性後,Google 就能為使用者顯示更豐富的預訂說明。
RentalCarReservation
類型名稱:RentalCarReservation
延長預留項目
名稱 | 類型 | 說明 |
---|---|---|
bookingAgent | 機構或 Person | 預訂代理商或代理商。也接受字串 (例如「」)。 |
bookingAgent.name | 文字 | 虛擬服務專員/服務的名稱。 |
bookingAgent.url | 網址 | 服務專員/服務的網站。 |
bookingTime | DateTime | 訂位日期。 |
cancelReservationUrl | 網址 | 可取消預訂的網頁。 |
checkinUrl | 網址 | 乘客可以報到的網頁。 |
confirmReservationUrl | 網址 | 可確認預訂網頁。 |
dropoffLocation (必填) |
AutoRental或地點 | 車輛的回車目的地。 |
dropoffLocation.address (必填) |
PostalAddress | 下車地點的地址。 |
dropoffLocation.address.addressCountry (必填) |
Text 或 Country | 下車地點所在的國家/地區。 |
dropoffLocation.address.addressLocality (必填) |
文字 | 下車地點的位置 (例如城市)。 |
dropoffLocation.address.addressRegion (必填) |
文字 | 下車地點的區域 (例如州)。 |
dropoffLocation.address.postalCode (必填) |
文字 | 下車地點的郵遞區號。 |
dropoffLocation.address.streetAddress (必填) |
文字 | 下車地點的街道地址。 |
dropoffLocation.name (必填) |
文字 | 下車地點的名稱。 |
dropoffLocation.telephone | 文字 | (適用於確認卡/搜尋答案) 地點的電話號碼。 |
dropoffTime (必填) |
DateTime | 傳回車輛時。 |
modifiedTime | DateTime | (適用於確認資訊卡/搜尋答案) 預訂的上次修改時間。 |
modifyReservationUrl | 網址 | (適用於確認資訊卡/搜尋答案) - 可修改預訂資訊的網頁。 |
pickupLocation (必填) |
AutoRental或地點 | 車輛的上車地點。 |
pickupLocation.address (必填) |
PostalAddress | 取貨地點的地址。 |
pickupLocation.address.addressCountry (必填) |
Text 或 Country | 取貨地點所在的國家/地區。 |
pickupLocation.address.addressLocality (必填) |
文字 | 上車地點的位置 (例如城市)。 |
pickupLocation.address.addressRegion (必填) |
文字 | 取貨地點的區域 (例如州/省)。 |
pickupLocation.address.postalCode (必填) |
文字 | 取貨地點的郵遞區號。 |
pickupLocation.address.streetAddress (必填) |
文字 | 上車地點的街道地址。 |
pickupLocation.name (必填) |
文字 | 上車地點的名稱。 |
pickupLocation.telephone | 文字 | (適用於確認卡/搜尋答案) 地點的電話號碼。 |
pickupTime (必填) |
DateTime | 車輛抵達上車地點時。 |
potentialAction (必要) |
CheckInAction、ConfirmAction、CancelAction 或 | 支援租車預約的動作。 |
price | 文字 | 租車預訂總價。 |
priceCurrency | 文字 | rentCarReservation 價格的幣別 (以 3 個英文字母表示,以 ISO 4217 格式表示)。 |
programMembership | ProgramMembership | 系統會將常客傳單、飯店會員方案等使用者的會員資格套用至預訂。 |
programMembership.memberNumber | 文字 | 會員的 ID。 |
programMembership.program | 文字 | 學程計畫名稱。 |
reservationFor (必要) |
預訂的車輛。 | |
ReservationFor.brand (必填) |
品牌 | 與租車相關的品牌。 |
ReservationFor.brand.name (必填) |
文字 | 品牌名稱。 |
reservationFor.description | 文字 | 租賃車輛的簡短說明。 |
ReservationFor.model (必要) |
文字 | rentCar 的模型。 |
ReservationFor.name (必填) |
文字 | 租車名稱。 |
ReservationFor.rentalCompany (必填) |
機構組織 | 租車公司。也接受字串 (例如「Hertz」)。 |
ReservationFor.rentalCompany.name (必填) |
文字 | 租賃公司名稱。 |
reservationNumber (必要) |
文字 | 預留項目的 ID 或 ID。 |
reservationStatus (必要) |
ReservationStatus | 預留項目的目前狀態。 |
underName (必要) |
機構或 Person | 驅動程式。 |
underName.email | 文字 | 電子郵件地址。 |
UnderName.name (必填) |
文字 | 人名。 |
url | 網址 | 可以檢視預訂項目的網頁。 |