Kasus penggunaan
Kasus penggunaan berikut menunjukkan contoh umum penggunaan skema RentalCarReservation
. Gunakan contoh ini untuk memastikan bahwa markup Anda terstruktur dengan benar.
Konfirmasi reservasi dasar
Sematkan markup berikut di email saat Anda mengirimkan konfirmasi reservasi rental mobil.
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>
Contoh dengan semua kolom yang didukung
Sebagai referensi, berikut contoh dengan semua kolom yang didukung sudah terisi:
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>
Menguji Markup
Anda dapat memvalidasi markup menggunakan Alat Penguji Markup Email. Tempel kode markup Anda dan klik tombol Validasi untuk memindai konten dan menerima laporan jika ada error.
Spesifikasi
Tinjau detail email Anda untuk melihat apakah salah satu properti ini berlaku untuk reservasi Anda. Dengan me-markup properti tambahan ini, Anda memungkinkan Google menampilkan deskripsi reservasi yang jauh lebih lengkap kepada pengguna.
RentalCarReservation
Nama jenis: RentalCarReservation
Memperpanjang Reservasi
Nama | Jenis | Deskripsi |
---|---|---|
bookingAgent | Organisasi atau Individu | Agen atau agen pemesanan. Juga menerima string (misalnya ""). |
bookingAgent.name | Teks | Nama agen/layanan. |
bookingAgent.url | URL | Situs agen/layanan. |
bookingTime | DateTime | Tanggal reservasi dilakukan. |
cancelReservationUrl | URL | Halaman web tempat reservasi dapat dibatalkan. |
checkinUrl | URL | Halaman web tempat penumpang dapat check in. |
confirmReservationUrl | URL | Halaman web tempat reservasi dapat dikonfirmasi. |
dropoffLocation (Wajib) |
AutoRental atau Place | Tempat mobil dikembalikan. |
dropoffLocation.address (Wajib) |
PostalAddress | Alamat lokasi pengantaran. |
dropoffLocation.address.addressCountry (Wajib) |
Teks atau Negara | Negara lokasi pengantaran. |
dropoffLocation.address.addressLocality (Wajib) |
Teks | Lokalitas (misalnya, kota) dari lokasi pengantaran. |
dropoffLocation.address.addressRegion (Wajib) |
Teks | Wilayah (misalnya, Negara Bagian) lokasi pengantaran. |
dropoffLocation.address.postalCode (Wajib) |
Teks | Kode pos lokasi pengantaran. |
dropoffLocation.address.streetAddress (Wajib) |
Teks | Alamat lokasi pengantaran. |
dropoffLocation.name (Wajib) |
Teks | Nama lokasi pengantaran. |
dropoffLocation.telephone | Teks | (disarankan untuk Kartu Konfirmasi/Jawaban Penelusuran) Nomor telepon Tempat. |
dropoffTime (Wajib) |
DateTime | Saat mobil dikembalikan. |
modifiedTime | DateTime | (direkomendasikan untuk Kartu Konfirmasi/Jawaban Penelusuran) Waktu reservasi terakhir diubah. |
modifyReservationUrl | URL | (disarankan untuk Kartu Konfirmasi/Jawaban Penelusuran) tempat reservasi dapat diubah. |
pickupLocation (Wajib) |
AutoRental atau Place | Tempat penjemputan mobil. |
pickupLocation.address (Wajib) |
PostalAddress | Alamat lokasi penjemputan. |
pickupLocation.address.addressCountry (Wajib) |
Teks atau Negara | Negara lokasi penjemputan. |
pickupLocation.address.addressLocality (Wajib) |
Teks | Lokalitas (misalnya, kota) dari lokasi penjemputan. |
pickupLocation.address.addressRegion (Wajib) |
Teks | Wilayah (mis., Negara Bagian) lokasi penjemputan. |
pickupLocation.address.postalCode (Wajib) |
Teks | Kode pos lokasi pengambilan. |
pickupLocation.address.streetAddress (Wajib) |
Teks | Alamat lokasi penjemputan. |
pickupLocation.name (Wajib) |
Teks | Nama lokasi penjemputan. |
pickupLocation.telephone | Teks | (disarankan untuk Kartu Konfirmasi/Jawaban Penelusuran) Nomor telepon Tempat. |
pickupTime (Wajib) |
DateTime | Saat mobil diambil. |
potentialAction (Wajib) |
CheckInAction, ConfirmAction, CancelAction, atau | Tindakan yang didukung untuk RentalCarReservasi. |
price | Teks | Total harga RentalCarReservasi. |
priceCurrency | Teks | Mata uang (dalam format 3 huruf ISO 4217) untuk harga RentalCarReservasi. |
programMembership | ProgramMembership | Keanggotaan apa pun dalam frequent flyer, program loyalitas hotel, dll. akan diterapkan ke reservasi. |
programMembership.memberNumber | Teks | ID keanggotaan. |
programMembership.program | Teks | Nama program. |
reservationFor reservationFor | Mobil yang direservasi. | |
reservationFor.brand (Wajib) |
Merek | Merek yang terkait dengan RentalCar. |
reservationFor.brand.name (Wajib) |
Teks | Nama Merek. |
reservationFor.description | Teks | Deskripsi singkat tentang RentalMobil. |
reservationFor.model (Wajib) |
Teks | Model RentalCar. |
reservationFor.name (Wajib) |
Teks | Nama Mobil Sewaan. |
reservationFor.rentalCompany (Wajib) |
Organisasi | Perusahaan yang menyewakan mobil. Juga menerima string (misalnya "Hertz"). |
reservationFor.rentalCompany.name (Wajib) |
Teks | Nama perusahaan penyewaan. |
reservationNumber reservationNumber | Teks | Nomor atau ID reservasi. |
reservationStatus reservationStatus | ReservationStatus | Status reservasi saat ini. |
underName (Wajib) |
Organisasi atau Individu | Pengemudi. |
underName.email | Teks | Alamat email. |
underName.name (Wajib) |
Teks | Nama Orang. |
url | URL | Halaman web tempat reservasi dapat dilihat. |