UNPKG

all-airports

Version:

Serves as an independent data scraping module, complete with ontology and full scraping ability for the airports of the world

22 lines (21 loc) 1.11 kB
"use strict"; // import * as Logger from 'node_modules/simple-node-logger/index'; Object.defineProperty(exports, "__esModule", { value: true }); var globalStore_1 = require("../constants/globalStore"); var load_file_1 = require("./load-file"); function loadFiles() { var LOG_FILE_NAME = 'logs/log-' + ((new Date()).toISOString()).replace(':', '-').replace(':', '-').replace('.', '-').trim() + '.log'; // store.LOG_STREAM = Logger.createSimpleFileLogger(LOG_FILE_NAME); globalStore_1.store.LOG_FILE_NAME = LOG_FILE_NAME; load_file_1.loadFile('countries', 'countries', true); load_file_1.loadFile('airlines', 'airlines'); load_file_1.loadFile('airports', 'airports'); load_file_1.loadFile('elevations', 'elevations'); load_file_1.loadFile('helicopterLandingZones', 'helicopterLandingZones'); load_file_1.loadFile('locations', 'locations'); load_file_1.loadFile('municipalities', 'municipalities'); load_file_1.loadFile('runways', 'runways'); load_file_1.loadFile('surfaceMaterials', 'surfaceMaterials'); } exports.loadFiles = loadFiles; ;