Class OpenSkyApi

Constructors

Properties

_axios: Axios
authenticated: boolean = false
lastRequestTime: Record<RequestType, null | number> = ...
API_ROOT: string = ...
FLIGHTS_BY_AIRCRAFT_URI: string = ...
FLIGHTS_BY_ARRIVAL_URI: string = ...
FLIGHTS_BY_DEPARTURE_URI: string = ...
FLIGHTS_URI: string = ...
HOST: string = 'opensky-network.org'
MY_STATES_URI: string = ...
STATES_URI: string = ...

Methods

  • Parameters

    • type: RequestType
    • timeDiffAuth: number
    • timeDiffNoAuth: number

    Returns boolean

  • Parameters

    • beginTime: number
    • endTime: number

    Returns Promise<Flight[]>

  • Parameters

    • icao24: string
    • beginTime: number
    • endTime: number

    Returns Promise<Flight[]>

  • Parameters

    • airport: string
    • beginTime: number
    • endTime: number

    Returns Promise<Flight[]>

  • Parameters

    • airport: string
    • beginTime: number
    • endTime: number

    Returns Promise<Flight[]>

  • Parameters

    • time: null | number
    • icao24: null | string[]
    • serials: number[]

    Returns null | Promise<{
        states: StateVector[];
        time: number;
    }>

  • Parameters

    • url: string
    • nvps: Record<string, string>[]

    Returns Promise<Flight[]>

  • Parameters

    • url: string
    • nvps: Record<string, string>[]

    Returns Promise<{
        states: StateVector[];
        time: number;
    }>

  • Parameters

    • time: null | number
    • icao24: null | string[]
    • Optional bbox: null | BoundingBox

    Returns null | Promise<{
        states: StateVector[];
        time: number;
    }>

Generated using TypeDoc