Google即时活动卡 - 如何显示更多信息

时间:2014-02-25 16:26:18

标签: android gmail google-schemas google-now

我正在通过在确认电子邮件中添加架构数据来测试Google即时中的事件卡。目前我正在玩带有铁路旅程信息的活动卡,因为不支持铁路旅行模式。 不幸的是,我只能获得一小部分信息,以便在Google即时卡中显示。

以下是我添加到电子邮件中的内容:

<html>
  <body>
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "EventReservation",
  "reservationNumber": "123456789",
  "reservationStatus": "http://schema.org/Confirmed",
  "url": "http://www.eastcoast.co.uk",
  "underName": {
    "@type": "Person",
    "name": "Conor Marron"
  },
  "bookingAgent": {
   "@type": "Organization",
   "name": "East Coast",
   "url": "http://www.eastcoast.co.uk",
   "image": "http://losttrack.co.uk/wp-content/uploads/2013/09/cr-1-may-30-img-East-Coast-Logo.jpg" 
  },
  "modifyReservationUrl": "http://www.eastcoast.co.uk",
  "reservationFor": {
    "@type": "Event",
    "name": "Train to London King's Cross",
    "description": "Leaving at 16:00. Coach B, seat 12",
    "image": "http://static.guim.co.uk/sys-images/Observer/Pix/pictures/2012/3/24/1332602521578/new-concourse-kings-cross-008.jpg",
    "startDate": "2014-02-25T16:00:00+00:00",
    "endDate": "2014-02-25T19:00:00+00:00",
    "location": {
      "@type": "Place",
      "name": "Newcastle Central Station",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "Neville Street",
        "addressLocality": "Newcastle Upon Tyne",
        "addressRegion": "Tyne and Wear",
        "postalCode": "NE1 5DL",
        "addressCountry": "UK"
      }
    }
  },
  "numSeats": "1",
  "venueSeat": "12",
  "venueSection": "Coach B",
  "ticketNumber": "1257250214-1",
  "modifiedTime": "2014-02-25T15:15:00+00:00",
  "additionalTicketText": "Collect tickets at the station. Ref: ABCD1234"
}
</script>

    <p>
      Full Event Schema Example. 
    </p>
  </body>
</html>

不幸的是,我从中得到的就是:

Train to London

所以你可以看到没有图像,没有导航提示,没有其他注释,没有预订信息。

有没有办法可以增加默认显示的信息量?

事件卡的Google示例看起来更好。我想获得信息链接,图像和导航提示等项目。

Expected

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

预订代理的图像可能不会显示在卡片中。如何将图像设置为表演者或事件呢?

根据您提供的屏幕截图,恐龙似乎是表演者,from the doc

reservationFor.performer.image网址(推荐用于Google即时/搜​​索答案)此图片的网址。