Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Flight

import type { Flight } from "https://googleapis.deno.dev/v1/travelimpactmodel:v1.ts";

All details related to a single request item for a direct flight emission estimates.

interface Flight {
departureDate?: Date;
destination?: string;
flightNumber?: number;
operatingCarrierCode?: string;
origin?: string;
}

§Properties

§
departureDate?: Date
[src]

Required. Date of the flight in the time zone of the origin airport. Must be a date in the present or future.

§
destination?: string
[src]

Required. IATA airport code for flight destination, e.g. "JFK".

§
flightNumber?: number
[src]

Required. Flight number, e.g. 324.

§
operatingCarrierCode?: string
[src]

Required. IATA carrier code, e.g. "AA".

§
origin?: string
[src]

Required. IATA airport code for flight origin, e.g. "LHR".