使用场景
以下用例展示了有关如何使用 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 | Organization 或 Person | 预订代理机构或预订代理机构。它还接受字符串(例如 ")。 |
bookingAgent.name | 文本 | 代理/服务的名称。 |
bookingAgent.url | 网址 | 代理/服务的网站。 |
bookingTime | DateTime | 预订日期。 |
cancelReservationUrl | 网址 | 可以取消预订的网页。 |
checkinUrl | 网址 | 乘客可办理登机手续的网页。 |
confirmReservationUrl | 网址 | 可以确认预订的网页。 |
dropoffLocation (必需) |
AutoRental或地点 | 车辆还车地点。 |
dropoffLocation.address (必需) |
PostalAddress | 下车点的地址。 |
dropoffLocation.address.addressCountry (必需) |
文字或国家/地区 | 下车点所在的国家/地区。 |
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 (必需) |
文字或国家/地区 | 自提地点所在的国家/地区。 |
pickupLocation.address.addressLocality (必需) |
文本 | 自提地点的市行政区(例如城市)。 |
pickupLocation.address.addressRegion (必需) |
文本 | 自提地点的区域(例如州)。 |
pickupLocation.address.postalCode (必需) |
文本 | 取货地点的邮政编码。 |
pickupLocation.address.streetAddress (必需) |
文本 | 上车地点的街道地址。 |
pickupLocation.name (必需) |
文本 | 自提地点的名称。 |
pickupLocation.telephone | 文本 | (推荐用于确认卡/搜索答案)地点的电话号码。 |
pickupTime (必需) |
DateTime | 取车时间。 |
potentialAction (必需) |
CheckInAction、ConfirmAction、CancelAction 或 | 租车预订支持操作。 |
price | 文本 | 设备租车预订的总价。 |
priceCurrency | 文本 | STORAGECarReserve 价格的币种(采用由 3 个字母表示的 ISO 4217 格式)。 |
programMembership | ProgramMembership | 通过预订获得的飞行常客奖励计划、酒店会员回馈活动等会员资格。 |
programMembership.memberNumber | 文本 | 成员资格的标识符。 |
programMembership.program | 文本 | 课程的名称。 |
reservationFor (必需) |
预订的车辆。 | |
subscriptionFor.brand (必需) |
品牌 | 与 STORAGECar 相关联的品牌。 |
reservationFor.brand.name (必需) |
文本 | 品牌名称。 |
reservationFor.description | 文本 | PurchaseCar 的简短说明。 |
subscriptionFor.model (必需) |
文本 | 设备租车的车型。 |
subscriptionFor.name (必需) |
文本 | 租车名称。 |
reservationFor.rentalCompany (必需) |
组织 | 租车公司。该属性也接受字符串(例如“Hertz”)。 |
reservationFor.rentalCompany.name (必需) |
文本 | 租赁公司的名称。 |
reservationNumber (必需) |
文本 | 预留的编号或 ID。 |
reservationStatus (必需) |
ReservationStatus | 预留的当前状态。 |
underName (必需) |
Organization 或 Person | 司机。 |
underName.email | 文本 | 电子邮件地址。 |
underName.name (必需) |
文本 | 此人的姓名。 |
url | 网址 | 可查看预订信息的网页。 |