@fboes/aerofly-data 1.6.0 → 1.7.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/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 objrct list written to \x1b[92m${icaoCoordinatesObjectFilePath}\x1b[0m\n`);
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fboes/aerofly-data",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "This project contains data sets for airports and aircraft present in Aerofly FS 4.",
5
5
  "main": "index.js",
6
6
  "scripts": {