TrainTrip

A trip on a commercial train line.

Example eg-0178

Without Markup (source lint)

Original:
Train Reservation #AB3XY2
Departing: Munich Central 2017-01-04T10:30:00+01:00
Arriving: Paris Gare De Lyon 2017-01-04T03:10:00+01:00
Passenger: Eva Green
Seat: 27B
Seating: 1st Class
Ticket: 123XYZ
Ticket Token: aztecCode:AB34
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."

RDFa

No example in this format

microdata

No example in this format

JSON-LD (source lint)

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "TrainReservation",
  "reservationId": "AB3XY2",
  "reservationStatus": "https://schema.org/ReservationConfirmed",
  "reservationFor": {
    "@type": "TrainTrip",
    "departureStation": {
      "@type": "TrainStation",
      "name": "Munich Central"
    },
    "departureTime": "2017-01-04T10:30:00+01:00",
    "arrivalStation": {
      "@type": "TrainStation",
      "name": "Paris Gare De Lyon"
    },
    "arrivalTime": "2017-01-04T03:10:00+01:00"
  },
  "reservedTicket": {
    "@type": "Ticket",
    "underName": "Eva Green",
    "ticketedSeat": {
      "@type": "Seat",
      "seatNumber": "27B",
      "seatingType": "1st Class"
    },
    "ticketNumber": "123XYZ",
    "ticketToken": "aztecCode:AB34",
    "description": "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>

structured

rdf:type schema:TrainReservation
schema:reservationFor
rdf:type schema:TrainTrip
schema:arrivalStation
rdf:type schema:TrainStation
schema:name Paris Gare De Lyon
schema:arrivalTime 2017-01-04T03:10:00+01:00
schema:departureStation
rdf:type schema:TrainStation
schema:name Munich Central
schema:departureTime 2017-01-04T10:30:00+01:00
schema:reservationId AB3XY2
schema:reservationStatus https://schema.org/ReservationConfirmed
schema:reservedTicket
rdf:type schema:Ticket
schema:description 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.
schema:ticketNumber 123XYZ
schema:ticketToken aztecCode:AB34
schema:ticketedSeat
rdf:type schema:Seat
schema:seatNumber 27B
schema:seatingType 1st Class
schema:underName Eva Green