使用這個類型即可宣告預訂航空旅遊的預訂服務。
用途
以下是 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>
簽到按鈕
在 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
延長預留項目
名稱 | 類型 | 說明 |
---|---|---|
additionalTicketText | 文字 | 登機證的其他資訊。 |
airplaneSeat | 文字 | 預留席位 (例如27B)。 |
airplaneSeatClass | 飛機座椅/艙等。 | |
airplaneSeatClass.name | 文字 | AirplaneSeatClass 的名稱。 |
boardingGroup | 文字 | 航班訂單 / 偏好等航空公司專屬指標。 |
bookingAgent | 機構或 Person | 預訂代理商或代理商。也接受字串 (例如「」)。 |
bookingAgent.name | 文字 | 虛擬服務專員/服務的名稱。 |
bookingAgent.url | 網址 | 服務專員/服務的網站。 |
bookingTime | DateTime | 訂位日期。 |
modifiedTime | DateTime | (適用於確認資訊卡/搜尋答案) 預訂的上次修改時間。 |
potentialAction | 、ConfirmAction、CancelAction 或 CheckInAction | 可對預留項目執行的動作。 |
potentialAction.target | EntryPoint | 指定處理動作的處理常式,通常是簡單的網址。 |
programMembership | ProgramMembership | 系統會將常客傳單、飯店會員方案等使用者的會員資格套用至預訂。 |
programMembership.memberNumber | 文字 | 會員的 ID。 |
programMembership.program | 文字 | 學程計畫名稱。 |
reservationFor (必要) |
航班 | 預訂的航班。 |
ReservationFor.airline (必填) |
航空公司 | 提供航班的航空公司。 |
ReservationFor.airline.iataCode (必填) |
文字 | 航空公司的 IATA 代碼。 |
ReservationFor.airline.name (必填) |
文字 | 航空公司名稱。 |
ReservationFor.arrivalAirport (必填) |
機場 | 航班的最終目的地。也接受字串,例如「John F.是 JFK」)。 |
ReservationFor.arrivalAirport.iataCode (必填) |
文字 | 機場的 IATA 代碼 (例如「UA」)。 |
ReservationFor.arrivalAirport.name (必填) |
文字 | 機場名稱。 |
reservationFor.arrivalGate | 文字 | 航班抵達登機門的 ID。 |
reservationFor.arrivalTerminal | 文字 | 抵達閘門的機場航廈。 |
ReservationFor.arrivalTime (必填) |
DateTime | 預計抵達時間。 |
reservationFor.boardingTime | DateTime | 登機時間。 |
ReservationFor.departureAirport departureAirport | 機場 | 航班的出發機場。也接受字串 (例如「San Francisco Airport SFO」)。 |
預訂 For.DepartAirport.iataCode (必填) |
文字 | 機場的 IATA 代碼 (例如「UA」)。 |
ReservationFor.DepartAirport.name (必填) |
文字 | 機場名稱。 |
reservationFor.departureGate | 文字 | 航班登機門的 ID。 |
reservationFor.departureTerminal | 文字 | 發車時刻的機場航廈。 |
ReservationFor.departureTime departureTime | DateTime | 預計出發時間。 |
ReservationFor.flightNumber (必填) |
文字 | 航班 ID。 |
reservationFor.operatedBy | 航空公司 | 營運航班的航空公司。 |
reservationFor.operatedBy.iataCode | 文字 | 航空公司的 IATA 代碼。 |
reservationFor.operatedBy.name | 文字 | 航空公司名稱。 |
reservationFor.webCheckinTime | DateTime | 網頁登記時間的最早時間。 |
reservationNumber (必要) |
文字 | 預留項目的 ID 或 ID。 |
reservationStatus (必要) |
ReservationStatus | 預留項目的目前狀態。 |
ticketDownloadUrl | 網址 | 可以下載登機證的位置。 |
ticketNumber | 文字 | 票券的編號或 ID。 |
ticketPrintUrl | 網址 | 可以列印登機證的位置。 |
ticketToken | Text 或 URL | 如果條碼圖片是由您的網站代管,該欄位的值就是圖片的網址,或是條碼或 QR code (例如「barcode128:AB34」)(ISO-15417 條碼)、「qrCode:AB34」(QR code)、「aztecCode:AB34」(Aztec code)、「barcodeEAN:1234」(EAN 代碼) 和「barcodeUPCA:1234」(UPCA 代碼)。 |
underName (必要) |
機構或 Person | 乘客。 |
underName.email | 文字 | 電子郵件地址。 |
UnderName.name (必填) |
文字 | 人名。 |
網址 | 網址 | 可以檢視預訂項目的網頁。 |