กรณีการใช้งาน
กรณีการใช้งานต่อไปนี้แสดงตัวอย่างทั่วไปของวิธีใช้สคีมา 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 หรือ Place | สถานที่คืนรถ |
| 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 | (แนะนำสำหรับบัตรยืนยัน/คำตอบของ Search) หมายเลขโทรศัพท์ของสถานที่ |
| dropoffTime (ต้องระบุ) |
DateTime | เมื่อส่งคืนรถ |
| modifiedTime | DateTime | (แนะนำสำหรับบัตรยืนยัน/คำตอบของ Search) เวลาที่มีการแก้ไขการจองครั้งล่าสุด |
| modifyReservationUrl | URL | (แนะนําสําหรับการ์ดยืนยัน/คําตอบใน Search) หน้าเว็บที่แก้ไขการจองได้ |
| pickupLocation (ต้องระบุ) |
AutoRental หรือ Place | สถานที่รับรถ |
| 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 | (แนะนำสำหรับบัตรยืนยัน/คำตอบของ Search) หมายเลขโทรศัพท์ของสถานที่ |
| pickupTime (ต้องระบุ) |
DateTime | เมื่อมีการรับรถ |
| potentialAction (ต้องระบุ) |
CheckInAction, ConfirmAction, CancelAction หรือ | การดำเนินการที่รองรับสำหรับ RentalCarReservation |
| price | Text | ราคารวมของ RentalCarReservation |
| priceCurrency | Text | สกุลเงิน (ในรูปแบบ ISO 4217 ที่เป็นตัวอักษร 3 ตัว) ของราคา RentalCarReservation |
| programMembership | ProgramMembership | การเป็นสมาชิกโปรแกรมสะสมไมล์ โปรแกรมสะสมคะแนนของโรงแรม ฯลฯ ที่ใช้กับการจอง |
| programMembership.memberNumber | Text | ตัวระบุของการเป็นสมาชิก |
| programMembership.program | Text | ชื่อโปรแกรม |
| reservationFor (ต้องระบุ) |
รถยนต์ที่จองไว้ | |
| reservationFor.brand (ต้องระบุ) |
แบรนด์ | แบรนด์ที่เชื่อมโยงกับ RentalCar |
| reservationFor.brand.name (ต้องระบุ) |
Text | ชื่อแบรนด์ |
| reservationFor.description | Text | คำอธิบายสั้นๆ ของ RentalCar |
| reservationFor.model (ต้องระบุ) |
Text | โมเดลของ RentalCar |
| reservationFor.name (ต้องระบุ) |
Text | ชื่อของ RentalCar |
| reservationFor.rentalCompany (ต้องระบุ) |
องค์กร | บริษัทที่เช่ารถ นอกจากนี้ยังรับสตริง (เช่น "Hertz") ด้วย |
| reservationFor.rentalCompany.name (ต้องระบุ) |
Text | ชื่อบริษัทให้เช่า |
| reservationNumber (ต้องระบุ) |
Text | หมายเลขหรือรหัสของการจอง |
| reservationStatus (ต้องระบุ) |
ReservationStatus | สถานะปัจจุบันของการจอง |
| underName (ต้องระบุ) |
Organization หรือ Person | คนขับ |
| underName.email | Text | อีเมล |
| underName.name (ต้องระบุ) |
Text | ชื่อของบุคคล |
| URL | URL | หน้าเว็บที่ดูการจองได้ |