以下是我用来创建列车预订架构的json脚本, 这是由Google的电子邮件标记测试程序验证的,但我现在无法看到Google 卡出现在我的手机上?
是否有任何机构有任何TrainReservation Schema的例子?
Html:
<html>
<head>
</head>
<body>
<p>
This a test for a Go-To action in Gmail.
</p>
</body>
</html>
脚本:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "TrainReservation",
"reservationNumber" : "2065784893",
"modifyReservationUrl":"http://www.xyz.com/buytickets/myaccounthomepage.aspx",
"reservationFor": {
"@type": "TrainTrip",
"name" : ": LONDON TERMINALS to MANCHESTER STNS",
"description": "Departs 11:40 from LONDON TERMINALS Arrives 13:49 to MANCHESTER STNS",
"departureTime":"2013-12-17T14:20:03-08:00",
"arrivalTime":"2013-12-17T13:20:03-08:00",
"departureStation":"LONDON STNS",
"arrivalStation":"MANCHESTER STNS",
"trainCompany":"VIRGIN TRAINS"
},
"creator":{
"@type":"Person",
"name":"H Walia",
"email":"abc@example.com"
},
"price" : "28.05",
"modifyReservationUrl" : "http://help.xyz.com/app/answers/detail/a_id/3583",
"seat" : "ADVANCE SINGLE",
"bookingDate":"2013-12-17T09:21:03-08:00",
"bookingTime":"2013-12-17T09:20:03-08:00",
"numSeats" : "1",
"ticketDownloadUrl" : "http://www.xyz.com",
"ticketPrintUrl" : "http://www.xyz.com"
}
</script>
答案 0 :(得分:2)
Google即时尚未支持列车预订:https://developers.google.com/schemas/now/cards#supported_schemas
答案 1 :(得分:1)
预订是在2012年。在不久的将来尝试一下出发时间。