Skip to content

micahke/vatsim-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vatsim Stats

This is a basic wrapper for the Vatsim API, which is not particularly well documented. Documentation and development for this package is still in progress but over 30 usefull endpoints are planned, giving you access to the full scope of data that the Vatsim platform has to offer.

npm version install size

Installation

From the project directory, run npm install vatsim-stats. Make sure npm is already configured for your project

Endpoints

Metadata

Unique Users

This function returns an integer representing all unique users currently connected to the Vatsim network.

const vatsim_stats = require('vatsim-stats');
vatsim_stats.metadata.getUniqueUsers().then((response) => {
    console.log(response);
})

Airports

Get Full Airport MetaData

This function simply gets all metadata in JSON format including arrivals, departures, and amount of controllers.

const vatsim_stats = require('vatsim-stats');
vatsim_stats.apt_data.getAllAiportData("KSFO").then((response) => {
    console.log(response); // json object
})

About

npm stats package for vatsim data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published