Gunakan jenis ini untuk mendeklarasikan reservasi untuk satu atau beberapa tamu di sebuah acara. Tiket juga dapat dinyatakan.
Kasus penggunaan
Kasus penggunaan berikut menunjukkan contoh umum penggunaan skema EventReservation
. Gunakan contoh ini untuk memastikan bahwa markup Anda terstruktur dengan benar.
Pengingat acara dasar tanpa tiket
Jika Anda mengirimkan email yang mengonfirmasi kehadiran pengguna ke suatu acara, sertakan markup berikut. Ini adalah contoh jumlah markup minimal yang akan menjadikan email Anda memenuhi syarat sebagai EventReservation
.
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EventReservation",
"reservationNumber": "E123456789",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "John Smith"
},
"reservationFor": {
"@type": "Event",
"name": "Foo Fighters Concert",
"startDate": "2027-03-06T19:30:00-08:00",
"location": {
"@type": "Place",
"name": "AT&T Park",
"address": {
"@type": "PostalAddress",
"streetAddress": "24 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94107",
"addressCountry": "US"
}
}
}
}
</script>
Microdata
<div itemscope itemtype="http://schema.org/EventReservation">
<meta itemprop="reservationNumber" content="E123456789"/>
<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/Event">
<meta itemprop="name" content="Foo Fighters Concert"/>
<meta itemprop="startDate" content="2027-03-06T19:30:00-08:00"/>
<div itemprop="location" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="AT&T Park"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="24 Willie Mays Plaza"/>
<meta itemprop="addressLocality" content="San Francisco"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="postalCode" content="94107"/>
<meta itemprop="addressCountry" content="US"/>
</div>
</div>
</div>
</div>
Acara dengan tiket & tidak ada reservasi tempat duduk
Sertakan kolom ticketToken
, ticketNumber
, dan numSeats
untuk menambahkan informasi tentang tiket.
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EventReservation",
"reservationNumber": "E123456789",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "John Smith"
},
"reservationFor": {
"@type": "Event",
"name": "Foo Fighters Concert",
"performer": {
"@type": "Organization",
"name": "The Foo Fighters",
"image": "http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"
},
"startDate": "2027-03-06T19:30:00-08:00",
"location": {
"@type": "Place",
"name": "AT&T Park",
"address": {
"@type": "PostalAddress",
"streetAddress": "24 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94107",
"addressCountry": "US"
}
}
},
"ticketToken": "qrCode:AB34",
"ticketNumber": "abc123",
"numSeats": "1"
}
</script>
Microdata
<div itemscope itemtype="http://schema.org/EventReservation">
<meta itemprop="reservationNumber" content="E123456789"/>
<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/Event">
<meta itemprop="name" content="Foo Fighters Concert"/>
<div itemprop="performer" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="The Foo Fighters"/>
<link itemprop="image" href="http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"/>
</div>
<meta itemprop="startDate" content="2027-03-06T19:30:00-08:00"/>
<div itemprop="location" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="AT&T Park"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="24 Willie Mays Plaza"/>
<meta itemprop="addressLocality" content="San Francisco"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="postalCode" content="94107"/>
<meta itemprop="addressCountry" content="US"/>
</div>
</div>
</div>
<meta itemprop="ticketToken" content="qrCode:AB34"/>
<meta itemprop="ticketNumber" content="abc123"/>
<meta itemprop="numSeats" content="1"/>
</div>
Acara Olahraga atau Musik dengan tiket
Tetapkan jenis reservationFor
ke MusicEvent
atau SportsEvent
.
Jika peristiwanya adalah MusicEvent
(mis. konser), Anda harus menyertakan performer.name
dan performer.image
. Jika acaranya adalah SportsEvent
(misalnya, pertandingan bola basket) di mana dua tim atau pemain bersaing menyertakan dua tim sebagai penampil.
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EventReservation",
"reservationNumber": "E123456789",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "John Smith"
},
"reservationFor": {
"@type": "MusicEvent",
"name": "Foo Fighters Concert",
"url": "http://foofighterstour.com/SFO",
"performer": {
"@type": "Organization",
"name": "The Foo Fighters",
"image": "http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"
},
"startDate": "2027-03-06T19:30:00-08:00",
"endDate": "2027-03-06T23:00:00-08:00",
"doorTime": "2027-03-06T16:30:00-08:00",
"location": {
"@type": "Place",
"name": "AT&T Park",
"address": {
"@type": "PostalAddress",
"streetAddress": "AT&T Park",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94107",
"addressCountry": "US"
}
}
},
"ticketToken": "qrCode:AB34",
"ticketNumber": "abc123",
"numSeats": "1"
}
</script>
Microdata
<div itemscope itemtype="http://schema.org/EventReservation">
<meta itemprop="reservationNumber" content="E123456789"/>
<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/MusicEvent">
<meta itemprop="name" content="Foo Fighters Concert"/>
<link itemprop="url" href="http://foofighterstour.com/SFO"/>
<div itemprop="performer" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="The Foo Fighters"/>
<link itemprop="image" href="http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"/>
</div>
<meta itemprop="startDate" content="2027-03-06T19:30:00-08:00"/>
<meta itemprop="endDate" content="2027-03-06T23:00:00-08:00"/>
<meta itemprop="doorTime" content="2027-03-06T16:30:00-08:00"/>
<div itemprop="location" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="AT&T Park"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="AT&T Park"/>
<meta itemprop="addressLocality" content="San Francisco"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="postalCode" content="94107"/>
<meta itemprop="addressCountry" content="US"/>
</div>
</div>
</div>
<meta itemprop="ticketToken" content="qrCode:AB34"/>
<meta itemprop="ticketNumber" content="abc123"/>
<meta itemprop="numSeats" content="1"/>
</div>
Acara dengan tiket & tempat duduk yang direservasi
Untuk satu tiket dengan tempat duduk yang dipesan, termasuk ticketToken
, ticketNumber
, venueSeat
, venueRow
, dan venueSection
.
Anda hanya perlu menyertakan salah satu dari venueSeat
, venueRow
, dan venueSection
yang diperlukan untuk mendeskripsikan lokasi kursi.
Jangan menyertakan numSeats
.
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EventReservation",
"reservationNumber": "E123456789",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "John Smith"
},
"reservationFor": {
"@type": "Event",
"name": "Foo Fighters Concert",
"performer": {
"@type": "Organization",
"name": "The Foo Fighters",
"image": "http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"
},
"startDate": "2027-03-06T19:30:00-08:00",
"location": {
"@type": "Place",
"name": "AT&T Park",
"address": {
"@type": "PostalAddress",
"streetAddress": "24 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94107",
"addressCountry": "US"
}
}
},
"venueSeat": "12",
"venueRow": "A",
"venueSection": "101",
"ticketToken": "qrCode:AB34",
"ticketNumber": "abc123"
}
</script>
Microdata
<div itemscope itemtype="http://schema.org/EventReservation">
<meta itemprop="reservationNumber" content="E123456789"/>
<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/Event">
<meta itemprop="name" content="Foo Fighters Concert"/>
<div itemprop="performer" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="The Foo Fighters"/>
<link itemprop="image" href="http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"/>
</div>
<meta itemprop="startDate" content="2027-03-06T19:30:00-08:00"/>
<div itemprop="location" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="AT&T Park"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="24 Willie Mays Plaza"/>
<meta itemprop="addressLocality" content="San Francisco"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="postalCode" content="94107"/>
<meta itemprop="addressCountry" content="US"/>
</div>
</div>
</div>
<meta itemprop="venueSeat" content="12"/>
<meta itemprop="venueRow" content="A"/>
<meta itemprop="venueSection" content="101"/>
<meta itemprop="ticketToken" content="qrCode:AB34"/>
<meta itemprop="ticketNumber" content="abc123"/>
</div>
Beberapa tiket
Ada dua opsi untuk melakukan beberapa tiket:
Yang pertama adalah perubahan
numSeats
. Artinya, satu reservasi akan mewakili tiket untuknumSeats
jumlah orang.Jika Anda ingin memiliki satu tiket (yaitu kode batang) per orang dan memiliki nama untuk setiap orang pada tiket, buat beberapa
EventReservations
(satu per orang) dengannumSeats
ditetapkan ke 1. Contoh di bawah menunjukkan tampilannya.
JSON-LD
<script type="application/ld+json">
[
{
"@context": "http://schema.org",
"@type": "EventReservation",
"reservationNumber": "E123456789",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "John Smith"
},
"reservationFor": {
"@type": "Event",
"name": "Foo Fighters Concert",
"performer": {
"@type": "Person",
"name": "The Foo Fighters",
"image": "http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"
},
"startDate": "2027-03-06T19:30:00-08:00",
"location": {
"@type": "Place",
"name": "AT&T Park",
"address": {
"@type": "PostalAddress",
"streetAddress": "24 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94107",
"addressCountry": "US"
}
}
},
"venueSeat": "12",
"venueRow": "A",
"venueSection": "101",
"ticketToken": "qrCode:AB34",
"ticketNumber": "abc123"
},
{
"@context": "http://schema.org",
"@type": "EventReservation",
"reservationNumber": "E123456789",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Eva Green"
},
"reservationFor": {
"@type": "Event",
"name": "Foo Fighters Concert",
"performer": {
"@type": "Organization",
"name": "The Foo Fighters",
"image": "http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"
},
"startDate": "2027-03-06T19:30:00-08:00",
"location": {
"@type": "Place",
"name": "AT&T Park",
"address": {
"@type": "PostalAddress",
"streetAddress": "24 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94107",
"addressCountry": "US"
}
}
},
"venueSeat": "13",
"venueRow": "A",
"venueSection": "101",
"ticketToken": "qrCode:AB34",
"ticketNumber": "abc456"
}
]
</script>
Microdata
<div itemscope itemtype="http://schema.org/EventReservation">
<meta itemprop="reservationNumber" content="E123456789"/>
<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/Event">
<meta itemprop="name" content="Foo Fighters Concert"/>
<div itemprop="performer" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="The Foo Fighters"/>
<link itemprop="image" href="http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"/>
</div>
<meta itemprop="startDate" content="2027-03-06T19:30:00-08:00"/>
<div itemprop="location" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="AT&T Park"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="24 Willie Mays Plaza"/>
<meta itemprop="addressLocality" content="San Francisco"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="postalCode" content="94107"/>
<meta itemprop="addressCountry" content="US"/>
</div>
</div>
</div>
<meta itemprop="venueSeat" content="12"/>
<meta itemprop="venueRow" content="A"/>
<meta itemprop="venueSection" content="101"/>
<meta itemprop="ticketToken" content="qrCode:AB34"/>
<meta itemprop="ticketNumber" content="abc123"/>
</div>
<div itemscope itemtype="http://schema.org/EventReservation">
<meta itemprop="reservationNumber" content="E123456789"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Eva Green"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Event">
<meta itemprop="name" content="Foo Fighters Concert"/>
<div itemprop="performer" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="The Foo Fighters"/>
<link itemprop="image" href="http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"/>
</div>
<meta itemprop="startDate" content="2027-03-06T19:30:00-08:00"/>
<div itemprop="location" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="AT&T Park"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="24 Willie Mays Plaza"/>
<meta itemprop="addressLocality" content="San Francisco"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="postalCode" content="94107"/>
<meta itemprop="addressCountry" content="US"/>
</div>
</div>
</div>
<meta itemprop="venueSeat" content="13"/>
<meta itemprop="venueRow" content="A"/>
<meta itemprop="venueSection" content="101"/>
<meta itemprop="ticketToken" content="qrCode:AB34"/>
<meta itemprop="ticketNumber" content="abc456"/>
</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 acara Anda. Dengan me-markup properti tambahan ini, Anda mengizinkan Google untuk menampilkan deskripsi reservasi acara yang jauh lebih lengkap kepada pengguna.
EventReservation
Nama jenis: EventReservation
Memperpanjang Reservasi
Nama | Jenis | Deskripsi |
---|---|---|
tindakan | Tindakan | Tindakan yang dapat dilakukan terhadap benda ini. |
action.name | Teks | String yang ditampilkan kepada pengguna pada elemen UI yang terkait dengan tindakan. |
action.url | URL | URL target untuk tindakan. Jika tidak ada kolom pengendali eksplisit yang disediakan, pengendali tindakan akan diperluas menjadi WebActionHandler dengan URL ini sebagai URL WebActionHandler. |
additionalTicketText | Teks | Informasi tambahan tentang tiket. |
bookingAgent | Organisasi atau Individu | Agen atau agen pemesanan. Juga menerima string (misalnya ""). |
bookingAgent.image | URL | URL gambar Organisasi. |
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. |
confirmReservationUrl | URL | Halaman web tempat reservasi dapat dikonfirmasi. |
modifiedTime | DateTime | (direkomendasikan untuk Kartu Konfirmasi/Jawaban Penelusuran) Waktu reservasi terakhir diubah. |
modifyReservationUrl | URL | (disarankan untuk Kartu Konfirmasi/Jawaban Penelusuran) tempat reservasi dapat diubah. |
numSeats | Number | Jumlah kursi. |
price | Teks | Total harga EventReservasi. |
priceCurrency | Teks | Mata uang (dalam format 3 huruf ISO 4217) dari harga EventReservasi. |
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 | Acara | Dapat menggunakan Acara, atau subjenis acara apa pun, termasuk BusinessEvent, ChildrenEvent, ComedyEvent, DanceEvent, EducationEvent, Festival, FoodEvent, LiteraryEvent, Movie mitra, MusicEvent, SaleEvent, SocialEvent, SportsEvent, TheaterEvent, VisualArtsEvent. |
reservationFor.description | Teks | Deskripsi singkat tentang Acara. |
reservationFor.doorTime | DateTime | Waktu tiket masuk akan dimulai. |
reservationFor.endDate | DateTime | Tanggal dan waktu berakhir acara. |
reservationFor.image | URL | URL gambar Acara. |
reservationFor.location (Wajib) |
Tempat | Lokasi acara. |
reservationFor.location.address (Wajib) |
PostalAddress | Alamat lokasi acara. |
reservationFor.location.address.addressCountry (Wajib) |
Teks atau Negara | Negara lokasi acara. |
reservationFor.location.address.addressLocality (Wajib) |
Teks | Lokalitas (misalnya, kota) di lokasi acara. |
reservationFor.location.address.addressRegion (Wajib) |
Teks | Wilayah (mis., Negara Bagian) dari lokasi acara. |
reservationFor.location.address.postalCode (Wajib) |
Teks | Kode pos lokasi acara. |
reservationFor.location.address.streetAddress (Wajib diisi) |
Teks | Alamat lokasi acara. |
reservationFor.location.name (Wajib) |
Teks | Nama lokasi acara. |
reservationFor.name (Wajib) |
Teks | Nama peristiwa. |
reservationFor.performer | Person atau Organization | (disarankan untuk Kartu Konfirmasi/Jawaban Penelusuran) Penyelenggara acara. Juga menerima array objek. |
reservationFor.performer.image | URL | (disarankan untuk Kartu Konfirmasi/Jawaban Penelusuran) URL gambar Orang. |
reservationFor.performer.name | Teks | (disarankan untuk Kartu Konfirmasi/Jawaban Penelusuran) Nama Orang. |
reservationFor.performer.url | URL | URL Orang. |
reservationFor.startDate (Wajib) |
DateTime | Tanggal dan waktu mulai acara. |
reservationFor.url | URL | URL Peristiwa. |
reservationNumber reservationNumber | Teks | Nomor atau ID reservasi. |
reservationStatus reservationStatus | ReservationStatus | Status reservasi saat ini. |
ticketDownloadUrl | URL | Tempat tiket dapat didownload. |
ticketNumber | Teks | Nomor atau ID tiket. |
ticketPrintUrl | URL | Tempat tiket dapat dicetak. |
ticketToken | Teks atau URL | Jika gambar kode batang dihosting di situs Anda, nilai kolomnya adalah URL gambar, atau kode batang atau URI QR, seperti "barcode128:AB34" (Kode batang ISO-15417), "qrCode:AB34" (kode QR), "aztecCode:AB34" (kode Aztec), "barcodeEAN:1234" (kode EAN) dan "barcodeUPCA:1234" (kode UPCA). |
underName (Wajib) |
Person atau Organization | Pemegang tiket. |
underName.email | Teks | Alamat email. |
underName.name (Wajib) |
Teks | Nama Orang. |
url | URL | Halaman web tempat reservasi dapat dilihat. |
venueRow | Teks | Barisan kursi. |
venueSeat | Teks | Nomor kursi. |
venueSection | Teks | Bagian kursi. |