航班预订

使用此类型声明航空旅行预订。

使用场景

以下用例显示了如何使用 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 OrganizationPerson 预订代理机构或预订代理机构。它还接受字符串(例如 ")。
bookingAgent.name 文本 代理/服务的名称。
bookingAgent.url 网址 代理/服务的网站。
bookingTime DateTime 预订日期。
modifiedTime DateTime (推荐用于确认卡/搜索答案)上次修改预订的时间。
potentialAction ConfirmActionCancelActionCheckInAction 可对预留执行的操作。
potentialAction.target EntryPoint 指定用于处理操作的处理程序,通常是一个简单的网址。
programMembership ProgramMembership 通过预订获得的飞行常客奖励计划、酒店会员回馈活动等会员资格。
programMembership.memberNumber 文本 成员资格的标识符。
programMembership.program 文本 课程的名称。
reservationFor
(必需)
航班 所预订的航班对应的航班。
reservationFor.airline
(必需)
航空公司 提供航班的航空公司。
subscriptionFor.airline.iataCode
(必需)
文本 航空公司的 IATA 代码。
subscriptionFor.airline.name
(必需)
文本 航空公司的名称。
bookingFor.arrivalAirport
(必需)
机场 航班的最终目的地。它还接受字符串(例如“John F.肯尼迪国际机场 JFK”)。
reservationFor.arrivalAirport.iataCode
(必需)
文本 机场的 IATA 代码(例如“UA”)。
bookingFor.arrivalAirport.name
(必需)
文本 机场的名称。
reservationFor.arrivalGate 文本 航班机场到达登机口标识符。
reservationFor.arrivalTerminal 文本 arrivalGate 的机场航站楼。
subscriptionFor.arrivalTime
(必需)
DateTime 预计到达时间。
reservationFor.boardingTime DateTime 开始登机的时间。
bookingFor.departureAirport
(必需)
机场 航班的出发机场。同样接受字符串(例如“旧金山机场 SFO”)。
bookingFor.engagementAirport.iataCode
(必需)
文本 机场的 IATA 代码(例如“UA”)。
reservationFor.departureAirport.name
(必需)
文本 机场的名称。
reservationFor.departureGate 文本 航班的机场起飞登机口标识符。
reservationFor.departureTerminal 文本 LeaveGate 的机场航站楼。
subscriptionFor.departureTime
(必需)
DateTime 预计起飞时间。
reservationFor.flightNumber
(必需)
文本 航班标识符。
reservationFor.operatedBy 航空公司 运营航班的航空公司。
reservationFor.operatedBy.iataCode 文本 航空公司的 IATA 代码。
reservationFor.operatedBy.name 文本 航空公司的名称。
reservationFor.webCheckinTime DateTime 网络签入的最早时间。
reservationNumber
(必需)
文本 预留的编号或 ID。
reservationStatus
(必需)
ReservationStatus 预留的当前状态。
ticketDownloadUrl 网址 可以下载登机牌的国家/地区。
ticketNumber 文本 门票的编号或 ID。
ticketPrintUrl 网址 可以打印登机牌的地方。
ticketToken 文字网址 如果条形码图片托管在您的网站上,则此字段的值为该图片的网址或者条形码或二维码 URI,例如“barcode128:AB34”(ISO-15417 条形码)、"qrCode:AB34"(二维码)、"aztecCode:AB34"(阿兹特克代码),"barcodeEAN:1234"(EAN 代码)和“barcodeUPCA:1234”(UPCA 代码)。
underName
(必需)
OrganizationPerson 乘客。
underName.email 文本 电子邮件地址。
underName.name
(必需)
文本 此人的姓名。
url 网址 可查看预订信息的网页。