2014-02-25 58 views
3

我正在通過將模式數據添加到確認電子郵件中來測試Google即時中的事件卡片。目前,我正在使用鐵路行程信息填充事件卡,因爲不支持鐵路行程模式。 不幸的是,我只能獲取少量的信息,以便在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

有什麼想法?

+0

如上所述,TrainReservation模式尚未得到支持。 –

回答

1

也許預訂代理的圖像未顯示在卡片中。如何將圖像設置爲表演者或事件呢?

從你給的截圖,這似乎是恐龍的表演,並from the doc

reservationFor.performer.image URL(推薦谷歌現在/搜索答案)的人的圖像的URL。

+0

好點!我會看看這個,謝謝! –

+0

不幸的工作:( –

相關問題