2

下面是我用来创建火车预订模式的 json 脚本,这是由 Google 的电子邮件标记测试器验证的,但我看不到 Google now 卡出现在我的手机上?

有没有任何机构有 TrainReservation Schema 的例子?

网页:

    <html>
<head>

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

脚本 :

   <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":"abc@example.com"
},

 "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>
4

2 回答 2

2

Google Now 尚不支持火车预订:https ://developers.google.com/schemas/now/cards#supported_schemas

于 2013-12-17T20:04:57.733 回答
1

该预订是针对 2012 年的。请在不久的将来尝试一些出发时间。

于 2013-12-16T18:18:52.913 回答