TrainReservation Schema not working

319 Views Asked by At

Below is the json script i am using to create a Train Reservation Schema, This is validated by Email Markup Tester by Google, but i am not able to see the Google now card appearing on my phone?

Does any body has any example of TrainReservation Schema ?

Html :

    <html>
<head>

  </head>
  <body>
    <p>
      This a test for a Go-To action in Gmail.
    </p>
  </body>
</html>

Script :

   <script type="application/ld+json">
{
 "@context": "http://schema.org",
 "@type": "TrainReservation",
 "reservationNumber" : "2065784893",
 "modifyReservationUrl":"http://www.xyz.com/buytickets/myaccounthomepage.aspx",

 "reservationFor": {
   "@type": "TrainTrip",
   "name" : ": LONDON TERMINALS to MANCHESTER STNS",
   "description": "Departs 11:40 from LONDON TERMINALS  Arrives 13:49 to MANCHESTER STNS",
   "departureTime":"2013-12-17T14:20:03-08:00",
   "arrivalTime":"2013-12-17T13:20:03-08:00",
   "departureStation":"LONDON STNS",
   "arrivalStation":"MANCHESTER STNS",
   "trainCompany":"VIRGIN TRAINS"
 },

"creator":{
"@type":"Person",
"name":"H Walia",
"email":"[email protected]"
},

 "price" : "28.05",
 "modifyReservationUrl" : "http://help.xyz.com/app/answers/detail/a_id/3583",
 "seat" : "ADVANCE SINGLE",
 "bookingDate":"2013-12-17T09:21:03-08:00",
 "bookingTime":"2013-12-17T09:20:03-08:00",
 "numSeats" : "1",
 "ticketDownloadUrl" : "http://www.xyz.com",
 "ticketPrintUrl" : "http://www.xyz.com"

}
</script>
2

There are 2 best solutions below

1
On

Train reservations are not yet supported in Google Now: https://developers.google.com/schemas/now/cards#supported_schemas

4
On

That reservation is for 2012. Try something with a departure time in the near future.