Utilities for interacting with Gliding Federation of Australia files and systems.
- Repository https://github.com/CAELAero/gfa-utils
- API Documentation: https://caelaero.github.io/gfa-utils/
npm install @cael-aero/gfa-utils --save
yarn add @cael-aero/gfa-utils
bower install @cael-aero/gfa-utils --save
var gfaUtils = require('@cael-aero/gfa-utils');
var data = gfaUtils.loadAllDirectives('somefile.xls');
import { AircraftDirectiveData, DirectivesLoader } from '@cael-aero/gfa-utils';
let data:AircraftDirectiveData[] = DirectivesLoader.loadAllDirectives('somefile.xls');
The second argument provides the option for an exact match of the type certificate. Variations are not returned. Eg looking for a DG 300 will not return anything that is registered for a DG303 Elan. This will load all matching type certificates, whether currently active or not.
let data:AircraftDirectiveData[] = DirectivesLoader.loadAllDirectives('somefile.xls', "Standard Cirrus");
If you are only interested in the currently active ADs for, then the third option can be used to request only providing the current list.
let data:AircraftDirectiveData[] = DirectivesLoader.loadAllDirectives('somefile.xls', "Standard Cirrus", true);
You can request all currently active ADs regardless of Type Certificate, by leaving the second argument as null
let data:AircraftDirectiveData[] = DirectivesLoader.loadAllDirectives('somefile.xls', null, true);
Using an empty string will also have the same effect.
This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
CASA Utils for CASA Data