all-airports
Version:
Serves as an independent data scraping module, complete with ontology and full scraping ability for the airports of the world
34 lines (33 loc) • 1.18 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var logger_1 = require("../utils/logger");
// const noop = () => { /* Noop */ };
var noop = function (a, b) { logger_1.consoleLog(a + " is " + Math.floor(b * 100) + " done"); };
var GlobalStore = /** @class */ (function () {
function GlobalStore() {
this.LOG_FILE_NAME = '';
this.LOG_STREAM = null;
this.countriesInList = [];
this.debugLogger = logger_1.consoleLog;
this.errorLogger = logger_1.consoleError;
this.progressLogger = noop;
this.airlinesNotFound = [];
this.airportsNotFound = [];
this.airportTable = {};
this.failedAirlines = [];
this.failedAirports = [];
this.jsonLD = [];
this.jsonNT = '';
this.airports = {};
this.airlines = {};
this.countries = {};
this.elevations = {};
this.helicopterLandingZones = {};
this.locations = {};
this.municipalities = {};
this.runways = {};
this.surfaceMaterials = {};
}
return GlobalStore;
}());
exports.store = new GlobalStore();