@fboes/aerofly-data 1.6.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/data/aircraft-liveries.json +44 -0
- package/data/aircraft.json +88 -44
- package/data/aircraft.json.d.ts +4 -0
- package/data/airport-coordinates-object.json +15734 -15704
- package/data/airport-coordinates.json +7846 -7841
- package/data/airport-list.json +12 -7
- package/data/airports-unmatched.md +0 -4
- package/data/airports.geojson +300 -194
- package/get-airports.js +4 -3
- package/index.js +0 -0
- package/package.json +1 -1
- package/src/aircraft-functions.js +2 -0
package/get-airports.js
CHANGED
|
@@ -97,8 +97,8 @@ for (const airportsRecord of airportsRecords) {
|
|
|
97
97
|
icaoCoordinatesObject.push({
|
|
98
98
|
code: bestCode,
|
|
99
99
|
name: airportsRecord[3],
|
|
100
|
-
lat: airportsRecord[4],
|
|
101
|
-
lon: airportsRecord[5],
|
|
100
|
+
lat: Number(airportsRecord[4]),
|
|
101
|
+
lon: Number(airportsRecord[5]),
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -159,7 +159,7 @@ process.stdout.write(`ICAO coordinates list written to \x1b[92m${icaoCoordinates
|
|
|
159
159
|
// Write the ICAO codes with airport names and geocoordinates to airport-coordinates-object.json
|
|
160
160
|
const icaoCoordinatesObjectFilePath = path.join(outputDirectory, "airport-coordinates-object.json");
|
|
161
161
|
fs.writeFileSync(icaoCoordinatesObjectFilePath, JSON.stringify(icaoCoordinatesObject, null, 2) + "\n", "utf-8");
|
|
162
|
-
process.stdout.write(`ICAO coordinates
|
|
162
|
+
process.stdout.write(`ICAO coordinates object list written to \x1b[92m${icaoCoordinatesObjectFilePath}\x1b[0m\n`);
|
|
163
163
|
|
|
164
164
|
// Write the missing codes to airports-unmatched.md
|
|
165
165
|
const unmatchedFilePath = path.join(outputDirectory, "airports-unmatched.md");
|
|
@@ -190,6 +190,7 @@ if (aeroflyAirports.size > 0) {
|
|
|
190
190
|
).toFixed(1)}%\x1b[0m
|
|
191
191
|
Missing matches for Aerofly FS4 Airport codes:
|
|
192
192
|
\x1b[90m> ${[...aeroflyAirports]
|
|
193
|
+
.sort()
|
|
193
194
|
.map((a) => {
|
|
194
195
|
return a[0];
|
|
195
196
|
})
|
package/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ import * as path from "path";
|
|
|
18
18
|
* maximumPayloadKg?: number,
|
|
19
19
|
* maximumTakeoffMassKg?: number,
|
|
20
20
|
* operatingEmptyMassKg?: number,
|
|
21
|
+
* maximumPersonsOnBoard?: number,
|
|
21
22
|
* }}
|
|
22
23
|
*/
|
|
23
24
|
/**
|
|
@@ -239,6 +240,7 @@ export const parseAircraft = (tmdFileContent) => {
|
|
|
239
240
|
maximumPayloadKg: Number(parseTmdLine(tmdFileContent, "MaximumPayload")) || undefined,
|
|
240
241
|
maximumTakeoffMassKg: Number(parseTmdLine(tmdFileContent, "MaximumTakeoffMass")) || undefined,
|
|
241
242
|
operatingEmptyMassKg: Number(parseTmdLine(tmdFileContent, "OperatingEmptyMass")) || undefined,
|
|
243
|
+
maximumPersonsOnBoard: Number(parseTmdLine(tmdFileContent, "MaximumPersonsOnBoard")) || undefined,
|
|
242
244
|
};
|
|
243
245
|
};
|
|
244
246
|
|