バス予約

ユースケース

次のユースケースは、BusReservation スキーマの一般的な使用例を示しています。これらの例を参考にして、マークアップが正しく構造化されていることを確認してください。

基本的な予約確認

予約確認メールを送信する際は、次のマークアップをメールに埋め込みます。

Google アプリでは、旅行当日に予約の詳細が表示され、バス停に時間どおりに到着するための出発時刻がユーザーに通知されます(交通手段や交通状況などが考慮されます)。以下の例のようにチェックイン URL を指定すると、Google アプリで旅行の 24 時間前にユーザーに表示されます。

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BusReservation",
  "reservationNumber": "123456",
  "underName": {
    "@type": "Person",
    "name": "John Smith"
  },
  "reservationStatus": "http://schema.org/ReservationConfirmed",
  "reservationFor": {
    "@type": "BusTrip",
    "busCompany": {
      "@type": "Organization",
      "name": "Bolt NYC"
    },
    "departureBusStop": {
      "@type": "BusStop",
      "name": "Port Authority, NYC"
    },
    "departureTime": "2017-01-04T12:30:00-05:00",
    "arrivalBusStop": {
      "@type": "BusStop",
      "name": "Boston South Station"
    },
    "arrivalTime": "2017-01-04T17:10:00-05:00"
  }
}
</script>

microdata

<div itemscope itemtype="http://schema.org/BusReservation">
  <meta itemprop="reservationNumber" content="123456"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="John Smith"/>
  </div>
  <link itemprop="reservationStatus" href="http://schema.org/ReservationConfirmed"/>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/BusTrip">
    <div itemprop="busCompany" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Bolt NYC"/>
    </div>
    <div itemprop="departureBusStop" itemscope itemtype="http://schema.org/BusStop">
      <meta itemprop="name" content="Port Authority, NYC"/>
    </div>
    <meta itemprop="departureTime" content="2017-01-04T12:30:00-05:00"/>
    <div itemprop="arrivalBusStop" itemscope itemtype="http://schema.org/BusStop">
      <meta itemprop="name" content="Boston South Station"/>
    </div>
    <meta itemprop="arrivalTime" content="2017-01-04T17:10:00-05:00"/>
  </div>
</div>

搭乗券とチケット

予約確認に加えて、別のメールで確認カードの搭乗券をトリガーすることもできます。

確認カードは、ユーザーがバス停に時間どおりに到着するのをサポートするだけでなく、乗車中にチケットを表示することもできます。そのためには、マークアップにいくつかの追加フィールドを含める必要があります。乗客の搭乗に必要な追加のフィールドがある場合は、additionalTicketText フィールドに含めます。

座席指定のないチケットの場合、これらのフィールドは numSeatsticketNumberticketToken です。

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BusReservation",
  "reservationNumber": "123456",
  "underName": {
    "@type": "Person",
    "name": "John Smith"
  },
  "reservationStatus": "http://schema.org/ReservationConfirmed",
  "reservationFor": {
    "@type": "BusTrip",
    "busCompany": "Bolt NYC",
    "departureBusStop": {
      "@type": "BusStop",
      "name": "Port Authority, NYC"
    },
    "departureTime": "2017-01-04T12:30:00-05:00",
    "arrivalBusStop": {
      "@type": "BusStop",
      "name": "Boston South Station"
    },
    "arrivalTime": "2017-01-04T17:10:00-05:00"
  },
  "reservedTicket": {
    "@type": "Ticket",
    "underName": "John Smith",
    "ticketNumber": "123XYZ",
    "ticketToken": "aztecCode:AB34",
    "additionalTicketText": "We recommend that you arrive at the station at least 30 minutes prior to your scheduled departure. Allow additional time if you need help with baggage or tickets."
  }
}
</script>

microdata

<div itemscope itemtype="http://schema.org/BusReservation">
  <meta itemprop="reservationNumber" content="123456"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="John Smith"/>
  </div>
  <link itemprop="reservationStatus" href="http://schema.org/ReservationConfirmed"/>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/BusTrip">
    <meta itemprop="busCompany" content="Bolt NYC"/>
    <div itemprop="departureBusStop" itemscope itemtype="http://schema.org/BusStop">
      <meta itemprop="name" content="Port Authority, NYC"/>
    </div>
    <meta itemprop="departureTime" content="2017-01-04T12:30:00-05:00"/>
    <div itemprop="arrivalBusStop" itemscope itemtype="http://schema.org/BusStop">
      <meta itemprop="name" content="Boston South Station"/>
    </div>
    <meta itemprop="arrivalTime" content="2017-01-04T17:10:00-05:00"/>
  </div>
  <div itemprop="reservedTicket" itemscope itemtype="http://schema.org/Ticket">
    <meta itemprop="underName" content="John Smith"/>
    <meta itemprop="ticketNumber" content="123XYZ"/>
    <meta itemprop="ticketToken" content="aztecCode:AB34"/>
    <meta itemprop="additionalTicketText" content="We recommend that you arrive at the station at least 30 minutes prior to your scheduled departure. Allow additional time if you need help with baggage or tickets."/>
  </div>
</div>

座席指定のあるチケットの場合、これらのフィールドは seatNumberseatingTypeticketNumberticketToken です。

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BusReservation",
  "reservationNumber": "123456",
  "underName": {
    "@type": "Person",
    "name": "John Smith"
  },
  "reservationStatus": "http://schema.org/ReservationConfirmed",
  "reservationFor": {
    "@type": "BusTrip",
    "busCompany": "Bolt NYC",
    "departureBusStop": {
      "@type": "BusStop",
      "name": "Port Authority, NYC"
    },
    "departureTime": "2017-01-04T12:30:00-05:00",
    "arrivalBusStop": {
      "@type": "BusStop",
      "name": "Boston South Station"
    },
    "arrivalTime": "2017-01-04T17:10:00-05:00"
  },
  "reservedTicket": {
    "@type": "Ticket",
    "underName": "John Smith",
    "ticketedSeat": {
      "@type": "Seat",
      "seatNumber": "27B",
      "seatingType": "Coach"
    },
    "ticketNumber": "123XYZ",
    "ticketToken": "aztecCode:AB34",
    "additionalTicketText": "We recommend that you arrive at the station at least 30 minutes prior to your scheduled departure. Allow additional time if you need help with baggage or tickets."
  }
}
</script>

microdata

<div itemscope itemtype="http://schema.org/BusReservation">
  <meta itemprop="reservationNumber" content="123456"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="John Smith"/>
  </div>
  <link itemprop="reservationStatus" href="http://schema.org/ReservationConfirmed"/>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/BusTrip">
    <meta itemprop="busCompany" content="Bolt NYC"/>
    <div itemprop="departureBusStop" itemscope itemtype="http://schema.org/BusStop">
      <meta itemprop="name" content="Port Authority, NYC"/>
    </div>
    <meta itemprop="departureTime" content="2017-01-04T12:30:00-05:00"/>
    <div itemprop="arrivalBusStop" itemscope itemtype="http://schema.org/BusStop">
      <meta itemprop="name" content="Boston South Station"/>
    </div>
    <meta itemprop="arrivalTime" content="2017-01-04T17:10:00-05:00"/>
  </div>
  <div itemprop="reservedTicket" itemscope itemtype="http://schema.org/Ticket">
    <meta itemprop="underName" content="John Smith"/>
    <div itemprop="ticketedSeat" itemscope itemtype="http://schema.org/Seat">
      <meta itemprop="seatNumber" content="27B"/>
      <meta itemprop="seatingType" content="Coach"/>
    </div>
    <meta itemprop="ticketNumber" content="123XYZ"/>
    <meta itemprop="ticketToken" content="aztecCode:AB34"/>
    <meta itemprop="additionalTicketText" content="We recommend that you arrive at the station at least 30 minutes prior to your scheduled departure. Allow additional time if you need help with baggage or tickets."/>
  </div>
</div>

サポートされているすべてのフィールドを含む例

参考として、サポートされているすべてのフィールドに入力した例を次に示します。

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BusReservation",
  "reservationNumber": "123456",
  "url": "http://boltbus.com/view/123456",
  "underName": {
    "@type": "Person",
    "name": "John Smith",
    "email": "john@mail.com"
  },
  "programMembership": {
    "@type": "ProgramMembership",
    "memberNumber": "12345",
    "program": "STA"
  },
  "bookingAgent": {
    "@type": "Organization",
    "name": "Bolt Bus NYC",
    "url": "http://boltbus.com/"
  },
  "bookingTime": "2013-01-14T13:05:00-05:00",
  "modifiedTime": "2013-03-14T13:05:00-05:00",
  "confirmReservationUrl": "http://boltbus.com/confirm?id=123456",
  "cancelReservationUrl": "http://boltbus.com/cancel?id=123456",
  "modifyReservationUrl": "http://boltbus.com/edit?id=123456",
  "checkinUrl": "http://boltbus.com/checkin?id=AB3XY2",
  "reservationStatus": "http://schema.org/ReservationConfirmed",
  "reservationFor": {
    "@type": "BusTrip",
    "name": "?",
    "busNumber": "63",
    "busName": "Bolt Bus NY:Boston",
    "busCompany": {
      "@type": "Organization",
      "name": "Bolt NYC"
    },
    "departureBusStop": {
      "@type": "BusStop",
      "name": "Port Authority, NYC",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "625 8th Avenue",
        "addressLocality": "New York",
        "addressRegion": "NY",
        "postalCode": "10018",
        "addressCountry": "USA"
      },
      "directions": "Bus terminals are at floors 2-4 of the Port Authority building"
    },
    "departureTime": "2017-01-04T12:30:00-05:00",
    "arrivalBusStop": {
      "@type": "BusStop",
      "name": "Boston South Station",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "Summer St.",
        "addressLocality": "Boston",
        "addressRegion": "MA",
        "postalCode": "02111",
        "addressCountry": "USA"
      },
      "directions": "Bus stops are at thewest side of the train station."
    },
    "arrivalTime": "2017-01-04T17:10:00-05:00"
  },
  "reservedTicket": {
    "@type": "Ticket",
    "ticketNumber": "123XYZ",
    "downloadUrl": "?",
    "printUrl": "?",
    "ticketToken": "qrCode:123456789",
    "additionalTicketText": "?",
    "price": "45.00",
    "priceCurrency": "USD",
    "underName": {
      "@type": "Person",
      "name": "Mary Smith"
    },
    "ticketedSeat": {
      "@type": "Seat",
      "seatingType": "Coach",
      "seatNumber": "27",
      "seatRow": "A"
    }
  }
}
</script>

microdata

<div itemscope itemtype="http://schema.org/BusReservation">
  <meta itemprop="reservationNumber" content="123456"/>
  <link itemprop="url" href="http://boltbus.com/view/123456"/>
  <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="12345"/>
    <meta itemprop="program" content="STA"/>
  </div>
  <div itemprop="bookingAgent" itemscope itemtype="http://schema.org/Organization">
    <meta itemprop="name" content="Bolt Bus NYC"/>
    <link itemprop="url" href="http://boltbus.com/"/>
  </div>
  <meta itemprop="bookingTime" content="2013-01-14T13:05:00-05:00"/>
  <meta itemprop="modifiedTime" content="2013-03-14T13:05:00-05:00"/>
  <link itemprop="confirmReservationUrl" href="http://boltbus.com/confirm?id=123456"/>
  <link itemprop="cancelReservationUrl" href="http://boltbus.com/cancel?id=123456"/>
  <link itemprop="modifyReservationUrl" href="http://boltbus.com/edit?id=123456"/>
  <link itemprop="checkinUrl" href="http://boltbus.com/checkin?id=AB3XY2"/>
  <link itemprop="reservationStatus" href="http://schema.org/ReservationConfirmed"/>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/BusTrip">
    <meta itemprop="name" content="?"/>
    <meta itemprop="busNumber" content="63"/>
    <meta itemprop="busName" content="Bolt Bus NY:Boston"/>
    <div itemprop="busCompany" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Bolt NYC"/>
    </div>
    <div itemprop="departureBusStop" itemscope itemtype="http://schema.org/BusStop">
      <meta itemprop="name" content="Port Authority, NYC"/>
      <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
        <meta itemprop="streetAddress" content="625 8th Avenue"/>
        <meta itemprop="addressLocality" content="New York"/>
        <meta itemprop="addressRegion" content="NY"/>
        <meta itemprop="postalCode" content="10018"/>
        <meta itemprop="addressCountry" content="USA"/>
      </div>
      <meta itemprop="directions" content="Bus terminals are at floors 2-4 of the Port Authority building"/>
    </div>
    <meta itemprop="departureTime" content="2017-01-04T12:30:00-05:00"/>
    <div itemprop="arrivalBusStop" itemscope itemtype="http://schema.org/BusStop">
      <meta itemprop="name" content="Boston South Station"/>
      <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
        <meta itemprop="streetAddress" content="Summer St."/>
        <meta itemprop="addressLocality" content="Boston"/>
        <meta itemprop="addressRegion" content="MA"/>
        <meta itemprop="postalCode" content="02111"/>
        <meta itemprop="addressCountry" content="USA"/>
      </div>
      <meta itemprop="directions" content="Bus stops are at thewest side of the train station."/>
    </div>
    <meta itemprop="arrivalTime" content="2017-01-04T17:10:00-05:00"/>
  </div>
  <div itemprop="reservedTicket" itemscope itemtype="http://schema.org/Ticket">
    <meta itemprop="ticketNumber" content="123XYZ"/>
    <meta itemprop="downloadUrl" content="?"/>
    <meta itemprop="printUrl" content="?"/>
    <meta itemprop="ticketToken" content="qrCode:123456789"/>
    <meta itemprop="additionalTicketText" content="?"/>
    <meta itemprop="price" content="45.00"/>
    <meta itemprop="priceCurrency" content="USD"/>
    <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Mary Smith"/>
    </div>
    <div itemprop="ticketedSeat" itemscope itemtype="http://schema.org/Seat">
      <meta itemprop="seatingType" content="Coach"/>
      <meta itemprop="seatNumber" content="27"/>
      <meta itemprop="seatRow" content="A"/>
    </div>
  </div>
</div>

マークアップをテスト

メール マークアップ テストツールを使用して、マークアップを検証できます。マークアップ コードを貼り付け、[検証] ボタンをクリックしてコンテンツをスキャンし、エラーに関するレポートを受け取ります。

仕様

メールの詳細を確認して、これらのプロパティがバスの予約に適用されるかどうかを確認します。これらの追加プロパティをマークアップすることで、Google はユーザーにバスの予約に関するより詳細な説明を表示できるようになります。

プロパティ タイプ 説明
reservationNumber テキスト 必須)予約の番号または ID。
URL URL 予約を表示できるウェブページ。
underName Person または Organization 必須)乗客。
underName.name テキスト 必須)ユーザーの名前。
underName.email テキスト メールアドレス。
programMembership ProgramMembership 予約に適用されるマイレージ プログラムやホテル ポイント プログラムなどのメンバーシップ。
programMembership.memberNumber テキスト メンバーシップの識別子。
programMembership.program テキスト プログラムの名前。
bookingAgent Organization または Person 予約エージェントまたは代理店。文字列(「」など)も指定できます。
bookingAgent.name テキスト エージェント/サービスの名前。
bookingAgent.url URL エージェント/サービスのウェブサイト。
bookingTime DateTime 予約が行われた日付。
modifiedTime DateTime 確認カード/検索回答に推奨)予約が最後に変更された日時。
confirmReservationUrl URL 予約を確認できるウェブページ。
cancelReservationUrl URL 予約をキャンセルできるウェブページ。
modifyReservationUrl URL 確認カード/検索回答に推奨)予約を変更できるウェブページ。
checkinUrl URL 乗客がチェックインできるウェブページ。
reservationStatus ReservationStatus 必須)予約の現在のステータス。
reservationFor BusTrip 必須)バス旅行に関する情報。
reservationFor.name テキスト BusTrip の名前。
reservationFor.busNumber テキスト 例: 101。
reservationFor.busName テキスト 例: Bolt Express。
reservationFor.busCompany 組織 必須)例: Bolt NYC。文字列(「Bolt NYC」など)も使用できます。
reservationFor.busCompany.name テキスト 必須)組織の名前。
reservationFor.departureBusStop BusStop または BusStation 必須)バスの出発地。
reservationFor.departureBusStop.name テキスト 必須)BusStop の名前。
reservationFor.departureBusStop.address PostalAddress 出発地のバス停 / 駅の住所。
reservationFor.departureBusStop.address.streetAddress テキスト 確認カード/検索回答に推奨)出発するバス停 / 駅の住所。
reservationFor.departureBusStop.address.addressLocality テキスト 確認カード/検索回答におすすめ)出発するバス停 / 駅の地域(例: 市区町村)。
reservationFor.departureBusStop.address.addressRegion テキスト 確認カード/検索回答におすすめ)出発するバス停 / 駅の地域(都道府県など)。
reservationFor.departureBusStop.address.postalCode テキスト 確認カード/検索回答に推奨)出発するバス停 / 駅の郵便番号。
reservationFor.departureBusStop.address.addressCountry テキストまたは 確認カード/検索回答に推奨)出発国のバス停 / 駅。
reservationFor.departureBusStop.directions テキスト バス停までの経路。
reservationFor.departureTime DateTime 必須)バスの出発時刻。
reservationFor.arrivalBusStop BusStop または BusStation 必須)バスの到着場所。
reservationFor.arrivalBusStop.name テキスト 必須)BusStop の名前。
reservationFor.arrivalBusStop.address PostalAddress 到着地のバス停 / 駅の住所。
reservationFor.arrivalBusStop.address.streetAddress テキスト 確認カード/検索回答に推奨)到着するバス停 / 駅の番地。
reservationFor.arrivalBusStop.address.addressLocality テキスト 確認カード/検索回答におすすめ)到着するバス停 / 駅の地域(都市など)。
reservationFor.arrivalBusStop.address.addressRegion テキスト 確認カード/検索回答に推奨)到着するバス停 / 駅の地域(都道府県など)。
reservationFor.arrivalBusStop.address.postalCode テキスト 確認カード/検索回答に推奨)到着するバス停 / 駅の郵便番号。
reservationFor.arrivalBusStop.address.addressCountry テキストまたは 確認カード/検索回答に推奨)到着国のバス停 / 駅。
reservationFor.arrivalBusStop.directions テキスト バス停までの経路。
reservationFor.arrivalTime DateTime 必須)バスの到着時刻。
reservedTicket チケット チケット情報。
reservedTicket.ticketNumber テキスト チケットの番号または ID。
reservedTicket.downloadUrl URL .
reservedTicket.printUrl URL .
reservedTicket.ticketToken テキストまたは URL バーコード画像がサイトでホストされている場合、フィールドの値は画像の URL、または「barcode128:AB34」(ISO-15417 バーコード)、「qrCode:AB34」(QR コード)、「aztecCode:AB34」(Aztec コード)、「barcodeEAN:1234」(EAN コード)、「barcodeUPCA:1234」(UPCA コード)などのバーコードまたは QR URI です。
reservedTicket.additionalTicketText テキスト チケットに関する追加の説明テキスト。
reservedTicket.price テキスト チケットの合計金額。
reservedTicket.priceCurrency テキスト チケットの価格の通貨(3 文字の ISO 4217 形式)。
reservedTicket.underName Person または Organization チケットの対象となる個人または組織。
reservedTicket.underName.name テキスト 人物の名前。
reservedTicket.ticketedSeat 座席: 指定席の場所(27B など)。.
reservedTicket.ticketedSeat.seatingType テキスト 座席のタイプ/クラス。
reservedTicket.ticketedSeat.seatNumber テキスト 指定席の場所。
reservedTicket.ticketedSeat.seatRow テキスト 指定席の列の位置。