ユースケース
次のユースケースでは、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
Reservations を拡張します。
氏名 | 型 | 説明 |
---|---|---|
bookingAgent | Organization または Person | 予約エージェントまたは代理店。文字列(「.」など)も使用できます。 |
bookingAgent | テキスト | エージェント/サービスの名前。 |
予約エージェント URL | URL | エージェント/サービスのウェブサイト。 |
bookingTime | DateTime | 予約が行われた日付。 |
cancelReservationUrl | URL | 予約をキャンセルできるウェブページです。 |
checkinUrl | URL | 乗客がチェックインできるウェブページ。 |
confirmReservationUrl | URL | 予約を確認できるウェブページです。 |
dropoffLocation (必須) |
レンタカーまたはプレイス | 車両の返品先 |
dropoffLocation住所 (必須) |
PostalAddress | 返却場所の住所。 |
dropoffLocation.addressaddressCountry (必須) |
テキストまたは国 | 降車場所の国。 |
dropoffLocation.addressaddressLocality (必須) |
テキスト | 降車場所の地域(都市など)。 |
dropoffLocation.addressaddressRegion (必須) |
テキスト | 降車場所の地域(例: 州)。 |
dropoffLocation.addresspostalCode (必須) |
テキスト | 返却場所の郵便番号。 |
dropoffLocation.address.streetAddress (必須) |
テキスト | 降車場所の住所。 |
dropoffLocation名前 (必須) |
テキスト | 降車場所の名前。 |
dropoffLocation電話 | テキスト | (確認カード/検索の回答に推奨)場所の電話番号。 |
dropoffTime (必須) |
DateTime | 車が返品されたとき。 |
modifiedTime | DateTime | (確認カード/検索の回答に推奨)予約の最終更新日時。 |
modifyReservationUrl | URL | (確認カード/検索の回答で推奨)予約を変更できるウェブページです。 |
pickupLocation (必須) |
レンタカーまたはプレイス | 乗車場所。 |
pickupLocation(住所) (必須) |
PostalAddress | 乗車場所の住所。 |
pickupLocation.addressaddressCountry (必須) |
テキストまたは国 | 受け取り場所の国。 |
pickupLocation.addressaddressLocality (必須) |
テキスト | 受け取りの場所(例: 市区町村) |
pickupLocation.addressaddressRegion (必須) |
テキスト | 受け取り場所の地域(都道府県など)。 |
pickupLocation.address郵便番号 (必須) |
テキスト | 受け取り場所の郵便番号。 |
pickupLocation.addressstreetAddress (必須) |
テキスト | 乗車場所の住所。 |
pickupLocation名前 (必須) |
テキスト | 受け取り場所の名前。 |
pickupLocation[電話番号] | テキスト | (確認カード/検索の回答に推奨)場所の電話番号。 |
pickupTime(受け取り時間) (必須) |
DateTime | 車が乗車したとき。 |
PotentialAction (必須) |
CheckInAction、ConfirmAction、CancelAction、 | RentalCarReservation でサポートされているアクション。 |
price | テキスト | RentalCarReservation の合計金額。 |
priceCurrency | テキスト | RentalCarReservation の価格の通貨(3 文字の ISO 4217 形式)。 |
programMembership | プログラムのメンバー | マイレージ、ホテル向けポイント プログラムなどのメンバーシップが予約に適用されます。 |
programMembership.memberNumber | テキスト | メンバーシップの ID。 |
programMembership.program | テキスト | プログラムの名前。 |
reservationFor (必須) |
予約されている車。 | |
予約ブランド (必須) |
ブランド | RentalCar に関連付けられているブランド。 |
reservationFor.brandname (必須) |
テキスト | ブランドの名前。 |
reservationFordescription | テキスト | RentalCar の簡単な説明。 |
予約モデル (必須) |
テキスト | RentalCar のモデル。 |
reservationForname (必須) |
テキスト | レンタカーの名前。 |
reservationForrentalCompany (必須) |
組織 | レンタカー会社。文字列(「Hertz」など)も使用できます。 |
reservationFor.rentalCompanyname (必須) |
テキスト | レンタル会社の名前。 |
reservationNumber (必須) |
テキスト | 予約の番号または ID。 |
reservationStatus (必須) |
ReservationStatus | 予約の現在のステータス。 |
underName (必須) |
Organization または Person | ドライバ。 |
underName.email | テキスト | メールアドレス。 |
underName.name (必須) |
テキスト | 担当者の名前。 |
url | URL | 予約を表示できるウェブページ。 |