กรณีการใช้งาน
กรณีการใช้งานต่อไปนี้แสดงตัวอย่างทั่วไปเกี่ยวกับวิธีใช้สคีมา 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>
Microdata
<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>
Microdata
<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 | Text | ชื่อตัวแทน/บริการ | 
| bookingAgent.url | URL | เว็บไซต์ของตัวแทน/บริการ | 
| bookingTime | DateTime | วันที่ทำการจอง | 
| cancelReservationUrl | URL | หน้าเว็บที่ยกเลิกการจองได้ | 
| checkinUrl | URL | หน้าเว็บที่ผู้โดยสารเช็คอินได้ | 
| confirmReservationUrl | URL | หน้าเว็บที่สามารถยืนยันการจองได้ | 
| dropoffLocation   (ต้องระบุ)  | 
AutoRentalหรือสถานที่ | ตำแหน่งที่ส่งคืนรถ | 
| DropoffLocation.address   (ต้องระบุ)  | 
PostalAddress | ที่อยู่ของสถานที่ส่ง | 
| DropoffLocation.address.addressCountry   (ต้องระบุ)  | 
Text หรือ Country | ประเทศต้นทางที่นำส่ง | 
| DropoffLocation.address.addressLocality   (ต้องระบุ)  | 
Text | ย่าน (เช่น เมือง) ของจุดส่ง | 
| DropoffLocation.address.addressRegion   (ต้องระบุ)  | 
Text | ภูมิภาค (เช่น รัฐ) ของจุดส่ง | 
| DropoffLocation.address.postalCode   (ต้องระบุ)  | 
Text | รหัสไปรษณีย์ของสถานที่ส่ง | 
| DropoffLocation.address.streetAddress   (ต้องระบุ)  | 
Text | ที่อยู่ของสถานที่ส่ง | 
| DropoffLocation.name   (ต้องระบุ)  | 
Text | ชื่อสถานที่ส่ง | 
| dropoffLocation.telephone | Text | (แนะนำสำหรับการ์ดยืนยัน/คำตอบในการค้นหา) หมายเลขโทรศัพท์ของสถานที่ | 
| dropoffTime   (ต้องระบุ)  | 
DateTime | เมื่อนำรถคืนมา | 
| modifiedTime | DateTime | (แนะนำสำหรับการ์ดยืนยัน/คำตอบในการค้นหา) เวลาที่แก้ไขการจองครั้งล่าสุด | 
| modifyReservationUrl | URL | (แนะนำสำหรับการ์ดยืนยัน/คำตอบในการค้นหา) หน้าเว็บที่สามารถแก้ไขการจองได้ | 
| pickupLocation   (ต้องระบุ)  | 
AutoRentalหรือสถานที่ | สถานที่รับรถ | 
| pickupLocation.address   (ต้องระบุ)  | 
PostalAddress | ที่อยู่ของสถานที่รับของ | 
| pickupLocation.address.addressCountry   (ต้องระบุ)  | 
Text หรือ Country | ประเทศของสถานที่รับสินค้า | 
| pickupLocation.address.addressLocality   (ต้องระบุ)  | 
Text | ย่าน (เช่น เมือง) ของจุดรับสินค้า | 
| pickupLocation.address.addressRegion   (ต้องระบุ)  | 
Text | ภูมิภาค (เช่น รัฐ) ของจุดรับสินค้า | 
| pickupLocation.address.postalCode   (ต้องระบุ)  | 
Text | รหัสไปรษณีย์ของสถานที่รับพัสดุ | 
| pickupLocation.address.streetAddress   (ต้องระบุ)  | 
Text | ที่อยู่ของสถานที่รับของ | 
| pickupLocation.name   (ต้องระบุ)  | 
Text | ชื่อสถานที่รับสินค้า | 
| pickupLocation.telephone | Text | (แนะนำสำหรับการ์ดยืนยัน/คำตอบในการค้นหา) หมายเลขโทรศัพท์ของสถานที่ | 
| pickupTime   (ต้องระบุ)  | 
DateTime | เมื่อมารับรถ | 
| potentialAction   (ต้องระบุ)  | 
CheckInAction, ConfirmAction, CancelAction หรือ | การดำเนินการที่รองรับสำหรับrenalCarReservation | 
| price | Text | ราคารวมของ RentalCarReservation | 
| priceCurrency | Text | สกุลเงิน (ในรูปแบบ ISO 4217 แบบ 3 อักขระ) ของราคา RentalCarReservation | 
| programMembership | ProgramMembership | การเป็นสมาชิกในการจองตามการสะสมไมล์ โปรแกรมสะสมคะแนนของโรงแรม และอื่นๆ มีผลกับการจอง | 
| programMembership.memberNumber | Text | ตัวระบุการเป็นสมาชิก | 
| programMembership.program | Text | ชื่อโปรแกรม | 
| reservationFor   (ต้องระบุ)  | 
รถที่จองไว้ | |
| ReservationFor.brand   (ต้องระบุ)  | 
แบรนด์ | แบรนด์ที่เกี่ยวข้องกับ RenalCar | 
| ReserveFor.brand.name   (ต้องระบุ)  | 
Text | ชื่อแบรนด์ | 
| reservationFor.description | Text | คำอธิบายสั้นๆ ของ RentalCar | 
| ReserveFor.model   (ต้องระบุ)  | 
Text | รุ่นของ RentalCar | 
| ReserveFor.name   (ต้องระบุ)  | 
Text | ชื่อของ RentalCar | 
| ReserveFor.rentalCompany   (ต้องระบุ)  | 
องค์กร | บริษัทเช่ารถ ยอมรับสตริง (เช่น "Hertz") ด้วย | 
| ReserveFor.rentalCompany.name   (ต้องระบุ)  | 
Text | ชื่อบริษัทให้เช่า | 
| reservationNumber   (ต้องระบุ)  | 
Text | หมายเลขหรือรหัสของการจอง | 
| reservationStatus   (ต้องระบุ)  | 
ReservationStatus | สถานะปัจจุบันของการจอง | 
| underName   (ต้องระบุ)  | 
Organization หรือ Person | คนขับ | 
| underName.email | Text | อีเมล | 
| UnderName.name   (ต้องระบุ)  | 
Text | ชื่อบุคคล | 
| url | URL | หน้าเว็บที่สามารถดูการจองได้ |