vatsim-api

A wrapper around the VATSIM API

Usage no npm install needed!

<script type="module">
  import vatsimApi from 'https://cdn.skypack.dev/vatsim-api';
</script>

README

VATSIM API

A wrapper around the VATSIM API

GitHub file size in bytes">


Installation

To install using npm run the following command




Usage

The following lines of code will import vatsim-api and will console log all the data from VATSIM.

You can do whatever you want with this data but vatsim-api includes some functions to make things easier for you.



getAllData

This will get all of the data from VATSIM and log it to the console.



getPilots

This will get all of the pilots currently connected to the VATSIM network.



getPilotByCallsign

This will get a single pilot with the callsign that you specify.



getPilotByCID

This will get a single pilot with the CID that you specify.



getPilotsByTransponder

This will get all of the pilots with the transponder code that you specify.



getPilotsByAircraft

This will get all of the pilots with the aircraft that you specify.



getPilotsAtAltitude

This will get all of the pilots flying at the altitude that you specify.



getPilotsBetweenAltitudes

This will get all of the pilots flying between the altitudes that you specify.



getPilotsAtSpeed

This will get all of the pilots flying at the speed that you specify.



getPilotsBetweenSpeeds

This will get all of the pilots flying between the speeds that you specify.



getDeparturesFrom

This will get all of the pilots who are departing (or have departed) from the airport that you specify.



getArrivalsInto

This will get all of the pilots who are arriving (or have arrived) into the airport that you specify.



getControllers

This will get all of the controllers currently online on the VATSIM network.



getATIS

This will get all of the ATIS stations currently online on the VATSIM network.



ratings

This will get all of the VATSIM pilot ratings.



controllerTypes

This will get all of the VATSIM controller types.



servers

This will get all of the VATSIM servers.