使用這個類型宣告航空旅行預訂。
用途
以下用途說明瞭 FlightReservation 結構定義的常見用法。請參考這些範例,確保標記結構正確無誤。
基本航班確認
傳送航班確認電子郵件時,請在電子郵件中嵌入以下標記。以下範例為單程航班:
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Eva Green"
},
"reservationFor": {
"@type": "Flight",
"flightNumber": "110",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"departureAirport": {
"@type": "Airport",
"name": "San Francisco Airport",
"iataCode": "SFO"
},
"departureTime": "2027-03-04T20:15:00-08:00",
"arrivalAirport": {
"@type": "Airport",
"name": "John F. Kennedy International Airport",
"iataCode": "JFK"
},
"arrivalTime": "2027-03-05T06:30:00-05:00"
}
}
</script>
微資料
<div itemscope itemtype="http://schema.org/FlightReservation">
<meta itemprop="reservationNumber" content="RXJ34P"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Eva Green"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="110"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="United"/>
<meta itemprop="iataCode" content="UA"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="San Francisco Airport"/>
<meta itemprop="iataCode" content="SFO"/>
</div>
<meta itemprop="departureTime" content="2027-03-04T20:15:00-08:00"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="John F. Kennedy International Airport"/>
<meta itemprop="iataCode" content="JFK"/>
</div>
<meta itemprop="arrivalTime" content="2027-03-05T06:30:00-05:00"/>
</div>
</div>
登機證
除了航班確認書之外,您也可以標示登機證詳細資料。
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Eva Green"
},
"reservationFor": {
"@type": "Flight",
"flightNumber": "110",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"departureAirport": {
"@type": "Airport",
"name": "San Francisco Airport",
"iataCode": "SFO"
},
"departureTime": "2027-03-04T20:15:00-08:00",
"arrivalAirport": {
"@type": "Airport",
"name": "John F. Kennedy International Airport",
"iataCode": "JFK"
},
"arrivalTime": "2027-03-05T06:30:00-05:00"
},
"airplaneSeat": "9A",
"airplaneSeatClass": {
"@type": "AirplaneSeatClass",
"name": "Business"
},
"ticketNumber": "ABC1234",
"ticketToken": "qrCode:AB34",
"checkinUrl": "http://united.com/onlinecheckin.html"
}
</script>
微資料
<div itemscope itemtype="http://schema.org/FlightReservation">
<meta itemprop="reservationNumber" content="RXJ34P"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Eva Green"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="110"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="United"/>
<meta itemprop="iataCode" content="UA"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="San Francisco Airport"/>
<meta itemprop="iataCode" content="SFO"/>
</div>
<meta itemprop="departureTime" content="2027-03-04T20:15:00-08:00"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="John F. Kennedy International Airport"/>
<meta itemprop="iataCode" content="JFK"/>
</div>
<meta itemprop="arrivalTime" content="2027-03-05T06:30:00-05:00"/>
</div>
<meta itemprop="airplaneSeat" content="9A"/>
<div itemprop="airplaneSeatClass" itemscope itemtype="http://schema.org/AirplaneSeatClass">
<meta itemprop="name" content="Business"/>
</div>
<meta itemprop="ticketNumber" content="ABC1234"/>
<meta itemprop="ticketToken" content="qrCode:AB34"/>
<link itemprop="checkInUrl" href="http://united.com/onlinecheckin.html"/>
</div>
「Check-In」按鈕
在 Gmail 中,您可以新增 checkinUrl
屬性,在航班確認訊息中加入登機按鈕。如果直接連結至行動應用程式,請一併提供 CheckInAction
:
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Eva Green"
},
"reservationFor": {
"@type": "Flight",
"flightNumber": "110",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"departureAirport": {
"@type": "Airport",
"name": "San Francisco Airport",
"iataCode": "SFO"
},
"departureTime": "2027-03-04T20:15:00-08:00",
"arrivalAirport": {
"@type": "Airport",
"name": "John F. Kennedy International Airport",
"iataCode": "JFK"
},
"arrivalTime": "2027-03-05T06:30:00-05:00"
},
"checkinUrl": "http://united.com/onlinecheckin.html",
"potentialAction": {
"@type": "CheckInAction",
"target": "http://united.com/onlinecheckin.html"
}
}
</script>
微資料
<div itemscope itemtype="http://schema.org/FlightReservation">
<meta itemprop="reservationNumber" content="RXJ34P"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Eva Green"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="110"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="United"/>
<meta itemprop="iataCode" content="UA"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="San Francisco Airport"/>
<meta itemprop="iataCode" content="SFO"/>
</div>
<meta itemprop="departureTime" content="2027-03-04T20:15:00-08:00"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="John F. Kennedy International Airport"/>
<meta itemprop="iataCode" content="JFK"/>
</div>
<meta itemprop="arrivalTime" content="2027-03-05T06:30:00-05:00"/>
</div>
<link itemprop="checkinUrl" href="http://united.com/onlinecheckin.html"/>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/CheckInAction">
<link itemprop="target" href="http://united.com/onlinecheckin.html"/>
</div>
</div>
多個航段
如要描述含有多個航段的航班,請使用多個 FlightReservation
項目:
JSON-LD
<script type="application/ld+json">
[
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Eva Green"
},
"reservationFor": {
"@type": "Flight",
"flightNumber": "201",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"departureAirport": {
"@type": "Airport",
"name": "San Francisco Airport",
"iataCode": "JFK"
},
"departureTime": "2027-03-04T11:00:00-05:00",
"arrivalAirport": {
"@type": "Airport",
"name": "John F. Kennedy International Airport",
"iataCode": "ORD"
},
"arrivalTime": "2027-03-05T13:25:00-06:00"
},
"checkinUrl": "http://united.com/onlinecheckin.html"
},
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Eva Green"
},
"reservationFor": {
"@type": "Flight",
"flightNumber": "1050",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"departureAirport": {
"@type": "Airport",
"name": "San Francisco Airport",
"iataCode": "ORD"
},
"departureTime": "2027-03-05T14:55:00-06:00",
"arrivalAirport": {
"@type": "Airport",
"name": "John F. Kennedy International Airport",
"iataCode": "SFO"
},
"arrivalTime": "2027-03-05T15:15:00-08:00"
},
"checkinUrl": "http://united.com/onlinecheckin.html"
}
]
</script>
微資料
<div itemscope itemtype="http://schema.org/FlightReservation">
<meta itemprop="reservationNumber" content="RXJ34P"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Eva Green"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="201"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="United"/>
<meta itemprop="iataCode" content="UA"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="San Francisco Airport"/>
<meta itemprop="iataCode" content="JFK"/>
</div>
<meta itemprop="departureTime" content="2027-03-04T11:00:00-05:00"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="John F. Kennedy International Airport"/>
<meta itemprop="iataCode" content="ORD"/>
</div>
<meta itemprop="arrivalTime" content="2027-03-05T13:25:00-06:00"/>
</div>
<meta itemprop="modifiedTime" content="2027-03-01T08:30:00-08:00"/>
</div>
<div itemscope itemtype="http://schema.org/FlightReservation">
<meta itemprop="reservationNumber" content="RXJ34P"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Eva Green"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="1050"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="United"/>
<meta itemprop="iataCode" content="UA"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="San Francisco Airport"/>
<meta itemprop="iataCode" content="ORD"/>
</div>
<meta itemprop="departureTime" content="2027-03-05T14:55:00-06:00"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="John F. Kennedy International Airport"/>
<meta itemprop="iataCode" content="SFO"/>
</div>
<meta itemprop="arrivalTime" content="2027-03-05T15:15:00-08:00"/>
</div>
<meta itemprop="modifiedTime" content="2027-03-01T08:30:00-08:00"/>
</div>
多位乘客
如要描述有多位乘客的航班,請使用多個 FlightReservation
項目:
JSON-LD
<script type="application/ld+json">
[
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "John Green"
},
"reservationFor": {
"@type": "Flight",
"flightNumber": "201",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"departureAirport": {
"@type": "Airport",
"name": "John F. Kennedy International Airport",
"iataCode": "JFK"
},
"departureTime": "2027-03-04T11:00:00-05:00",
"arrivalAirport": {
"@type": "Airport",
"name": "O'Hare International Airport",
"iataCode": "ORD"
},
"arrivalTime": "2027-03-05T13:25:00-06:00"
},
"checkinUrl": "http://united.com/onlinecheckin.html"
},
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "John Green"
},
"reservationFor": {
"@type": "Flight",
"flightNumber": "1050",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"departureAirport": {
"@type": "Airport",
"name": "O'Hare International Airport",
"iataCode": "ORD"
},
"departureTime": "2027-03-05T14:55:00-06:00",
"arrivalAirport": {
"@type": "Airport",
"name": "San Francisco Airport",
"iataCode": "SFO"
},
"arrivalTime": "2027-03-05T15:15:00-08:00"
},
"checkinUrl": "http://united.com/onlinecheckin.html"
},
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Eva Green"
},
"reservationFor": {
"@type": "Flight",
"flightNumber": "201",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"departureAirport": {
"@type": "Airport",
"name": "John F. Kennedy International Airport",
"iataCode": "JFK"
},
"departureTime": "2027-03-04T11:00:00-05:00",
"arrivalAirport": {
"@type": "Airport",
"name": "O'Hare International Airport",
"iataCode": "ORD"
},
"arrivalTime": "2027-03-05T13:25:00-06:00"
},
"checkinUrl": "http://united.com/onlinecheckin.html"
},
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Eva Green"
},
"reservationFor": {
"@type": "Flight",
"flightNumber": "1050",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"departureAirport": {
"@type": "Airport",
"name": "O'Hare International Airport",
"iataCode": "ORD"
},
"departureTime": "2027-03-05T14:55:00-06:00",
"arrivalAirport": {
"@type": "Airport",
"name": "San Francisco Airport",
"iataCode": "SFO"
},
"arrivalTime": "2027-03-05T15:15:00-08:00"
},
"checkinUrl": "http://united.com/onlinecheckin.html"
}
]
</script>
微資料
<div itemscope itemtype="http://schema.org/FlightReservation">
<meta itemprop="reservationNumber" content="RXJ34P"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="John Green"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="201"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="United"/>
<meta itemprop="iataCode" content="UA"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="John F. Kennedy International Airport"/>
<meta itemprop="iataCode" content="JFK"/>
</div>
<meta itemprop="departureTime" content="2027-03-04T11:00:00-05:00"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="O'Hare International Airport"/>
<meta itemprop="iataCode" content="ORD"/>
</div>
<meta itemprop="arrivalTime" content="2027-03-05T13:25:00-06:00"/>
</div>
<meta itemprop="modifiedTime" content="2027-03-01T08:30:00-08:00"/>
</div>
<div itemscope itemtype="http://schema.org/FlightReservation">
<meta itemprop="reservationNumber" content="RXJ34P"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="John Green"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="1050"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="United"/>
<meta itemprop="iataCode" content="UA"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="O'Hare International Airport"/>
<meta itemprop="iataCode" content="ORD"/>
</div>
<meta itemprop="departureTime" content="2027-03-05T14:55:00-06:00"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="San Francisco Airport"/>
<meta itemprop="iataCode" content="SFO"/>
</div>
<meta itemprop="arrivalTime" content="2027-03-05T15:15:00-08:00"/>
</div>
<meta itemprop="modifiedTime" content="2027-03-01T08:30:00-08:00"/>
</div>
<div itemscope itemtype="http://schema.org/FlightReservation">
<meta itemprop="reservationNumber" content="RXJ34P"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Eva Green"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="201"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="United"/>
<meta itemprop="iataCode" content="UA"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="John F. Kennedy International Airport"/>
<meta itemprop="iataCode" content="JFK"/>
</div>
<meta itemprop="departureTime" content="2027-03-04T11:00:00-05:00"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="O'Hare International Airport"/>
<meta itemprop="iataCode" content="ORD"/>
</div>
<meta itemprop="arrivalTime" content="2027-03-05T13:25:00-06:00"/>
</div>
<meta itemprop="modifiedTime" content="2027-03-01T08:30:00-08:00"/>
</div>
<div itemscope itemtype="http://schema.org/FlightReservation">
<meta itemprop="reservationNumber" content="RXJ34P"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Eva Green"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="1050"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="United"/>
<meta itemprop="iataCode" content="UA"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="O'Hare International Airport"/>
<meta itemprop="iataCode" content="ORD"/>
</div>
<meta itemprop="departureTime" content="2027-03-05T14:55:00-06:00"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="San Francisco Airport"/>
<meta itemprop="iataCode" content="SFO"/>
</div>
<meta itemprop="arrivalTime" content="2027-03-05T15:15:00-08:00"/>
</div>
<meta itemprop="modifiedTime" content="2027-03-01T08:30:00-08:00"/>
</div>
包含所有支援欄位的範例
以下是已填入所有支援欄位的範例,供您參考:
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"url": "http://cheapair.com/view/RXJ34P",
"underName": {
"@type": "Person",
"name": "Eva Green",
"email": "eva@mail.com"
},
"bookingAgent": {
"@type": "Organization",
"name": "Cheap Air Travel",
"url": "http://cheapair.com/"
},
"bookingTime": "2027-01-14T13:05:00-05:00",
"modifiedTime": "2027-03-14T13:05:00-05:00",
"programMembership": {
"@type": "ProgramMembership",
"memberNumber": "4BY123111",
"program": "StarAlliance"
},
"confirmReservationUrl": "http://cheapair.com/confirm?id=RXJ34P",
"cancelReservationUrl": "http://cheapair.com/cancel?id=RXJ34P",
"modifyReservationUrl": "http://cheapair.com/edit?id=RXJ34P",
"checkinUrl": "http://united.com/onlinecheckin.html",
"potentialAction": [
{
"@type": "ConfirmAction",
"target": "http://cheapair.com/confirm?id=RXJ34P"
},
{
"@type": "CancelAction",
"target": "http://cheapair.com/cancel?id=RXJ34P"
},
{
"@type": "EditAction",
"target": "http://cheapair.com/edit?id=RXJ34P"
},
{
"@type": "CheckInAction",
"target": "http://united.com/onlinecheckin.html"
}
],
"reservationFor": {
"@type": "Flight",
"flightNumber": "110",
"airline": {
"@type": "Airline",
"name": "United",
"iataCode": "UA"
},
"operatedBy": {
"@type": "Airline",
"name": "Continental Airlines",
"iataCode": "CO"
},
"departureAirport": {
"@type": "Airport",
"name": "San Francisco Airport",
"iataCode": "SFO"
},
"departureTime": "2027-03-04T20:15:00-08:00",
"departureGate": "11",
"departureTerminal": "B",
"arrivalAirport": {
"@type": "Airport",
"name": "John F. Kennedy International Airport",
"iataCode": "JFK"
},
"arrivalTime": "2027-03-05T06:30:00-05:00",
"arrivalGate": "32",
"arrivalTerminal": "B",
"webCheckinTime": "2027-03-03T20:00:00-08:00",
"boardingTime": "2027-03-04T19:15:00-08:00"
},
"ticketNumber": "123XYZ",
"ticketDownloadUrl": "http://cheapair.com/download/RXJ34P.pdf",
"ticketPrintUrl": "http://cheapair.com/print/RXJ34P.html",
"ticketToken": "qrCode:123456789",
"additionalTicketText": "Some ticket details, terms and conditions...",
"airplaneSeat": "9A",
"airplaneSeatClass": {
"@type": "AirplaneSeatClass",
"name": "Business"
},
"boardingGroup": "B"
}
</script>
微資料
<div itemscope itemtype="http://schema.org/FlightReservation">
<meta itemprop="reservationNumber" content="RXJ34P"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
<link itemprop="url" href="http://cheapair.com/view/RXJ34P"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Eva Green"/>
<meta itemprop="email" content="eva@mail.com"/>
</div>
<div itemprop="bookingAgent" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Cheap Air Travel"/>
<link itemprop="url" href="http://cheapair.com/"/>
</div>
<meta itemprop="bookingTime" content="2027-01-14T13:05:00-05:00"/>
<meta itemprop="modifiedTime" content="2027-03-14T13:05:00-05:00"/>
<div itemprop="programMembership" itemscope itemtype="http://schema.org/ProgramMembership">
<meta itemprop="memberNumber" content="4BY123111"/>
<meta itemprop="program" content="StarAlliance"/>
</div>
<link itemprop="confirmReservationUrl" href="http://cheapair.com/confirm?id=RXJ34P"/>
<link itemprop="cancelReservationUrl" href="http://cheapair.com/cancel?id=RXJ34P"/>
<link itemprop="modifyReservationUrl" href="http://cheapair.com/edit?id=RXJ34P"/>
<link itemprop="checkinUrl" href="http://united.com/onlinecheckin.html"/>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ConfirmAction">
<link itemprop="target" href="http://cheapair.com/confirm?id=RXJ34P"/>
</div>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/CancelAction">
<link itemprop="target" href="http://cheapair.com/cancel?id=RXJ34P"/>
</div>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/EditAction">
<link itemprop="target" href="http://cheapair.com/edit?id=RXJ34P"/>
</div>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/CheckInAction">
<link itemprop="target" href="http://united.com/onlinecheckin.html"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="110"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="United"/>
<meta itemprop="iataCode" content="UA"/>
</div>
<div itemprop="operatedBy" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="Continental Airlines"/>
<meta itemprop="iataCode" content="CO"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="San Francisco Airport"/>
<meta itemprop="iataCode" content="SFO"/>
</div>
<meta itemprop="departureTime" content="2027-03-04T20:15:00-08:00"/>
<meta itemprop="departureGate" content="11"/>
<meta itemprop="departureTerminal" content="B"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="John F. Kennedy International Airport"/>
<meta itemprop="iataCode" content="JFK"/>
</div>
<meta itemprop="arrivalTime" content="2027-03-05T06:30:00-05:00"/>
<meta itemprop="arrivalGate" content="32"/>
<meta itemprop="arrivalTerminal" content="B"/>
<meta itemprop="webCheckinTime" content="2027-03-03T20:00:00-08:00"/>
<meta itemprop="boardingTime" content="2027-03-04T19:15:00-08:00"/>
</div>
<meta itemprop="ticketNumber" content="123XYZ"/>
<link itemprop="ticketDownloadUrl" href="http://cheapair.com/download/RXJ34P.pdf"/>
<link itemprop="ticketPrintUrl" href="http://cheapair.com/print/RXJ34P.html"/>
<meta itemprop="ticketToken" content="qrCode:123456789"/>
<meta itemprop="additionalTicketText" content="Some ticket details, terms and conditions..."/>
<meta itemprop="airplaneSeat" content="9A"/>
<div itemprop="airplaneSeatClass" itemscope itemtype="http://schema.org/AirplaneSeatClass">
<meta itemprop="name" content="Business"/>
</div>
<meta itemprop="boardingGroup" content="B"/>
</div>
測試標記
您可以使用電子郵件標記測試工具驗證標記。貼上標記程式碼,然後按一下「驗證」按鈕,即可掃描內容並接收任何錯誤的報表。
規格
請查看電子郵件中的詳細資料,瞭解是否有任何屬性適用於您的航班預訂。標記這些額外屬性後,Google 就能向使用者顯示更豐富的航班預訂資訊。
FlightReservation
類型名稱:FlightReservation
擴充 Reservation
名稱 | 類型 | 說明 |
---|---|---|
additionalTicketText | Text | 登機證的其他資訊。 |
airplaneSeat | Text | 預留座位的位置 (例如27B)。 |
airplaneSeatClass | 飛機座位的艙等/艙等。 | |
airplaneSeatClass.name | Text | AirplaneSeatClass 的名稱。 |
boardingGroup | Text | 航空公司專屬的登機順序 / 偏好設定指標。 |
bookingAgent | 機構或個人 | 預訂服務代理或代理商。也接受字串 (例如「"")。 |
bookingAgent.name | Text | 代理程式/服務的名稱。 |
bookingAgent.url | 網址 | 代理人/服務的網站。 |
bookingTime | DateTime | 預訂日期。 |
modifiedTime | DateTime | (建議用於確認卡/搜尋答案) 上次修改預訂時間。 |
potentialAction | 、ConfirmAction、CancelAction 或 CheckInAction | 可對預訂執行的動作。 |
potentialAction.target | EntryPoint | 指定處理動作的處理常式,通常是簡單的網址。 |
programMembership | ProgramMembership | 任何適用於預訂的飛行常客、飯店會員方案等會員資格。 |
programMembership.memberNumber | Text | 會員的 ID。 |
programMembership.program | Text | 學程計畫名稱。 |
reservationFor (必填) |
航班 | 預訂航班。 |
reservationFor.airline (必要) |
航空公司 | 提供航班的航空公司。 |
reservationFor.airline.iataCode (必填) |
Text | 航空公司的 IATA 代碼。 |
reservationFor.airline.name (必填) |
Text | 航空公司名稱。 |
reservationFor.arrivalAirport (必填) |
機場 | 航班的最終目的地。也接受字串 (例如「John F. Kennedy International Airport JFK")。 |
reservationFor.arrivalAirport.iataCode (必填) |
Text | 機場的 IATA 代碼 (例如「UA」)。 |
reservationFor.arrivalAirport.name (必填) |
Text | 機場名稱。 |
reservationFor.arrivalGate | Text | 航班的機場抵達登機門 ID。 |
reservationFor.arrivalTerminal | Text | 抵達航廈的機場航廈。 |
reservationFor.arrivalTime (必要) |
DateTime | 預計到達時間。 |
reservationFor.boardingTime | DateTime | 登機時間。 |
reservationFor.departureAirport (Required) |
機場 | 航班的出發機場。也接受字串 (例如「San Francisco Airport SFO」)。 |
reservationFor.departureAirport.iataCode (必填) |
Text | 機場的 IATA 代碼 (例如「UA」)。 |
reservationFor.departureAirport.name (必填) |
Text | 機場名稱。 |
reservationFor.departureGate | Text | 航班的機場出發登機門 ID。 |
reservationFor.departureTerminal | Text | 出發航站的機場航站。 |
reservationFor.departureTime (必要) |
DateTime | 預計出發時間。 |
reservationFor.flightNumber (必填) |
Text | 航班 ID。 |
reservationFor.operatedBy | 航空公司 | 營運航班的航空公司。 |
reservationFor.operatedBy.iataCode | Text | 航空公司的 IATA 代碼。 |
reservationFor.operatedBy.name | Text | 航空公司名稱。 |
reservationFor.webCheckinTime | DateTime | 透過網路辦理入住手續的最早時間。 |
reservationNumber (必填) |
Text | 預訂的編號或 ID。 |
reservationStatus (必填) |
ReservationStatus | 預訂的目前狀態。 |
ticketDownloadUrl | 網址 | 可下載登機證的位置。 |
ticketNumber | Text | 票證的編號或 ID。 |
ticketPrintUrl | 網址 | 可列印登機證的位置。 |
ticketToken | 文字或網址 | 如果條碼圖片託管在您的網站上,欄位的值就是圖片的網址,或是條碼或 QR URI,例如「barcode128:AB34」(ISO-15417 條碼)、「qrCode:AB34」(QR code)、「aztecCode:AB34」(Aztec code)、「barcodeEAN:1234」(EAN code) 和「barcodeUPCA:1234」(UPCA code)。 |
underName (必填) |
機構或個人 | 乘客。 |
underName.email | Text | 電子郵件地址。 |
underName.name (必填) |
Text | 使用者姓名。 |
url | 網址 | 可查看預訂資訊的網頁。 |