ユースケース
次のユースケースは、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/RentalCarReserva>tio<n"
meta itemprop="reservationNumber&quo>t; <content="546323"/
link itemprop="reservationStatus&q>uot<; href="http://schema.org/Confirmed"/
link itempr>op=<"url" href="http://carrentals.com/view/546323"/
>div i<temprop="underName" itemscope it>emtyp<e="http://schema.org/Person"
met>a i<temp>rop<="name" content="John Smith"/
meta itemprop="email" con>tent=<"john@mail.com"/
/div
div itempro>p=&qu<ot;programMembership" itemscope i>tem<type>=&q<uot;http://schema.org/ProgramMembership"
meta itemprop="memberNum>ber&q<uot; content="1234567"/
meta itemprop=">progr<am" content="AAA"/
/div
div ite>mpr<op=&>quo<t;bookingAgent" itemscope itemtype="http://schema.org/>Org<anization"
meta itemprop="name" content=">Car< Rentals Internationaly"/
link itemprop="url" href="http://ca>rre<ntals.com/"/
/div
meta itemprop="bookingTime" content="2027>-01<-14T13:05:00-05:00"/
meta itemprop="modifiedTime" content=">202<7-03-14T13:05:00-05:00"/
link itemprop="confirmReservationUrl&>quo<t; href="http://carrentals.com/confirm?id=546323"/
link itemprop=">cance<lReservationUrl" href="http://carrentals.com/cancel?id=54632>3&q<uot;>/
< link itemprop="modifyReservationUrl" href="http://carrentals.com/e>dit?i<d=546323"/
link itemprop="checkinUrl" href="htt>p:/</car>ren<tals.com/checkin?id=546323"/
div itemprop="potentialAction" ite>mscop<e itemtype="http://schema.org/ConfirmAction"
link ite>mpr<op=&>quo<t;target" href="http://carrentals.com/confirm?id=546323"/
/div
d>iv it<emprop="potentialAction" itemscope itemtype="http://sch>ema<.org>/Ca<ncelAction"
link itemprop="target" href="http://carren>tals.<com/cancel?id=546323"/
/div
div itemprop>=&quo<t;potentialAction" itemscope item>type=<"http://schema.org/EditAction"
link itemprop=">target&<quot; href="http://carrentals.co>m/edi<t?id>=5463<23"/
/div
div itemprop="potentialAction" itemscope itemtype="htt>p://s<chema.org/CheckInAction"
link itemprop="target" href="ht>tp://ca<rrentals.com/checkin?id=546323"/>
/d<iv
> di<v it>emp<rop="reservationFor" itemscope itemtype="http://schema.org/>Renta<lCar"
meta itemprop="name" content=&>quot;<Economy Class Car"/
meta itemprop="model" content=">Civic&q<uot;/
div itemprop="brand" itemscope itemtype>="<http://schema.org/Brand"
meta itemprop=&q>uot;nam<e" content="Honda"/
/div>
me<ta itemprop="description" content>="<Sedan 4 Door, 5 Seatbelts, Automatic transmi>ssion<&quo>t;/
< div itemprop="rentalCompany" itemscope >ite<mtyp>e=&<quot;http://schema.org/Organization"
meta itemprop=&>quo<t;name" content="Hertz"/
/div
/div
div itemprop=&quo>t;pic<kupLocation" itemscope itemtype=&quo>t;htt<p://schema.org/Place"
meta itemprop="name" content=">;Hertz <San Diego Airport"/
div itemprop="address&qu>ot; ite<mscope itemtype="http://schema.org/PostalAddress&>quot;
< meta itemprop="streetAddress">; conte<nt="1500 Orange Avenue"/
me>ta item<prop="addressLocality" content=&qu>ot;Sa<n Di>ego&q<uot;/
meta itemprop="addressRegion" >con<tent>=&q<uot;CA"/
meta itemprop="postalCode" content>=&q<uot;94043"/
meta itemprop=&q>uot<;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
Type name: RentalCarReservation
予約を拡張します。
名前 | 型 | 説明 |
---|---|---|
bookingAgent | Organization または Person | 予約代理店または代理店。文字列("" など)も指定できます。 |
bookingAgent.name | テキスト | エージェント/サービスの名前。 |
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 (必須) |
テキスト | 降車場所の地域区分(都市など)。 |
dropoffLocation.address.addressRegion (必須) |
テキスト | 降車場所の地域(都道府県など)。 |
dropoffLocation.address.postalCode (必須) |
テキスト | 降車場所の郵便番号。 |
dropoffLocation.address.streetAddress (必須) |
テキスト | 降車場所の番地。 |
dropoffLocation.name (必須) |
テキスト | 降車場所の名前。 |
dropoffLocation.telephone | テキスト | (確認カード/検索の回答に推奨)プレイスの電話番号。 |
dropoffTime (必須) |
DateTime | 車が返却されたとき。 |
modifiedTime | DateTime | (確認カード/検索の回答に推奨)予約が最後に変更された時刻。 |
modifyReservationUrl | URL | (確認カード/検索の回答に推奨)予約を変更できるウェブページ。 |
pickupLocation (必須) |
AutoRental または Place | 車を受け取る場所。 |
pickupLocation.address (必須) |
PostalAddress | 乗車場所の住所。 |
pickupLocation.address.addressCountry (必須) |
Text または Country | 乗車場所の国。 |
pickupLocation.address.addressLocality (必須) |
テキスト | 乗車場所の地域区分(例: 都市)。 |
pickupLocation.address.addressRegion (必須) |
テキスト | 乗車場所の地域(都道府県など)。 |
pickupLocation.address.postalCode (必須) |
テキスト | 受け取り場所の郵便番号。 |
pickupLocation.address.streetAddress (必須) |
テキスト | 乗車場所の番地。 |
pickupLocation.name (必須) |
テキスト | 乗車場所の名前。 |
pickupLocation.telephone | テキスト | (確認カード/検索の回答に推奨)プレイスの電話番号。 |
pickupTime (必須) |
DateTime | 車を受け取るとき。 |
potentialAction potentialAction | CheckInAction、ConfirmAction、CancelAction、または | RentalCarReservation でサポートされているアクション。 |
price | テキスト | RentalCarReservation の合計金額。 |
priceCurrency | テキスト | RentalCarReservation の料金の通貨(3 文字の ISO 4217 形式)。 |
programMembership | ProgramMembership | マイレージやホテルのポイント プログラムなどのメンバーシップが予約に適用されます。 |
programMembership.memberNumber | テキスト | メンバーシップの ID。 |
programMembership.program | テキスト | プログラムの名前。 |
reservationFor (必須) |
予約されている車両。 | |
ReservationFor.brand (必須) |
ブランド | RentalCar に関連付けられているブランド。 |
ReservationFor.brand.name (必須) |
テキスト | ブランドの名前。 |
reservationFor.description | テキスト | RentalCar の簡単な説明。 |
ReservationFor.model (必須) |
テキスト | RentalCar のモデル。 |
reservationFor.name (必須) |
テキスト | RentalCar の名前。 |
ReservationFor.rentalCompany (必須) |
組織 | レンタカー会社。文字列(「Hertz」など)も指定できます。 |
reservationFor.rentalCompany.name (必須) |
テキスト | レンタル会社の名前。 |
reservationNumber (必須) |
テキスト | 予約の数または ID。 |
reservationStatus (必須) |
ReservationStatus | 予約の現在のステータス。 |
underName (必須) |
Organization または Person | 運転手。 |
underName.email | テキスト | メールアドレス。 |
underName.name (必須) |
テキスト | 担当者の名前。 |
url | URL | 予約を確認できるウェブページ。 |