Google Now Event card - How to display more information

痴心易碎 提交于 2019-12-20 15:30:33

问题


I'm testing the Event card in Google Now through adding schema data to a confirmation email. At the moment I'm playing around with populating the event card with rail journey info, since the rail journey schema isn't supported. Unfortunately, I can only get a tiny amount of the info provided to show in the card in Google Now.

Here's what I'm adding to the email:

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

Unfortunately all I get from that is this:

So you can see that there are no images, no navigation prompts, no additional notes, no reservation info.

Is there any way I can increase the amount of information shown by default?

The Google example of the event card looks way better. I'd like to get items like an info link, an image, and a navigation prompt.

Any thoughts?


回答1:


Maybe the image for the booking agent isn't displayed in the card. What about setting an image to the performer or event instead?

From the screenshot you gave, it's seems the dinosaur is the performer, and from the doc:

reservationFor.performer.image URL (recommended for Google Now/Search Answers) URL of an image of the Person.



来源:https://stackoverflow.com/questions/22020184/google-now-event-card-how-to-display-more-information

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!