Google NOW如何解析电子邮件,以生成NOW通知 - 卡片

时间:2015-05-11 15:09:42

标签: google-schemas

如何更改火车公司发送的电子邮件中的电子邮件标题设置 - 例如Deutsche Bahn,现在启用Google的邮件接收器将获得现在的卡。

它适用于亚马逊和航班预订,但似乎没有"火车或铁路"到目前为止存在架构?

1 个答案:

答案 0 :(得分:0)

前几天我正在测试TrainReservation schema,我可以使用下面的示例生成一张Now卡:



<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "TrainReservation",
  "reservationNumber": "12345",
  "reservationStatus": "http://schema.org/ReservationConfirmed",
  "reservationFor": {
    "@type": "TrainTrip",
    "departureStation": {
      "@type": "TrainStation",
      "name": "Munich Central"
    },
    "departureTime": "2015-05-26T10:30:00+01:00",
    "arrivalStation": {
      "@type": "TrainStation",
      "name": "Paris Gare De Lyon"
    },
    "arrivalTime": "2015-05-27T03:10:00+01:00"
  },
  "reservedTicket": {
    "@type": "Ticket",
    "underName": "Eva Green",
    "ticketedSeat": {
      "@type": "Seat",
      "seatNumber": "27B",
      "seatingType": "1st Class"
    },
    "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>
&#13;
&#13;
&#13;

这是我的HTC One Android设备上的结果截图:

enter image description here

请注意,这不会出现在像FlightReservation这样的Gmail /收件箱中。您只能生成一张Now卡。