@fboes/aerofly-data 1.0.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/.eslintrc.json +22 -0
- package/.prettierignore +4 -0
- package/LICENSE.txt +9 -0
- package/README.md +51 -0
- package/data/aircraft-liveries.json +2488 -0
- package/data/aircraft-select.html +41 -0
- package/data/aircraft.json +786 -0
- package/data/aircraft.md +43 -0
- package/data/airport-list.json +6677 -0
- package/data/airports.geojson +140601 -0
- package/dist/index.html +53 -0
- package/get-aircraft.js +266 -0
- package/get-airports.js +212 -0
- package/icons/af-airfield.svg +3 -0
- package/icons/af-closed.svg +3 -0
- package/icons/af-heliport.svg +3 -0
- package/icons/af-large_airbase.svg +3 -0
- package/icons/af-large_airport.svg +4 -0
- package/icons/af-medium_airbase.svg +3 -0
- package/icons/af-medium_airport.svg +3 -0
- package/icons/af-small_airbase.svg +3 -0
- package/icons/af-small_airport.svg +3 -0
- package/icons/navaid-fix.svg +3 -0
- package/icons/navaid-ndb.svg +3 -0
- package/icons/navaid-vor.svg +3 -0
- package/icons/navaid-waypoint.svg +3 -0
- package/package.json +27 -0
- package/tmp/.gitkeep +0 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"es2021": true,
|
|
4
|
+
"node": true
|
|
5
|
+
},
|
|
6
|
+
"extends": [
|
|
7
|
+
"eslint:recommended",
|
|
8
|
+
"eslint-config-prettier",
|
|
9
|
+
"plugin:jsdoc/recommended-error"
|
|
10
|
+
],
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"ecmaVersion": "latest",
|
|
13
|
+
"sourceType": "module"
|
|
14
|
+
},
|
|
15
|
+
"rules": {
|
|
16
|
+
"jsdoc/require-param-description": 0,
|
|
17
|
+
"jsdoc/require-returns-description": 0
|
|
18
|
+
},
|
|
19
|
+
"plugins": [
|
|
20
|
+
"jsdoc"
|
|
21
|
+
]
|
|
22
|
+
}
|
package/.prettierignore
ADDED
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2024 Frank Boës
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Aerofly Airports
|
|
2
|
+
|
|
3
|
+
This project contains data sets for airports and aircraft present in [Aerofly FS 4](https://www.aerofly.com/). This airport data is based on data from [OurAirports](https://ourairports.com/).
|
|
4
|
+
|
|
5
|
+
It also contains [airport and navigation aid icons](./icons/) suitable for maps.
|
|
6
|
+
|
|
7
|
+
## Enclosed files
|
|
8
|
+
|
|
9
|
+
The `data` directory contains the following files:
|
|
10
|
+
|
|
11
|
+
| File | Description |
|
|
12
|
+
| --------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
|
13
|
+
| [`aircraft-liveries.json`](./data/aircraft-liveries.json) | JSON file containing detailed information about all aircraft, including liveries. |
|
|
14
|
+
| [`aircraft-select.html`](./data/aircraft-select.html) | HTML snippet file containing all aircraft |
|
|
15
|
+
| [`aircraft.json`](./data/aircraft.json) | JSON file containing abbreviated information about all aircraft (without liveries). |
|
|
16
|
+
| [`aircraft.md`](./data/aircraft.md) | Markdown file containing abbreviated information about all aircraft (without liveries). |
|
|
17
|
+
| [`airport-list.json`](./data/airport-list.json) | JSON file containing an array of all ICAO codes. |
|
|
18
|
+
| [`airports.geojson`](./data/airports.geojson) | GeoJSON file containing the location of all airports in Aerofly FS 4. |
|
|
19
|
+
|
|
20
|
+
[](https://fboes.github.io/aerofly-data/dist/)
|
|
21
|
+
|
|
22
|
+
## Building
|
|
23
|
+
|
|
24
|
+
To generate a new list of all airports available in Aerofly FS 4:
|
|
25
|
+
|
|
26
|
+
1. Install this project
|
|
27
|
+
`npm install`
|
|
28
|
+
2. Download a list of all airports from https://ourairports.com/data/ to `tmp/airports.csv`.
|
|
29
|
+
`npm run fetch-csv`
|
|
30
|
+
3. Generate airport output files via:
|
|
31
|
+
`node ./get-airports.js 'C:\SteamLibrary\steamapps\common\Aerofly FS 4 Flight Simulator\scenery\airports_db'`
|
|
32
|
+
4. Generate aircraft output files via:
|
|
33
|
+
`node ./get-aircraft.js 'C:\SteamLibrary\steamapps\common\Aerofly FS 4 Flight Simulator\aircraft'`
|
|
34
|
+
|
|
35
|
+
## Status
|
|
36
|
+
|
|
37
|
+
[](https://github.com/fboes/aerofly-data)
|
|
38
|
+
[](https://www.npmjs.com/package/@fboes/aerofly-data)
|
|
39
|
+

|
|
40
|
+
|
|
41
|
+
## Legal stuff
|
|
42
|
+
|
|
43
|
+
Author: [Frank Boës](https://3960.org)
|
|
44
|
+
|
|
45
|
+
Copyright & license: See [LICENSE.txt](LICENSE.txt)
|
|
46
|
+
|
|
47
|
+
This tool is NOT affiliated with, endorsed, or sponsored by IPACS GbR. As stated in the [LICENSE.txt](LICENSE.txt), this tool comes with no warranty.
|
|
48
|
+
|
|
49
|
+
The base data for geo locations was taken from [OurAirports](https://ourairports.com/), which is licensed as: "All data is released to the Public Domain, and comes with no guarantee of accuracy or fitness for use."
|
|
50
|
+
|
|
51
|
+
The icons are based on [Maki icons](https://github.com/mapbox/maki), which are licensed via CC0 1.0 Universal.
|