租车预订

使用场景

以下用例展示了 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

扩展预留

名称 类型 说明
bookingAgent 组织个人 预订代理或代理机构。也接受字符串(例如“”)。
bookingAgent.name 文本 代理/服务的名称。
bookingAgent.url 网址 代理/服务的网站。
bookingTime DateTime 预订的日期。
cancelReservationUrl 网址 可以取消预订的网页。
checkinUrl 网址 乘客可以办理登机手续的网页。
confirmReservationUrl 网址 可在其中确认预订的网页。
dropoffLocation
(必需)
AutoRentalPlace 车辆退货地点。
dropoffLocation.address
(必需)
PostalAddress 下车点的地址。
dropoffLocation.address.addressCountry
(必需)
文字国家/地区 下车点所在的国家/地区。
dropoffLocation.address.addressLocality
(必需)
文本 下车点的市行政区(例如城市)。
dropoffLocation.address.addressRegion
(必需)
文本 下车点的区域(例如州/省)。
dropoffLocation.address.postalCode
(必需)
文本 下车地点的邮政编码。
dropoffLocation.address.streetAddress
(必需)
文本 下车点的街道地址。
dropoffLocation.name
(必需)
文本 下车点的名称。
dropoffLocation.phone 文本 (推荐用于确认卡片/搜索答案)地点的电话号码。
dropoffTime
(必需)
DateTime 退回汽车时。
修改时间 DateTime (建议用于确认卡/搜索答案)上次修改预订的时间。
modifyReservationUrl 网址 (建议用于确认卡/搜索答案)可修改预订的网页。
pickupLocation
(必需)
AutoRentalPlace 汽车的接送地点。
pickupLocation.address
(必需)
PostalAddress 上车地点的地址。
pickupLocation.address.addressCountry
(必需)
文字国家/地区 上车地点所在的国家/地区。
pickupLocation.address.addressLocality
(必需)
文本 上车地点的市行政区(如城市)。
pickupLocation.address.addressRegion
(必需)
文本 上车地点的区域(例如州)。
pickupLocation.address.postalCode
(必需)
文本 上车地点的邮政编码。
pickupLocation.address.streetAddress
(必需)
文本 上车地点的街道地址。
pickupLocation.name
(必需)
文本 上车地点的名称。
pickupLocation.phone 文本 (推荐用于确认卡片/搜索答案)地点的电话号码。
pickupTime(提货时间)
(必需)
DateTime 上车后。
potentialAction
(必需)
CheckInActionConfirmActionCancelAction 支持租借租车操作。
price 文本 租车预订的总价。
priceCurrency 文本 租赁车预订价格的币种(3 个字母的 ISO 4217 格式)。
programMembership(计划成员资格) 加入计划 适用于预订的常客奖励计划、酒店会员回馈活动等的任何会员资格。
programMembership.memberNumber 文本 成员资格的标识符。
programMembership.program 文本 课程的名称。
reservedFor
(必需)
预留的汽车。
bookingFor.brand
(必需)
品牌 与租车相关联的品牌。
bookingFor.brand.name
(必需)
文本 品牌名称。
bookingFor。description 文本 租借视频的简短说明。
预订.型号
(必需)
文本 租借汽车的模型。
bookingFor。name
(必需)
文本 租车名称。
forForCompany
(必需)
组织 租车的公司。也接受字符串(例如“Hertz”)。
bookingFor.rentalCompany.name
(必需)
文本 租赁公司的名称。
reservedNumber
)(必需)
文本 预留的编号或 ID。
reservedStatus
(必需)
ReservationStatus 预留的当前状态。
underName
(必需)
组织个人 司机。
UnderName.电子邮件地址 文本 电子邮件地址。
underName.name
(必需)
文本 人员的姓名。
网址 网址 可查看预订的网页。