【问题标题】:Google Now Event card - How to display more informationGoogle Now 活动卡片 - 如何显示更多信息
【发布时间】:2014-02-25 16:26:17
【问题描述】:

我正在通过将架构数据添加到确认电子邮件中来测试 Google Now 中的事件卡。目前我正在使用铁路旅程信息填充事件卡,因为不支持铁路旅程模式。 不幸的是,我只能获得一小部分提供的信息以显示在 Google Now 的卡片中。

这是我要添加到电子邮件中的内容:

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

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

因此您可以看到没有图像、没有导航提示、没有附加说明、没有预订信息。

有什么方法可以增加默认显示的信息量?

事件卡的 Google 示例看起来要好得多。我想要获取信息链接、图片和导航提示等项目。

有什么想法吗?

【问题讨论】:

  • 如上所述,目前尚不支持 TrainReservation 模式。

标签: android gmail google-schemas google-now


【解决方案1】:

可能预订代理的图像未显示在卡片中。不如为表演者或活动设置图像?

从你给的截图看,表演者好像是恐龙,from the doc

reservationFor.performer.image URL(推荐用于 Google Now/Search Answers)人物图片的 URL。

【讨论】:

    猜你喜欢
    • 2018-10-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多