From 784b03e7104b71d24d0e60ab05699a0bd22a0eca Mon Sep 17 00:00:00 2001 From: Timm Ortlofff Date: Sat, 24 Jan 2026 17:01:06 +0100 Subject: [PATCH 1/7] Rename node server to `server-node` --- frontend/{server => server-node}/.vscode/extensions.json | 0 frontend/{server => server-node}/.vscode/launch.json | 0 frontend/{server => server-node}/.vscode/tasks.json | 0 frontend/{server => server-node}/cert/default.crt | 0 frontend/{server => server-node}/cert/default.key | 0 frontend/{server => server-node}/client.js | 0 frontend/{server => server-node}/client.vbs | 0 .../{server => server-node}/databases/airbases/afghanistan.json | 0 frontend/{server => server-node}/databases/airbases/caucasus.json | 0 .../{server => server-node}/databases/airbases/falklands.json | 0 frontend/{server => server-node}/databases/airbases/kola.json | 0 frontend/{server => server-node}/databases/airbases/marianas.json | 0 frontend/{server => server-node}/databases/airbases/nevada.json | 0 frontend/{server => server-node}/databases/airbases/normandy.json | 0 .../{server => server-node}/databases/airbases/persiangulf.json | 0 frontend/{server => server-node}/databases/airbases/sinaimap.json | 0 frontend/{server => server-node}/databases/airbases/syria.json | 0 .../{server => server-node}/databases/airbases/thechannel.json | 0 frontend/{server => server-node}/package.json | 0 frontend/{server => server-node}/scripts/build-release.bat | 0 frontend/{server => server-node}/scripts/create-mock-dcs.bat | 0 frontend/{server => server-node}/scripts/demo-server.bat | 0 frontend/{server => server-node}/server.vbs | 0 frontend/{server => server-node}/src/app.ts | 0 frontend/{server => server-node}/src/audio/audiobackend.ts | 0 frontend/{server => server-node}/src/audio/audiopacket.ts | 0 frontend/{server => server-node}/src/audio/defaultdata.ts | 0 frontend/{server => server-node}/src/audio/srshandler.ts | 0 frontend/{server => server-node}/src/demo/demo.ts | 0 frontend/{server => server-node}/src/demo/www.ts | 0 frontend/{server => server-node}/src/routes/admin.ts | 0 frontend/{server => server-node}/src/routes/api/airbases.ts | 0 frontend/{server => server-node}/src/routes/api/databases.ts | 0 frontend/{server => server-node}/src/routes/api/elevation.ts | 0 frontend/{server => server-node}/src/routes/api/speech.ts | 0 frontend/{server => server-node}/src/routes/resources.ts | 0 frontend/{server => server-node}/src/utils.ts | 0 frontend/{server => server-node}/src/www.ts | 0 frontend/{server => server-node}/tsconfig.json | 0 39 files changed, 0 insertions(+), 0 deletions(-) rename frontend/{server => server-node}/.vscode/extensions.json (100%) rename frontend/{server => server-node}/.vscode/launch.json (100%) rename frontend/{server => server-node}/.vscode/tasks.json (100%) rename frontend/{server => server-node}/cert/default.crt (100%) rename frontend/{server => server-node}/cert/default.key (100%) rename frontend/{server => server-node}/client.js (100%) rename frontend/{server => server-node}/client.vbs (100%) rename frontend/{server => server-node}/databases/airbases/afghanistan.json (100%) rename frontend/{server => server-node}/databases/airbases/caucasus.json (100%) rename frontend/{server => server-node}/databases/airbases/falklands.json (100%) rename frontend/{server => server-node}/databases/airbases/kola.json (100%) rename frontend/{server => server-node}/databases/airbases/marianas.json (100%) rename frontend/{server => server-node}/databases/airbases/nevada.json (100%) rename frontend/{server => server-node}/databases/airbases/normandy.json (100%) rename frontend/{server => server-node}/databases/airbases/persiangulf.json (100%) rename frontend/{server => server-node}/databases/airbases/sinaimap.json (100%) rename frontend/{server => server-node}/databases/airbases/syria.json (100%) rename frontend/{server => server-node}/databases/airbases/thechannel.json (100%) rename frontend/{server => server-node}/package.json (100%) rename frontend/{server => server-node}/scripts/build-release.bat (100%) rename frontend/{server => server-node}/scripts/create-mock-dcs.bat (100%) rename frontend/{server => server-node}/scripts/demo-server.bat (100%) rename frontend/{server => server-node}/server.vbs (100%) rename frontend/{server => server-node}/src/app.ts (100%) rename frontend/{server => server-node}/src/audio/audiobackend.ts (100%) rename frontend/{server => server-node}/src/audio/audiopacket.ts (100%) rename frontend/{server => server-node}/src/audio/defaultdata.ts (100%) rename frontend/{server => server-node}/src/audio/srshandler.ts (100%) rename frontend/{server => server-node}/src/demo/demo.ts (100%) rename frontend/{server => server-node}/src/demo/www.ts (100%) rename frontend/{server => server-node}/src/routes/admin.ts (100%) rename frontend/{server => server-node}/src/routes/api/airbases.ts (100%) rename frontend/{server => server-node}/src/routes/api/databases.ts (100%) rename frontend/{server => server-node}/src/routes/api/elevation.ts (100%) rename frontend/{server => server-node}/src/routes/api/speech.ts (100%) rename frontend/{server => server-node}/src/routes/resources.ts (100%) rename frontend/{server => server-node}/src/utils.ts (100%) rename frontend/{server => server-node}/src/www.ts (100%) rename frontend/{server => server-node}/tsconfig.json (100%) diff --git a/frontend/server/.vscode/extensions.json b/frontend/server-node/.vscode/extensions.json similarity index 100% rename from frontend/server/.vscode/extensions.json rename to frontend/server-node/.vscode/extensions.json diff --git a/frontend/server/.vscode/launch.json b/frontend/server-node/.vscode/launch.json similarity index 100% rename from frontend/server/.vscode/launch.json rename to frontend/server-node/.vscode/launch.json diff --git a/frontend/server/.vscode/tasks.json b/frontend/server-node/.vscode/tasks.json similarity index 100% rename from frontend/server/.vscode/tasks.json rename to frontend/server-node/.vscode/tasks.json diff --git a/frontend/server/cert/default.crt b/frontend/server-node/cert/default.crt similarity index 100% rename from frontend/server/cert/default.crt rename to frontend/server-node/cert/default.crt diff --git a/frontend/server/cert/default.key b/frontend/server-node/cert/default.key similarity index 100% rename from frontend/server/cert/default.key rename to frontend/server-node/cert/default.key diff --git a/frontend/server/client.js b/frontend/server-node/client.js similarity index 100% rename from frontend/server/client.js rename to frontend/server-node/client.js diff --git a/frontend/server/client.vbs b/frontend/server-node/client.vbs similarity index 100% rename from frontend/server/client.vbs rename to frontend/server-node/client.vbs diff --git a/frontend/server/databases/airbases/afghanistan.json b/frontend/server-node/databases/airbases/afghanistan.json similarity index 100% rename from frontend/server/databases/airbases/afghanistan.json rename to frontend/server-node/databases/airbases/afghanistan.json diff --git a/frontend/server/databases/airbases/caucasus.json b/frontend/server-node/databases/airbases/caucasus.json similarity index 100% rename from frontend/server/databases/airbases/caucasus.json rename to frontend/server-node/databases/airbases/caucasus.json diff --git a/frontend/server/databases/airbases/falklands.json b/frontend/server-node/databases/airbases/falklands.json similarity index 100% rename from frontend/server/databases/airbases/falklands.json rename to frontend/server-node/databases/airbases/falklands.json diff --git a/frontend/server/databases/airbases/kola.json b/frontend/server-node/databases/airbases/kola.json similarity index 100% rename from frontend/server/databases/airbases/kola.json rename to frontend/server-node/databases/airbases/kola.json diff --git a/frontend/server/databases/airbases/marianas.json b/frontend/server-node/databases/airbases/marianas.json similarity index 100% rename from frontend/server/databases/airbases/marianas.json rename to frontend/server-node/databases/airbases/marianas.json diff --git a/frontend/server/databases/airbases/nevada.json b/frontend/server-node/databases/airbases/nevada.json similarity index 100% rename from frontend/server/databases/airbases/nevada.json rename to frontend/server-node/databases/airbases/nevada.json diff --git a/frontend/server/databases/airbases/normandy.json b/frontend/server-node/databases/airbases/normandy.json similarity index 100% rename from frontend/server/databases/airbases/normandy.json rename to frontend/server-node/databases/airbases/normandy.json diff --git a/frontend/server/databases/airbases/persiangulf.json b/frontend/server-node/databases/airbases/persiangulf.json similarity index 100% rename from frontend/server/databases/airbases/persiangulf.json rename to frontend/server-node/databases/airbases/persiangulf.json diff --git a/frontend/server/databases/airbases/sinaimap.json b/frontend/server-node/databases/airbases/sinaimap.json similarity index 100% rename from frontend/server/databases/airbases/sinaimap.json rename to frontend/server-node/databases/airbases/sinaimap.json diff --git a/frontend/server/databases/airbases/syria.json b/frontend/server-node/databases/airbases/syria.json similarity index 100% rename from frontend/server/databases/airbases/syria.json rename to frontend/server-node/databases/airbases/syria.json diff --git a/frontend/server/databases/airbases/thechannel.json b/frontend/server-node/databases/airbases/thechannel.json similarity index 100% rename from frontend/server/databases/airbases/thechannel.json rename to frontend/server-node/databases/airbases/thechannel.json diff --git a/frontend/server/package.json b/frontend/server-node/package.json similarity index 100% rename from frontend/server/package.json rename to frontend/server-node/package.json diff --git a/frontend/server/scripts/build-release.bat b/frontend/server-node/scripts/build-release.bat similarity index 100% rename from frontend/server/scripts/build-release.bat rename to frontend/server-node/scripts/build-release.bat diff --git a/frontend/server/scripts/create-mock-dcs.bat b/frontend/server-node/scripts/create-mock-dcs.bat similarity index 100% rename from frontend/server/scripts/create-mock-dcs.bat rename to frontend/server-node/scripts/create-mock-dcs.bat diff --git a/frontend/server/scripts/demo-server.bat b/frontend/server-node/scripts/demo-server.bat similarity index 100% rename from frontend/server/scripts/demo-server.bat rename to frontend/server-node/scripts/demo-server.bat diff --git a/frontend/server/server.vbs b/frontend/server-node/server.vbs similarity index 100% rename from frontend/server/server.vbs rename to frontend/server-node/server.vbs diff --git a/frontend/server/src/app.ts b/frontend/server-node/src/app.ts similarity index 100% rename from frontend/server/src/app.ts rename to frontend/server-node/src/app.ts diff --git a/frontend/server/src/audio/audiobackend.ts b/frontend/server-node/src/audio/audiobackend.ts similarity index 100% rename from frontend/server/src/audio/audiobackend.ts rename to frontend/server-node/src/audio/audiobackend.ts diff --git a/frontend/server/src/audio/audiopacket.ts b/frontend/server-node/src/audio/audiopacket.ts similarity index 100% rename from frontend/server/src/audio/audiopacket.ts rename to frontend/server-node/src/audio/audiopacket.ts diff --git a/frontend/server/src/audio/defaultdata.ts b/frontend/server-node/src/audio/defaultdata.ts similarity index 100% rename from frontend/server/src/audio/defaultdata.ts rename to frontend/server-node/src/audio/defaultdata.ts diff --git a/frontend/server/src/audio/srshandler.ts b/frontend/server-node/src/audio/srshandler.ts similarity index 100% rename from frontend/server/src/audio/srshandler.ts rename to frontend/server-node/src/audio/srshandler.ts diff --git a/frontend/server/src/demo/demo.ts b/frontend/server-node/src/demo/demo.ts similarity index 100% rename from frontend/server/src/demo/demo.ts rename to frontend/server-node/src/demo/demo.ts diff --git a/frontend/server/src/demo/www.ts b/frontend/server-node/src/demo/www.ts similarity index 100% rename from frontend/server/src/demo/www.ts rename to frontend/server-node/src/demo/www.ts diff --git a/frontend/server/src/routes/admin.ts b/frontend/server-node/src/routes/admin.ts similarity index 100% rename from frontend/server/src/routes/admin.ts rename to frontend/server-node/src/routes/admin.ts diff --git a/frontend/server/src/routes/api/airbases.ts b/frontend/server-node/src/routes/api/airbases.ts similarity index 100% rename from frontend/server/src/routes/api/airbases.ts rename to frontend/server-node/src/routes/api/airbases.ts diff --git a/frontend/server/src/routes/api/databases.ts b/frontend/server-node/src/routes/api/databases.ts similarity index 100% rename from frontend/server/src/routes/api/databases.ts rename to frontend/server-node/src/routes/api/databases.ts diff --git a/frontend/server/src/routes/api/elevation.ts b/frontend/server-node/src/routes/api/elevation.ts similarity index 100% rename from frontend/server/src/routes/api/elevation.ts rename to frontend/server-node/src/routes/api/elevation.ts diff --git a/frontend/server/src/routes/api/speech.ts b/frontend/server-node/src/routes/api/speech.ts similarity index 100% rename from frontend/server/src/routes/api/speech.ts rename to frontend/server-node/src/routes/api/speech.ts diff --git a/frontend/server/src/routes/resources.ts b/frontend/server-node/src/routes/resources.ts similarity index 100% rename from frontend/server/src/routes/resources.ts rename to frontend/server-node/src/routes/resources.ts diff --git a/frontend/server/src/utils.ts b/frontend/server-node/src/utils.ts similarity index 100% rename from frontend/server/src/utils.ts rename to frontend/server-node/src/utils.ts diff --git a/frontend/server/src/www.ts b/frontend/server-node/src/www.ts similarity index 100% rename from frontend/server/src/www.ts rename to frontend/server-node/src/www.ts diff --git a/frontend/server/tsconfig.json b/frontend/server-node/tsconfig.json similarity index 100% rename from frontend/server/tsconfig.json rename to frontend/server-node/tsconfig.json From dafb7ae7944ca6d37b96b854b2af627eea6a2b69 Mon Sep 17 00:00:00 2001 From: Timm Ortlofff Date: Sat, 31 Jan 2026 16:00:48 +0100 Subject: [PATCH 2/7] wip first stream --- frontend/server/.gitignore | 1 + frontend/server/Cargo.lock | 765 +++++ frontend/server/Cargo.toml | 15 + .../databases/airbases/afghanistan.json | 395 +++ .../server/databases/airbases/caucasus.json | 466 +++ .../server/databases/airbases/falklands.json | 838 ++++++ frontend/server/databases/airbases/kola.json | 399 +++ .../server/databases/airbases/marianas.json | 466 +++ .../server/databases/airbases/nevada.json | 558 ++++ .../server/databases/airbases/normandy.json | 2633 +++++++++++++++++ .../databases/airbases/persiangulf.json | 769 +++++ .../server/databases/airbases/sinaimap.json | 1374 +++++++++ frontend/server/databases/airbases/syria.json | 1366 +++++++++ .../server/databases/airbases/thechannel.json | 525 ++++ frontend/server/src/airbase.rs | 32 + frontend/server/src/airfield.rs | 0 frontend/server/src/main.rs | 45 + frontend/server/src/routes.rs | 8 + frontend/server/src/theatre.rs | 62 + 19 files changed, 10717 insertions(+) create mode 100644 frontend/server/.gitignore create mode 100644 frontend/server/Cargo.lock create mode 100644 frontend/server/Cargo.toml create mode 100644 frontend/server/databases/airbases/afghanistan.json create mode 100644 frontend/server/databases/airbases/caucasus.json create mode 100644 frontend/server/databases/airbases/falklands.json create mode 100644 frontend/server/databases/airbases/kola.json create mode 100644 frontend/server/databases/airbases/marianas.json create mode 100644 frontend/server/databases/airbases/nevada.json create mode 100644 frontend/server/databases/airbases/normandy.json create mode 100644 frontend/server/databases/airbases/persiangulf.json create mode 100644 frontend/server/databases/airbases/sinaimap.json create mode 100644 frontend/server/databases/airbases/syria.json create mode 100644 frontend/server/databases/airbases/thechannel.json create mode 100644 frontend/server/src/airbase.rs create mode 100644 frontend/server/src/airfield.rs create mode 100644 frontend/server/src/main.rs create mode 100644 frontend/server/src/routes.rs create mode 100644 frontend/server/src/theatre.rs diff --git a/frontend/server/.gitignore b/frontend/server/.gitignore new file mode 100644 index 000000000..2f7896d1d --- /dev/null +++ b/frontend/server/.gitignore @@ -0,0 +1 @@ +target/ diff --git a/frontend/server/Cargo.lock b/frontend/server/Cargo.lock new file mode 100644 index 000000000..bea2d666d --- /dev/null +++ b/frontend/server/Cargo.lock @@ -0,0 +1,765 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "anyhow" +version = "1.0.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "axum" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b52af3cb4058c895d37317bb27508dccc8e5f2d39454016b297bf4a400597b8" +dependencies = [ + "axum-core", + "bytes", + "form_urlencoded", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "itoa", + "matchit", + "memchr", + "mime", + "percent-encoding", + "pin-project-lite", + "serde_core", + "serde_json", + "serde_path_to_error", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "axum-core" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08c78f31d7b1291f7ee735c1c6780ccde7785daae9a9206026862dab7d8792d1" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "http-body-util", + "mime", + "pin-project-lite", + "sync_wrapper", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "bitflags" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" + +[[package]] +name = "bytes" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b35204fbdc0b3f4446b89fc1ac2cf84a8a68971995d0bf2e925ec7cd960f9cb3" + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "enum-iterator" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4549325971814bda7a44061bf3fe7e487d447cba01e4220a4b454d630d7a016" +dependencies = [ + "enum-iterator-derive", +] + +[[package]] +name = "enum-iterator-derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685adfa4d6f3d765a26bc5dbc936577de9abf756c1feeb3089b01dd395034842" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" + +[[package]] +name = "futures-task" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" + +[[package]] +name = "futures-util" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +dependencies = [ + "futures-core", + "futures-task", + "pin-project-lite", + "pin-utils", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hyper" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "pin-utils", + "smallvec", + "tokio", +] + +[[package]] +name = "hyper-util" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "727805d60e7938b76b826a6ef209eb70eaa1812794f9424d4a4e2d740662df5f" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "hyper", + "pin-project-lite", + "tokio", + "tower-service", +] + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "libc" +version = "0.2.180" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "matchit" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" + +[[package]] +name = "memchr" +version = "2.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mio" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "once_cell" +version = "1.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project-lite" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "ryu" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a50f4cf475b65d88e057964e0e9bb1f0aa9bbb2036dc65c64596b42932536984" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_path_to_error" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +dependencies = [ + "itoa", + "serde", + "serde_core", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "server" +version = "0.1.0" +dependencies = [ + "anyhow", + "axum", + "enum-iterator", + "once_cell", + "serde", + "serde_json", + "tokio", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0" +dependencies = [ + "libc", + "windows-sys 0.60.2", +] + +[[package]] +name = "syn" +version = "2.0.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" + +[[package]] +name = "thread_local" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "tokio" +version = "1.49.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e" +dependencies = [ + "nu-ansi-term", + "sharded-slab", + "smallvec", + "thread_local", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "unicode-ident" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "zmij" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1966f8ac2c1f76987d69a74d0e0f929241c10e78136434e3be70ff7f58f64214" diff --git a/frontend/server/Cargo.toml b/frontend/server/Cargo.toml new file mode 100644 index 000000000..420be5b17 --- /dev/null +++ b/frontend/server/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "server" +version = "0.1.0" +edition = "2024" + +[dependencies] +anyhow = "1.0" +tokio = { version = "1.49", features = ["full"] } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +axum = "0.8" +tracing-subscriber = "0.3" +tracing = "0.1" +once_cell = "1.21" +enum-iterator = "2.3" diff --git a/frontend/server/databases/airbases/afghanistan.json b/frontend/server/databases/airbases/afghanistan.json new file mode 100644 index 000000000..bfd256f8a --- /dev/null +++ b/frontend/server/databases/airbases/afghanistan.json @@ -0,0 +1,395 @@ +{ + "airfields": { + "Farah": { + "runways": [ + { + "headings": [ + { + "33": { + "magHeading": "328", + "Heading": "330", + "ILS": "" + } + }, + { + "15": { + "magHeading": "148", + "Heading": "150", + "ILS": "" + } + } + ], + "length": "6990" + } + ], + "TACAN": "", + "ICAO": "OAFR", + "elevation": "2240" + }, + "Kandahar": { + "runways": [ + { + "headings": [ + { + "23": { + "magHeading": "232", + "Heading": "234", + "ILS": "" + } + }, + { + "05": { + "magHeading": "052", + "Heading": "054", + "ILS": "" + } + } + ], + "length": "9779" + } + ], + "TACAN": "75X", + "ICAO": "OAKN", + "elevation": "3336" + }, + "Bost": { + "runways": [ + { + "headings": [ + { + "01": { + "magHeading": "005", + "Heading": "007", + "ILS": "" + } + }, + { + "19": { + "magHeading": "186", + "Heading": "187", + "ILS": "" + } + } + ], + "length": "5758" + } + ], + "TACAN": "", + "ICAO": "OABT", + "elevation": "2546" + }, + "Kandahar Heliport": { + "runways": [ + { + "headings": [ + { + "23": { + "magHeading": "232", + "Heading": "234", + "ILS": "" + } + }, + { + "05": { + "magHeading": "052", + "Heading": "054", + "ILS": "" + } + } + ], + "length": "718" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "3336" + }, + "Shindand Heliport": { + "runways": [ + { + "headings": [ + { + "36": { + "magHeading": "360", + "Heading": "002", + "ILS": "" + } + }, + { + "18": { + "magHeading": "181", + "Heading": "182", + "ILS": "" + } + } + ], + "length": "687" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "3798" + }, + "Camp Bastion Heliport": { + "runways": [ + { + "headings": [ + { + "01": { + "magHeading": "008", + "Heading": "010", + "ILS": "" + } + }, + { + "19": { + "magHeading": "189", + "Heading": "190", + "ILS": "" + } + } + ], + "length": "1271" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "2901" + }, + "Tarinkot": { + "runways": [ + { + "headings": [ + { + "30": { + "magHeading": "300", + "Heading": "303", + "ILS": "" + } + }, + { + "12": { + "magHeading": "121", + "Heading": "123", + "ILS": "" + + } + } + ], + "length": "5903" + } + ], + "TACAN": "", + "ICAO": "OATN", + "elevation": "4373" + }, + "Nimroz": { + "runways": [ + { + "headings": [ + { + "14": { + "magHeading": "138", + "Heading": "140", + "ILS": "" + } + }, + { + "32": { + "magHeading": "318", + "Heading": "320", + "ILS": "" + } + } + ], + "length": "6944" + } + ], + "TACAN": "", + "ICAO": "OANZ", + "elevation": "1584" + }, + "Dwyer": { + "runways": [ + { + "headings": [ + { + "05": { + "magHeading": "048", + "Heading": "050", + "ILS": "" + } + }, + { + "23": { + "magHeading": "228", + "Heading": "230", + "ILS": "" + } + } + ], + "length": "7458" + } + ], + "TACAN": "46X", + "ICAO": "OADY", + "elevation": "2398" + }, + "Herat": { + "runways": [ + { + "headings": [ + { + "18": { + "magHeading": "186", + "Heading": "188", + "ILS": "" + } + }, + { + "36": { + "magHeading": "006", + "Heading": "008", + "ILS": "" + } + } + ], + "length": "8920" + } + ], + "TACAN": "54X", + "ICAO": "OAHR", + "elevation": "3182" + }, + "Shindand": { + "runways": [ + { + "headings": [ + { + "36": { + "magHeading": "360", + "Heading": "002", + "ILS": "" + } + }, + { + "18": { + "magHeading": "180", + "Heading": "182", + "ILS": "" + } + } + ], + "length": "7032" + } + ], + "TACAN": "48X", + "ICAO": "OASD", + "elevation": "3715" + }, + "Maymana Zahiraddin Faryabi": { + "runways": [ + { + "headings": [ + { + "32": { + "magHeading": "320", + "Heading": "322", + "ILS": "" + } + }, + { + "14": { + "magHeading": "140", + "Heading": "142", + "ILS": "" + } + } + ], + "length": "5542" + } + ], + "TACAN": "", + "ICAO": "OAMN", + "elevation": "2758" + }, + "Qala i Naw": { + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "218", + "Heading": "220", + "ILS": "" + } + }, + { + "04": { + "magHeading": "038", + "Heading": "040", + "ILS": "" + } + } + ], + "length": "6114" + } + ], + "TACAN": "", + "ICAO": "OAQN", + "elevation": "2916" + }, + "Chaghcharan": { + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "243", + "Heading": "245", + "ILS": "" + } + }, + { + "07": { + "magHeading": "063", + "Heading": "65", + "ILS": "" + } + } + ], + "length": "5709" + } + ], + "TACAN": "", + "ICAO": "OACC", + "elevation": "7451" + }, + "Camp Bastion": { + "runways": [ + { + "headings": [ + { + "01": { + "magHeading": "008", + "Heading": "010", + "ILS": "" + } + }, + { + "19": { + "magHeading": "188", + "Heading": "190", + "ILS": "" + } + } + ], + "length": "10647" + } + ], + "TACAN": "98X", + "ICAO": "OAZI", + "elevation": "2886" + } + } +} \ No newline at end of file diff --git a/frontend/server/databases/airbases/caucasus.json b/frontend/server/databases/airbases/caucasus.json new file mode 100644 index 000000000..5b27dcdcc --- /dev/null +++ b/frontend/server/databases/airbases/caucasus.json @@ -0,0 +1,466 @@ +{ + "airfields": { + "Anapa-Vityazevo": { + "ICAO": "URKA", + "elevation": "141", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "214", + "ILS": "" + }, + "04": { + "magHeading": "034", + "ILS": "" + } + } + ], + "length": "9000" + } + ] + }, + "Batumi": { + "ICAO": "UGSB", + "elevation": "33", + "TACAN": "16X", + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "119", + "ILS": "" + }, + "31": { + "magHeading": "299", + "ILS": "" + } + } + ], + "length": "7500" + } + ] + }, + "Beslan": { + "ICAO": "URMO", + "elevation": "1722", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "086", + "ILS": "110.50" + }, + "28": { + "magHeading": "266", + "ILS": "" + } + } + ], + "length": "9600" + } + ] + }, + "Gelendzhik": { + "ICAO": "URKG", + "elevation": "72", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "19": { + "magHeading": "212", + "ILS": "" + }, + "01": { + "magHeading": "032", + "ILS": "" + } + } + ], + "length": "5400" + } + ] + }, + "Gudauta": { + "ICAO": "UG23", + "elevation": "69", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "15": { + "magHeading": "144", + "ILS": "" + }, + "33": { + "magHeading": "324", + "ILS": "" + } + } + ], + "length": "7700" + } + ] + }, + "Kobuleti": { + "ICAO": "UG5X", + "elevation": "69", + "TACAN": "67X", + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "243", + "ILS": "" + }, + "07": { + "magHeading": "063", + "ILS": "111.50" + } + } + ], + "length": "7400" + } + ] + }, + "Krasnodar-Center": { + "ICAO": "URKL", + "elevation": "98", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "259", + "ILS": "" + }, + "09": { + "magHeading": "079", + "ILS": "" + } + } + ], + "length": "7700" + } + ] + }, + "Krasnodar-Pashkovsky": { + "ICAO": "URKK", + "elevation": "112", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "23": { + "magHeading": "219", + "ILS": "" + }, + "05": { + "magHeading": "039", + "ILS": "" + } + } + ], + "length": "9600" + } + ] + }, + "Krymsk": { + "ICAO": "URKW", + "elevation": "66", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "212", + "ILS": "" + }, + "04": { + "magHeading": "032", + "ILS": "" + } + } + ], + "length": "8000" + } + ] + }, + "Kutaisi": { + "ICAO": "UGKO", + "elevation": "148", + "TACAN": "44X", + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "247", + "ILS": "" + }, + "07": { + "magHeading": "067'", + "ILS": "109.75" + } + } + ], + "length": "7700" + } + ] + }, + "Maykop-Khanskaya": { + "ICAO": "URKH", + "elevation": "591", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "211", + "ILS": "" + }, + "04": { + "magHeading": "031", + "ILS": "" + } + } + ], + "length": "10100" + } + ] + }, + "Mineralnye Vody": { + "ICAO": "URMM", + "elevation": "1050", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "108", + "ILS": "111.70" + }, + "30": { + "magHeading": "288", + "ILS": "109.30" + } + } + ], + "length": "12700" + } + ] + }, + "Mozdok": { + "ICAO": "XRMF", + "elevation": "507", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "26": { + "magHeading": "255", + "ILS": "" + }, + "08": { + "magHeading": "075", + "ILS": "" + } + } + ], + "length": "9400" + } + ] + }, + "Nalchik": { + "ICAO": "URMN", + "elevation": "1411", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "24": { + "magHeading": "228", + "ILS": "110.50" + }, + "06": { + "magHeading": "048'", + "ILS": "" + } + } + ], + "length": "7000" + } + ] + }, + "Novorossiysk": { + "ICAO": "URKN", + "elevation": "131", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "214", + "ILS": "" + }, + "04": { + "magHeading": "034", + "ILS": "" + } + } + ], + "length": "5400" + } + ] + }, + "Senaki-Kolkhi": { + "ICAO": "UGKS", + "elevation": "43", + "TACAN": "31X", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "268", + "ILS": "" + }, + "09": { + "magHeading": "088'", + "ILS": "108.90" + } + } + ], + "length": "7400" + } + ] + }, + "Sochi-Adler": { + "ICAO": "URSS", + "elevation": "98", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "235", + "ILS": "" + }, + "06": { + "magHeading": "055", + "ILS": "111.10" + } + } + ], + "length": "9700" + } + ] + }, + "Tbilisi-Lochini": { + "ICAO": "UGTB", + "elevation": "1574", + "TACAN": "25X", + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "121", + "ILS": "110.30" + }, + "31": { + "magHeading": "301", + "ILS": "108.90" + } + } + ], + "length": "9300" + } + ] + }, + "Soganlug": { + "ICAO": "UG24", + "elevation": "1500", + "TACAN": "25X", + "runways": [ + { + "headings": [ + { + "14": { + "magHeading": "125", + "ILS": "" + }, + "32": { + "magHeading": "305", + "ILS": "" + } + } + ], + "length": "6500" + } + ] + }, + "Sukhumi-Babushara": { + "ICAO": "UGSS", + "elevation": "43", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "109", + "ILS": "" + }, + "30": { + "magHeading": "289", + "ILS": "" + } + } + ], + "length": "11400" + } + ] + }, + "Vaziani": { + "ICAO": "UG27", + "elevation": "1524", + "TACAN": "22X", + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "129", + "ILS": "108.75" + }, + "31": { + "magHeading": "309", + "ILS": "108.75" + } + } + ], + "length": "7700" + } + ] + } + } +} \ No newline at end of file diff --git a/frontend/server/databases/airbases/falklands.json b/frontend/server/databases/airbases/falklands.json new file mode 100644 index 000000000..969fc7959 --- /dev/null +++ b/frontend/server/databases/airbases/falklands.json @@ -0,0 +1,838 @@ +{ + "airfields": { + "Aerodromo De Tolhuin": { + "runways": [ + { + "headings": [ + { + "07": { + "magHeading": "66", + "Heading": "77", + "ILS": "" + } + }, + { + "25": { + "magHeading": "246", + "Heading": "257", + "ILS": "" + } + } + ], + "length": "3297" + } + ], + "TACAN": "", + "ICAO": "SAWL", + "elevation": "355" + }, + "Almirante Schroeders": { + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "114", + "Heading": "127", + "ILS": "" + } + }, + { + "30": { + "magHeading": "294", + "Heading": "307", + "ILS": "" + } + } + ], + "length": "4628" + }, + { + "headings": [ + { + "22": { + "magHeading": "208", + "Heading": "221", + "ILS": "" + } + }, + { + "04": { + "magHeading": "28", + "Heading": "41", + "ILS": "" + } + } + ], + "length": "3931" + } + ], + "TACAN": "", + "ICAO": "SCDW", + "elevation": "160" + }, + "Rio Chico": { + "runways": [ + { + "headings": [ + { + "08": { + "magHeading": "73", + "Heading": "84", + "ILS": "" + } + }, + { + "26": { + "magHeading": "253", + "Heading": "264", + "ILS": "" + } + } + ], + "length": "3239" + } + ], + "TACAN": "", + "ICAO": "RGR", + "elevation": "74" + }, + "Puerto Natales": { + "runways": [ + { + "headings": [ + { + "28": { + "magHeading": "274", + "Heading": "287", + "ILS": "" + } + }, + { + "10": { + "magHeading": "94", + "Heading": "107", + "ILS": "" + } + } + ], + "length": "5281" + } + ], + "TACAN": "", + "ICAO": "SCNT", + "elevation": "216" + }, + "Mount Pleasant": { + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "101", + "Heading": "104", + "ILS": "" + } + }, + { + "28": { + "magHeading": "281", + "Heading": "284", + "ILS": "111.90" + } + } + ], + "length": "6763" + }, + { + "headings": [ + { + "23": { + "magHeading": "231", + "Heading": "234", + "ILS": "" + } + }, + { + "05": { + "magHeading": "51", + "Heading": "54", + "ILS": "" + } + } + ], + "length": "6763" + } + ], + "TACAN": "59X", + "ICAO": "EGYP", + "elevation": "243" + }, + "Aerodromo O'Higgins": { + "runways": [ + { + "headings": [ + { + "34": { + "magHeading": "326", + "Heading": "338", + "ILS": "" + } + }, + { + "16": { + "magHeading": "146", + "Heading": "158", + "ILS": "" + } + } + ], + "length": "3968" + } + ], + "TACAN": "", + "ICAO": "SCOH", + "elevation": "900" + }, + "Ushuaia Helo Port": { + "runways": [ + { + "headings": [ + { + "16": { + "magHeading": "157", + "Heading": "170", + "ILS": "" + } + }, + { + "34": { + "magHeading": "337", + "Heading": "350", + "ILS": "" + } + } + ], + "length": "5076" + } + ], + "TACAN": "", + "ICAO": "SAWO", + "elevation": "42" + }, + "Franco Bianco": { + "runways": [ + { + "headings": [ + { + "07": { + "magHeading": "65", + "Heading": "77", + "ILS": "" + } + }, + { + "25": { + "magHeading": "245", + "Heading": "257", + "ILS": "" + } + } + ], + "length": "5008" + }, + { + "headings": [ + { + "20": { + "magHeading": "185", + "Heading": "196", + "ILS": "" + } + }, + { + "02": { + "magHeading": "5", + "Heading": "16", + "ILS": "" + } + } + ], + "length": "5008" + } + ], + "TACAN": "", + "ICAO": "SCSB", + "elevation": "104" + }, + "Pampa Guanaco": { + "runways": [ + { + "headings": [ + { + "26": { + "magHeading": "248", + "Heading": "260", + "ILS": "" + } + }, + { + "08": { + "magHeading": "68", + "Heading": "80", + "ILS": "" + } + } + ], + "length": "2349" + } + ], + "TACAN": "", + "ICAO": "SCBI", + "elevation": "519" + }, + "Puerto Santa Cruz": { + "runways": [ + { + "headings": [ + { + "07": { + "magHeading": "81", + "Heading": "69", + "ILS": "" + } + }, + { + "25": { + "magHeading": "261", + "Heading": "249", + "ILS": "" + } + } + ], + "length": "5638" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "365" + }, + "San Carlos FOB": { + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "285", + "Heading": "288", + "ILS": "" + } + }, + { + "29": { + "magHeading": "105", + "Heading": "108", + "ILS": "" + } + } + ], + "length": "1079" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "65" + }, + "Goose Green": { + "runways": [ + { + "headings": [ + { + "14": { + "magHeading": "135", + "Heading": "139", + "ILS": "" + } + }, + { + "32": { + "magHeading": "315", + "Heading": "319", + "ILS": "" + } + } + ], + "length": "1976" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "57" + }, + "Rio Turbio": { + "runways": [ + { + "headings": [ + { + "24": { + "magHeading": "225", + "Heading": "239", + "ILS": "" + } + }, + { + "06": { + "magHeading": "45", + "Heading": "59", + "ILS": "" + } + } + ], + "length": "5057" + } + ], + "TACAN": "", + "ICAO": "SAWT", + "elevation": "895" + }, + "Porvenir Airfield": { + "runways": [ + { + "headings": [ + { + "09": { + "magHeading": "87", + "Heading": "99", + "ILS": "" + } + }, + { + "27": { + "magHeading": "266", + "Heading": "279", + "ILS": "" + } + } + ], + "length": "7821" + }, + { + "headings": [ + { + "21": { + "magHeading": "203", + "Heading": "216", + "ILS": "" + } + }, + { + "03": { + "magHeading": "23", + "Heading": "36", + "ILS": "" + } + } + ], + "length": "3220" + } + ], + "TACAN": "", + "ICAO": "SCFM", + "elevation": "56" + }, + "Punta Arenas": { + "runways": [ + { + "headings": [ + { + "30": { + "magHeading": "295", + "Heading": "308", + "ILS": "" + } + }, + { + "12": { + "magHeading": "140", + "Heading": "128", + "ILS": "" + } + } + ], + "length": "6834" + }, + { + "headings": [ + { + "25": { + "magHeading": "270", + "Heading": "258", + "ILS": "" + } + }, + { + "07": { + "magHeading": "90", + "Heading": "78", + "ILS": "" + } + } + ], + "length": "9360" + }, + { + "headings": [ + { + "19": { + "magHeading": "210", + "Heading": "198", + "ILS": "" + } + } + ], + "length": "5160" + } + ], + "TACAN": "", + "ICAO": "SCCI", + "elevation": "122" + }, + "Gull Point": { + "runways": [ + { + "headings": [ + { + "15": { + "magHeading": "149", + "Heading": "152", + "ILS": "" + } + }, + { + "33": { + "magHeading": "329", + "Heading": "332", + "ILS": "" + } + } + ], + "length": "1521" + }, + { + "headings": [ + { + "23": { + "magHeading": "212", + "Heading": "216", + "ILS": "" + } + }, + { + "05": { + "magHeading": "33", + "Heading": "36", + "ILS": "" + } + } + ], + "length": "1352" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "4" + }, + "Caleta Tortel Airport": { + "runways": [ + { + "headings": [ + { + "04": { + "magHeading": "235", + "Heading": "223", + "ILS": "" + } + }, + { + "22": { + "magHeading": "55", + "Heading": "43", + "ILS": "" + } + } + ], + "length": "1770" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "3" + }, + "Comandante Luis Piedrabuena": { + "runways": [ + { + "headings": [ + { + "26": { + "magHeading": "272", + "Heading": "260", + "ILS": "" + } + }, + { + "08": { + "magHeading": "92", + "Heading": "80", + "ILS": "" + } + } + ], + "length": "3505" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "69" + }, + "Hipico Flying Club": { + "runways": [ + { + "headings": [ + { + "02": { + "magHeading": "1", + "Heading": "11", + "ILS": "" + } + }, + { + "19": { + "magHeading": "180", + "Heading": "191", + "ILS": "" + } + } + ], + "length": "2304" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "934" + }, + "Cullen Airport": { + "runways": [], + "TACAN": "", + "ICAO": "", + "elevation": "0" + }, + "Aeropuerto de Gobernador Gregores": { + "runways": [ + { + "headings": [ + { + "28": { + "magHeading": "263", + "Heading": "274", + "ILS": "" + } + }, + { + "10": { + "magHeading": "84", + "Heading": "94", + "ILS": "" + } + } + ], + "length": "8672" + } + ], + "TACAN": "", + "ICAO": "SAWR", + "elevation": "1168" + }, + "San Julian": { + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "242", + "Heading": "251", + "ILS": "" + } + }, + { + "07": { + "magHeading": "62", + "Heading": "71", + "ILS": "" + } + } + ], + "length": "6218" + } + ], + "TACAN": "", + "ICAO": "SAWJ", + "elevation": "144" + }, + "Puerto Williams": { + "runways": [ + { + "headings": [ + { + "08": { + "magHeading": "70", + "Heading": "82", + "ILS": "" + } + }, + { + "26": { + "magHeading": "250", + "Heading": "262", + "ILS": "" + } + } + ], + "length": "4312" + } + ], + "TACAN": "", + "ICAO": "SCGZ", + "elevation": "83" + }, + "Ushuaia": { + "runways": [ + { + "headings": [ + { + "07": { + "magHeading": "65", + "Heading": "77", + "ILS": "" + } + }, + { + "25": { + "magHeading": "245", + "Heading": "257", + "ILS": "111.30" + } + } + ], + "length": "7631" + } + ], + "TACAN": "", + "ICAO": "SAWH", + "elevation": "60" + }, + "Rio Gallegos": { + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "245", + "Heading": "256", + "ILS": "110.30" + } + }, + { + "07": { + "magHeading": "65", + "Heading": "76", + "ILS": "" + } + } + ], + "length": "10585" + } + ], + "TACAN": "", + "ICAO": "SAWG", + "elevation": "50" + }, + "Rio Grande": { + "runways": [ + { + "headings": [ + { + "08": { + "magHeading": "68", + "Heading": "79", + "ILS": "" + } + }, + { + "26": { + "magHeading": "247", + "Heading": "259", + "ILS": "109.50" + } + } + ], + "length": "5922" + } + ], + "TACAN": "31X", + "ICAO": "SAWE", + "elevation": "60" + }, + "Port Stanley": { + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "266", + "Heading": "269", + "ILS": "" + } + }, + { + "09": { + "magHeading": "101", + "Heading": "86", + "ILS": "" + } + } + ], + "length": "4388" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "67" + }, + "El Calafate": { + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "241", + "Heading": "253", + "ILS": "108.90" + } + }, + { + "07": { + "magHeading": "61", + "Heading": "73", + "ILS": "" + } + } + ], + "length": "7579" + } + ], + "TACAN": "", + "ICAO": "SAWC", + "elevation": "654" + } + } +} \ No newline at end of file diff --git a/frontend/server/databases/airbases/kola.json b/frontend/server/databases/airbases/kola.json new file mode 100644 index 000000000..c39c455e1 --- /dev/null +++ b/frontend/server/databases/airbases/kola.json @@ -0,0 +1,399 @@ +{ + "airfields": { + "Severomorsk-1": { + "runways": [ + { + "headings": [ + { + "14": { + "magHeading": "118", + "Heading": "135", + "ILS": "" + } + }, + { + "32": { + "magHeading": "299", + "Heading": "315", + "ILS": "" + } + } + ], + "length": "9084" + } + ], + "TACAN": "", + "ICAO": "ULAK", + "elevation": "261" + }, + "Banak": { + "runways": [ + { + "headings": [ + { + "34": { + "magHeading": "339", + "Heading": "352", + "ILS": "108.30" + } + }, + { + "16": { + "magHeading": "159", + "Heading": "172", + "ILS": "" + } + } + ], + "length": "8104" + } + ], + "TACAN": "47X", + "ICAO": "ENNA", + "elevation": "17" + }, + "Severomorsk-3": { + "runways": [ + { + "headings": [ + { + "35": { + "magHeading": "334", + "Heading": "351", + "ILS": "" + } + }, + { + "17": { + "magHeading": "154", + "Heading": "171", + "ILS": "" + } + } + ], + "length": "7497" + } + ], + "TACAN": "", + "ICAO": "XLMV", + "elevation": "567" + }, + "Kemi Tornio": { + "runways": [ + { + "headings": [ + { + "18": { + "magHeading": "173", + "Heading": "184", + "ILS": "" + } + }, + { + "36": { + "magHeading": "355", + "Heading": "4", + "ILS": "110.90" + } + } + ], + "length": "7862" + } + ], + "TACAN": "", + "ICAO": "EFKE", + "elevation": "46" + }, + "Murmansk International": { + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "119", + "Heading": "135", + "ILS": "110.30" + } + }, + { + "31": { + "magHeading": "299", + "Heading": "315", + "ILS": "108.50" + } + } + ], + "length": "7926" + } + ], + "TACAN": "", + "ICAO": "ULMM", + "elevation": "249" + }, + "Bodo": { + "runways": [ + { + "headings": [ + { + "07": { + "magHeading": "78", + "Heading": "84", + "ILS": "110.30" + } + }, + { + "25": { + "magHeading": "257", + "Heading": "264", + "ILS": "108.70" + } + } + ], + "length": "8618" + } + ], + "TACAN": "45X", + "ICAO": "ENBO", + "elevation": "25" + }, + "Rovaniemi": { + "runways": [ + { + "headings": [ + { + "21": { + "magHeading": "201", + "Heading": "213", + "ILS": "117.70" + } + }, + { + "03": { + "magHeading": "21", + "Heading": "33", + "ILS": "" + } + } + ], + "length": "9096" + } + ], + "TACAN": "", + "ICAO": "EFRO", + "elevation": "612" + }, + "Kalixfors": { + "runways": [ + { + "headings": [ + { + "17": { + "magHeading": "162", + "Heading": "171", + "ILS": "" + } + }, + { + "35": { + "magHeading": "342", + "Heading": "351", + "ILS": "" + } + } + ], + "length": "3597" + } + ], + "TACAN": "", + "ICAO": "ESUK", + "elevation": "1552" + }, + "Jokkmokk": { + "runways": [ + { + "headings": [ + { + "14": { + "magHeading": "136", + "Heading": "145", + "ILS": "" + } + }, + { + "32": { + "magHeading": "316", + "Heading": "325", + "ILS": "" + } + } + ], + "length": "6306" + }, + { + "headings": [ + { + "32": { + "magHeading": "323", + "Heading": "332", + "ILS": "" + } + }, + { + "14": { + "magHeading": "143", + "Heading": "152", + "ILS": "" + } + } + ], + "length": "6306" + }, + { + "headings": [ + { + "15": { + "magHeading": "124", + "Heading": "133", + "ILS": "" + } + }, + { + "33": { + "magHeading": "302", + "Heading": "313", + "ILS": "" + } + } + ], + "length": "3828" + }, + { + "headings": [ + { + "36": { + "magHeading": "354", + "Heading": "3", + "ILS": "" + } + }, + { + "18": { + "magHeading": "174", + "Heading": "183", + "ILS": "" + } + } + ], + "length": "3828" + } + ], + "TACAN": "", + "ICAO": "ESNJ", + "elevation": "891" + }, + "Monchegorsk": { + "runways": [ + { + "headings": [ + { + "01": { + "magHeading": "001", + "Heading": "16", + "ILS": "" + } + }, + { + "19": { + "magHeading": "180", + "Heading": "196", + "ILS": "" + } + } + ], + "length": "7509" + } + ], + "TACAN": "", + "ICAO": "UMOE", + "elevation": "547" + }, + "Olenya": { + "runways": [ + { + "headings": [ + { + "19": { + "magHeading": "171", + "Heading": "188", + "ILS": "" + } + }, + { + "01": { + "magHeading": "352", + "Heading": "8", + "ILS": "" + } + } + ], + "length": "10863" + } + ], + "TACAN": "", + "ICAO": "UOLE", + "elevation": "721" + }, + "Bas 100": { + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "210", + "Heading": "223", + "ILS": "" + } + }, + { + "04": { + "magHeading": "31", + "Heading": "43", + "ILS": "" + } + } + ], + "length": "7719" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "735" + }, + "Kiruna": { + "runways": [ + { + "headings": [ + { + "21": { + "magHeading": "204", + "Heading": "214", + "ILS": "110.30" + } + }, + { + "03": { + "magHeading": "25", + "Heading": "34", + "ILS": "" + } + } + ], + "length": "7432" + } + ], + "TACAN": "", + "ICAO": "ESNQ", + "elevation": "1434" + } + } +} \ No newline at end of file diff --git a/frontend/server/databases/airbases/marianas.json b/frontend/server/databases/airbases/marianas.json new file mode 100644 index 000000000..5b27dcdcc --- /dev/null +++ b/frontend/server/databases/airbases/marianas.json @@ -0,0 +1,466 @@ +{ + "airfields": { + "Anapa-Vityazevo": { + "ICAO": "URKA", + "elevation": "141", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "214", + "ILS": "" + }, + "04": { + "magHeading": "034", + "ILS": "" + } + } + ], + "length": "9000" + } + ] + }, + "Batumi": { + "ICAO": "UGSB", + "elevation": "33", + "TACAN": "16X", + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "119", + "ILS": "" + }, + "31": { + "magHeading": "299", + "ILS": "" + } + } + ], + "length": "7500" + } + ] + }, + "Beslan": { + "ICAO": "URMO", + "elevation": "1722", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "086", + "ILS": "110.50" + }, + "28": { + "magHeading": "266", + "ILS": "" + } + } + ], + "length": "9600" + } + ] + }, + "Gelendzhik": { + "ICAO": "URKG", + "elevation": "72", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "19": { + "magHeading": "212", + "ILS": "" + }, + "01": { + "magHeading": "032", + "ILS": "" + } + } + ], + "length": "5400" + } + ] + }, + "Gudauta": { + "ICAO": "UG23", + "elevation": "69", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "15": { + "magHeading": "144", + "ILS": "" + }, + "33": { + "magHeading": "324", + "ILS": "" + } + } + ], + "length": "7700" + } + ] + }, + "Kobuleti": { + "ICAO": "UG5X", + "elevation": "69", + "TACAN": "67X", + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "243", + "ILS": "" + }, + "07": { + "magHeading": "063", + "ILS": "111.50" + } + } + ], + "length": "7400" + } + ] + }, + "Krasnodar-Center": { + "ICAO": "URKL", + "elevation": "98", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "259", + "ILS": "" + }, + "09": { + "magHeading": "079", + "ILS": "" + } + } + ], + "length": "7700" + } + ] + }, + "Krasnodar-Pashkovsky": { + "ICAO": "URKK", + "elevation": "112", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "23": { + "magHeading": "219", + "ILS": "" + }, + "05": { + "magHeading": "039", + "ILS": "" + } + } + ], + "length": "9600" + } + ] + }, + "Krymsk": { + "ICAO": "URKW", + "elevation": "66", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "212", + "ILS": "" + }, + "04": { + "magHeading": "032", + "ILS": "" + } + } + ], + "length": "8000" + } + ] + }, + "Kutaisi": { + "ICAO": "UGKO", + "elevation": "148", + "TACAN": "44X", + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "247", + "ILS": "" + }, + "07": { + "magHeading": "067'", + "ILS": "109.75" + } + } + ], + "length": "7700" + } + ] + }, + "Maykop-Khanskaya": { + "ICAO": "URKH", + "elevation": "591", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "211", + "ILS": "" + }, + "04": { + "magHeading": "031", + "ILS": "" + } + } + ], + "length": "10100" + } + ] + }, + "Mineralnye Vody": { + "ICAO": "URMM", + "elevation": "1050", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "108", + "ILS": "111.70" + }, + "30": { + "magHeading": "288", + "ILS": "109.30" + } + } + ], + "length": "12700" + } + ] + }, + "Mozdok": { + "ICAO": "XRMF", + "elevation": "507", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "26": { + "magHeading": "255", + "ILS": "" + }, + "08": { + "magHeading": "075", + "ILS": "" + } + } + ], + "length": "9400" + } + ] + }, + "Nalchik": { + "ICAO": "URMN", + "elevation": "1411", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "24": { + "magHeading": "228", + "ILS": "110.50" + }, + "06": { + "magHeading": "048'", + "ILS": "" + } + } + ], + "length": "7000" + } + ] + }, + "Novorossiysk": { + "ICAO": "URKN", + "elevation": "131", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "214", + "ILS": "" + }, + "04": { + "magHeading": "034", + "ILS": "" + } + } + ], + "length": "5400" + } + ] + }, + "Senaki-Kolkhi": { + "ICAO": "UGKS", + "elevation": "43", + "TACAN": "31X", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "268", + "ILS": "" + }, + "09": { + "magHeading": "088'", + "ILS": "108.90" + } + } + ], + "length": "7400" + } + ] + }, + "Sochi-Adler": { + "ICAO": "URSS", + "elevation": "98", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "235", + "ILS": "" + }, + "06": { + "magHeading": "055", + "ILS": "111.10" + } + } + ], + "length": "9700" + } + ] + }, + "Tbilisi-Lochini": { + "ICAO": "UGTB", + "elevation": "1574", + "TACAN": "25X", + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "121", + "ILS": "110.30" + }, + "31": { + "magHeading": "301", + "ILS": "108.90" + } + } + ], + "length": "9300" + } + ] + }, + "Soganlug": { + "ICAO": "UG24", + "elevation": "1500", + "TACAN": "25X", + "runways": [ + { + "headings": [ + { + "14": { + "magHeading": "125", + "ILS": "" + }, + "32": { + "magHeading": "305", + "ILS": "" + } + } + ], + "length": "6500" + } + ] + }, + "Sukhumi-Babushara": { + "ICAO": "UGSS", + "elevation": "43", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "109", + "ILS": "" + }, + "30": { + "magHeading": "289", + "ILS": "" + } + } + ], + "length": "11400" + } + ] + }, + "Vaziani": { + "ICAO": "UG27", + "elevation": "1524", + "TACAN": "22X", + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "129", + "ILS": "108.75" + }, + "31": { + "magHeading": "309", + "ILS": "108.75" + } + } + ], + "length": "7700" + } + ] + } + } +} \ No newline at end of file diff --git a/frontend/server/databases/airbases/nevada.json b/frontend/server/databases/airbases/nevada.json new file mode 100644 index 000000000..2eaf04df3 --- /dev/null +++ b/frontend/server/databases/airbases/nevada.json @@ -0,0 +1,558 @@ +{ + "airfields": { + "Beatty": { + "ICAO": "KBTY", + "elevation": "3173", + "TACAN": "94X", + "runways": [ + { + "headings": [ + { + "16": { + "magHeading": "168", + "ILS": "" + }, + "34": { + "magHeading": "348", + "ILS": "" + } + } + ], + "length": "5500" + } + ] + }, + "Boulder City": { + "ICAO": "KBVU", + "elevation": "2205", + "TACAN": "114X", + "runways": [ + { + "headings": [ + { + "15": { + "magHeading": "153", + "ILS": "" + }, + "33": { + "magHeading": "333", + "ILS": "" + } + } + ], + "length": "3700" + }, + { + "headings": [ + { + "27": { + "magHeading": "267", + "ILS": "" + }, + "09": { + "magHeading": "087", + "ILS": "" + } + } + ], + "length": "4400" + } + ] + }, + "Creech": { + "ICAO": "KINS", + "elevation": "3126", + "TACAN": "87X", + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "134", + "ILS": "" + }, + "31": { + "magHeading": "314", + "ILS": "" + } + } + ], + "length": "4700" + }, + { + "headings": [ + { + "26": { + "magHeading": "260", + "ILS": "" + }, + "08": { + "magHeading": "080", + "ILS": "108.70" + } + } + ], + "length": "8700" + } + ] + }, + "Echo Bay": { + "ICAO": "0L9", + "elevation": "1549", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "24": { + "magHeading": "246", + "ILS": "" + }, + "06": { + "magHeading": "066", + "ILS": "" + } + } + ], + "length": "3300" + } + ] + }, + "Groom Lake": { + "ICAO": "KXTA", + "elevation": "4495", + "TACAN": "18X", + "runways": [ + { + "headings": [ + { + "14L": { + "magHeading": "145", + "ILS": "" + }, + "32R": { + "magHeading": "325", + "ILS": "109.30" + } + } + ], + "length": "11700" + }, + { + "headings": [ + { + "14R (CLOSED)": { + "magHeading": "145", + "ILS": "" + }, + "32L (CLOSED)": { + "magHeading": "325", + "ILS": "" + } + } + ], + "length": "17800" + } + ] + }, + "Henderson Executive": { + "ICAO": "KHND", + "elevation": "2493", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "17L": { + "magHeading": "168", + "ILS": "" + }, + "35R": { + "magHeading": "348", + "ILS": "" + } + } + ], + "length": "4600" + }, + { + "headings": [ + { + "17R": { + "magHeading": "168", + "ILS": "" + }, + "35L": { + "magHeading": "348", + "ILS": "" + } + } + ], + "length": "6100" + } + ] + }, + "Jean": { + "ICAO": "", + "elevation": "2825", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "02L": { + "magHeading": "020", + "ILS": "" + }, + "20R": { + "magHeading": "200", + "ILS": "" + } + } + ], + "length": "4500" + }, + { + "headings": [ + { + "02R": { + "magHeading": "020", + "ILS": "" + }, + "20L": { + "magHeading": "200", + "ILS": "" + } + } + ], + "length": "3600" + } + ] + }, + "McCarran International": { + "ICAO": "KLAS", + "elevation": "2178", + "TACAN": "116X", + "runways": [ + { + "headings": [ + { + "01L": { + "magHeading": "013", + "ILS": "" + }, + "19R": { + "magHeading": "193", + "ILS": "" + } + } + ], + "length": "8000" + }, + { + "headings": [ + { + "01R": { + "magHeading": "013", + "ILS": "" + }, + "19L": { + "magHeading": "193", + "ILS": "" + } + } + ], + "length": "8000" + }, + { + "headings": [ + { + "07L": { + "magHeading": "078", + "ILS": "" + }, + "25R": { + "magHeading": "258", + "ILS": "110.30" + } + } + ], + "length": "10600" + }, + { + "headings": [ + { + "07R": { + "magHeading": "078", + "ILS": "" + }, + "25L": { + "magHeading": "258", + "ILS": "" + } + } + ], + "length": "10100" + } + ] + }, + "Laughlin": { + "ICAO": "KIFP", + "elevation": "673", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "16": { + "magHeading": "164", + "ILS": "" + }, + "34": { + "magHeading": "344", + "ILS": "" + } + } + ], + "length": "7100" + } + ] + }, + "Lincoln County": { + "ICAO": "", + "elevation": "4816", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "17": { + "magHeading": "170", + "ILS": "" + }, + "35": { + "magHeading": "350", + "ILS": "" + } + } + ], + "length": "4500" + } + ] + }, + "Mesquite": { + "ICAO": "67L", + "elevation": "1859", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "19": { + "magHeading": "197", + "ILS": "" + }, + "01": { + "magHeading": "017", + "ILS": "" + } + } + ], + "length": "5000" + } + ] + }, + "Mina": { + "ICAO": "", + "elevation": "4560", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "140", + "ILS": "" + }, + "31": { + "magHeading": "320", + "ILS": "" + } + } + ], + "length": "4100" + } + ] + }, + "Nellis": { + "ICAO": "KLSV", + "elevation": "1849", + "TACAN": "12X", + "runways": [ + { + "headings": [ + { + "03L": { + "magHeading": "029", + "ILS": "" + }, + "21R": { + "magHeading": "209", + "ILS": "" + } + } + ], + "length": "9800" + }, + { + "headings": [ + { + "03R": { + "magHeading": "029", + "ILS": "" + }, + "21L": { + "magHeading": "209", + "ILS": "109.10" + } + } + ], + "length": "9800" + } + ] + }, + "North Las Vegas": { + "ICAO": "KVGT", + "elevation": "2228", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "256", + "ILS": "" + }, + "07": { + "magHeading": "076", + "ILS": "" + } + } + ], + "length": "4900" + }, + { + "headings": [ + { + "12L": { + "magHeading": "122", + "ILS": "110.70" + }, + "30R": { + "magHeading": "302", + "ILS": "109.10" + } + } + ], + "length": "3800" + }, + { + "headings": [ + { + "12R": { + "magHeading": "122", + "ILS": "" + }, + "30L": { + "magHeading": "302", + "ILS": "" + } + } + ], + "length": "4600" + } + ] + }, + "Pahute Mesa": { + "ICAO": "", + "elevation": "5059", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "18": { + "magHeading": "182", + "ILS": "" + }, + "36": { + "magHeading": "002", + "ILS": "" + } + } + ], + "length": "5500" + } + ] + }, + "Tonopah": { + "ICAO": "KTPH", + "elevation": "5390", + "TACAN": "119X", + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "113", + "ILS": "" + }, + "29": { + "magHeading": "293", + "ILS": "" + } + } + ], + "length": "5600" + }, + { + "headings": [ + { + "15": { + "magHeading": "153", + "ILS": "" + }, + "33": { + "magHeading": "333", + "ILS": "" + } + } + ], + "length": "6800" + } + ] + }, + "Tonopah Test Range": { + "ICAO": "KTNX", + "elevation": "5535", + "TACAN": "77X", + "runways": [ + { + "headings": [ + { + "14": { + "magHeading": "145", + "ILS": "108.30" + }, + "32": { + "magHeading": "325", + "ILS": "111.70" + } + } + ], + "length": "11700" + } + ] + } + } +} \ No newline at end of file diff --git a/frontend/server/databases/airbases/normandy.json b/frontend/server/databases/airbases/normandy.json new file mode 100644 index 000000000..9b7a4874d --- /dev/null +++ b/frontend/server/databases/airbases/normandy.json @@ -0,0 +1,2633 @@ +{ + "airfields": { + "Lantheuil": { + "runways": [ + { + "headings": [ + { + "6": { + "magHeading": "69", + "Heading": "60", + "ILS": "" + } + }, + { + "24": { + "magHeading": "249", + "Heading": "240", + "ILS": "" + } + } + ], + "length": "3597" + } + ], + "TACAN": "", + "ICAO": "B-9", + "elevation": "174" + }, + "Meautis": { + "runways": [ + { + "headings": [ + { + "8": { + "magHeading": "89", + "Heading": "80", + "ILS": "" + } + }, + { + "26": { + "magHeading": "269", + "Heading": "260", + "ILS": "" + } + } + ], + "length": "3951" + } + ], + "TACAN": "", + "ICAO": "A-17", + "elevation": "83" + }, + "Evreux": { + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "224", + "Heading": "215", + "ILS": "" + } + }, + { + "04": { + "magHeading": "44", + "Heading": "35", + "ILS": "" + } + } + ], + "length": "5102" + }, + { + "headings": [ + { + "17": { + "magHeading": "173", + "Heading": "164", + "ILS": "" + } + }, + { + "35": { + "magHeading": "353", + "Heading": "344", + "ILS": "" + } + } + ], + "length": "5102" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "423" + }, + "Deux Jumeaux": { + "runways": [ + { + "headings": [ + { + "28": { + "magHeading": "294", + "Heading": "285", + "ILS": "" + } + }, + { + "10": { + "magHeading": "114", + "Heading": "105", + "ILS": "" + } + } + ], + "length": "4628" + } + ], + "TACAN": "", + "ICAO": "A-4", + "elevation": "123" + }, + "Deanland": { + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "243", + "Heading": "234", + "ILS": "" + } + }, + { + "4": { + "magHeading": "63", + "Heading": "54", + "ILS": "" + } + } + ], + "length": "3371" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "72" + }, + "Beaumont-le-Roger": { + "runways": [ + { + "headings": [ + { + "33": { + "magHeading": "330", + "Heading": "321", + "ILS": "" + } + }, + { + "15": { + "magHeading": "150", + "Heading": "141", + "ILS": "" + } + } + ], + "length": "2544" + }, + { + "headings": [ + { + "24": { + "magHeading": "240", + "Heading": "231", + "ILS": "" + } + }, + { + "06": { + "magHeading": "60", + "Heading": "51", + "ILS": "" + } + } + ], + "length": "2544" + }, + { + "headings": [ + { + "4": { + "magHeading": "272", + "Heading": "263", + "ILS": "" + } + }, + { + "22": { + "magHeading": "92", + "Heading": "83", + "ILS": "" + } + } + ], + "length": "2750" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "488" + }, + "Biniville": { + "runways": [ + { + "headings": [ + { + "14": { + "magHeading": "149", + "Heading": "140", + "ILS": "" + } + }, + { + "32": { + "magHeading": "329", + "Heading": "320", + "ILS": "" + } + } + ], + "length": "3383" + } + ], + "TACAN": "", + "ICAO": "A-24", + "elevation": "106" + }, + "Funtington": { + "runways": [ + { + "headings": [ + { + "15": { + "magHeading": "159", + "Heading": "150", + "ILS": "" + } + }, + { + "33": { + "magHeading": "339", + "Heading": "330", + "ILS": "" + } + } + ], + "length": "5189" + }, + { + "headings": [ + { + "09": { + "magHeading": "94", + "Heading": "85", + "ILS": "" + } + }, + { + "27": { + "magHeading": "274", + "Heading": "265", + "ILS": "" + } + } + ], + "length": "6987" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "124" + }, + "Beny-sur-Mer": { + "runways": [ + { + "headings": [ + { + "35": { + "magHeading": "361", + "Heading": "352", + "ILS": "" + } + }, + { + "17": { + "magHeading": "181", + "Heading": "172", + "ILS": "" + } + } + ], + "length": "3155" + } + ], + "TACAN": "", + "ICAO": "B-4", + "elevation": "199" + }, + "Hauterive": { + "runways": [ + { + "headings": [ + { + "15": { + "magHeading": "151", + "Heading": "142", + "ILS": "" + } + }, + { + "33": { + "magHeading": "331", + "Heading": "322", + "ILS": "" + } + } + ], + "length": "3283" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "489" + }, + "Lignerolles": { + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "119", + "Heading": "110", + "ILS": "" + } + }, + { + "29": { + "magHeading": "299", + "Heading": "290", + "ILS": "" + } + } + ], + "length": "3436" + } + ], + "TACAN": "", + "ICAO": "A-12", + "elevation": "404" + }, + "Kenley": { + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "130", + "Heading": "121", + "ILS": "" + } + }, + { + "31": { + "magHeading": "310", + "Heading": "301", + "ILS": "" + } + } + ], + "length": "2110" + }, + { + "headings": [ + { + "30": { + "magHeading": "30", + "Heading": "21", + "ILS": "" + } + }, + { + "12": { + "magHeading": "210", + "Heading": "201", + "ILS": "" + } + } + ], + "length": "2110" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "561" + }, + "Gravesend": { + "runways": [ + { + "headings": [ + { + "18": { + "magHeading": "186", + "Heading": "177", + "ILS": "" + } + }, + { + "36": { + "magHeading": "366", + "Heading": "357", + "ILS": "" + } + } + ], + "length": "5160" + }, + { + "headings": [ + { + "24": { + "magHeading": "245", + "Heading": "236", + "ILS": "" + } + }, + { + "06": { + "magHeading": "65", + "Heading": "56", + "ILS": "" + } + } + ], + "length": "5160" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "178" + }, + "Triqueville": { + "runways": [ + { + "headings": [ + { + "34": { + "magHeading": "348", + "Heading": "339", + "ILS": "" + } + }, + { + "16": { + "magHeading": "168", + "Heading": "159", + "ILS": "" + } + } + ], + "length": "3215" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "402" + }, + "Rucqueville": { + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "279", + "Heading": "270", + "ILS": "" + } + }, + { + "9": { + "magHeading": "99", + "Heading": "90", + "ILS": "" + } + } + ], + "length": "4561" + } + ], + "TACAN": "", + "ICAO": "B-7", + "elevation": "192" + }, + "Villacoublay": { + "runways": [ + { + "headings": [ + { + "30": { + "magHeading": "312", + "Heading": "303", + "ILS": "" + } + }, + { + "12": { + "magHeading": "132", + "Heading": "123", + "ILS": "" + } + } + ], + "length": "3710" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "557" + }, + "Bazenville": { + "runways": [ + { + "headings": [ + { + "5": { + "magHeading": "62", + "Heading": "53", + "ILS": "" + } + }, + { + "23": { + "magHeading": "242", + "Heading": "233", + "ILS": "" + } + } + ], + "length": "3800" + } + ], + "TACAN": "", + "ICAO": "B-2", + "elevation": "199" + }, + "Stoney Cross": { + "runways": [ + { + "headings": [ + { + "6": { + "magHeading": "71", + "Heading": "62", + "ILS": "" + } + }, + { + "24": { + "magHeading": "251", + "Heading": "242", + "ILS": "" + } + } + ], + "length": "5647" + }, + { + "headings": [ + { + "19": { + "magHeading": "190", + "Heading": "181", + "ILS": "" + } + }, + { + "01": { + "magHeading": "10", + "Heading": "1", + "ILS": "" + } + } + ], + "length": "5647" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "384" + }, + "Dinan-Trelivan": { + "runways": [ + { + "headings": [ + { + "7": { + "magHeading": "79", + "Heading": "70", + "ILS": "" + } + }, + { + "25": { + "magHeading": "259", + "Heading": "250", + "ILS": "" + } + } + ], + "length": "2509" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "377" + }, + "Ford": { + "runways": [ + { + "headings": [ + { + "14": { + "magHeading": "152", + "Heading": "143", + "ILS": "" + } + }, + { + "32": { + "magHeading": "332", + "Heading": "323", + "ILS": "" + } + } + ], + "length": "4617" + }, + { + "headings": [ + { + "06": { + "magHeading": "66", + "Heading": "57", + "ILS": "" + } + }, + { + "24": { + "magHeading": "246", + "Heading": "237", + "ILS": "" + } + } + ], + "length": "5833" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "29" + }, + "Cricqueville-en-Bessin": { + "runways": [ + { + "headings": [ + { + "17": { + "magHeading": "182", + "Heading": "173", + "ILS": "" + } + }, + { + "35": { + "magHeading": "362", + "Heading": "353", + "ILS": "" + } + } + ], + "length": "3459" + } + ], + "TACAN": "", + "ICAO": "A-2", + "elevation": "81" + }, + "Beuzeville": { + "runways": [ + { + "headings": [ + { + "5": { + "magHeading": "58", + "Heading": "49", + "ILS": "" + } + }, + { + "23": { + "magHeading": "238", + "Heading": "229", + "ILS": "" + } + } + ], + "length": "3840" + } + ], + "TACAN": "", + "ICAO": "A-6", + "elevation": "114" + }, + "Sommervieu": { + "runways": [ + { + "headings": [ + { + "9": { + "magHeading": "95", + "Heading": "86", + "ILS": "" + } + }, + { + "27": { + "magHeading": "275", + "Heading": "266", + "ILS": "" + } + } + ], + "length": "3840" + } + ], + "TACAN": "", + "ICAO": "B-8", + "elevation": "186" + }, + "Avranches Le Val-Saint-Pere": { + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "135", + "Heading": "126", + "ILS": "" + } + }, + { + "31": { + "magHeading": "315", + "Heading": "306", + "ILS": "" + } + } + ], + "length": "3215" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "46" + }, + "West Malling": { + "runways": [ + { + "headings": [ + { + "33": { + "magHeading": "253", + "Heading": "244", + "ILS": "" + } + }, + { + "15": { + "magHeading": "73", + "Heading": "64", + "ILS": "" + } + } + ], + "length": "5037" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "305" + }, + "Needs Oar Point": { + "runways": [ + { + "headings": [ + { + "6": { + "magHeading": "69", + "Heading": "60", + "ILS": "" + } + }, + { + "24": { + "magHeading": "249", + "Heading": "240", + "ILS": "" + } + } + ], + "length": "4255" + }, + { + "headings": [ + { + "17": { + "magHeading": "179", + "Heading": "170", + "ILS": "" + } + }, + { + "35": { + "magHeading": "359", + "Heading": "350", + "ILS": "" + } + } + ], + "length": "4255" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "19" + }, + "Longues-sur-Mer": { + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "129", + "Heading": "120", + "ILS": "" + } + }, + { + "30": { + "magHeading": "309", + "Heading": "300", + "ILS": "" + } + } + ], + "length": "3155" + } + ], + "TACAN": "", + "ICAO": "B-11", + "elevation": "225" + }, + "Barville": { + "runways": [ + { + "headings": [ + { + "33": { + "magHeading": "336", + "Heading": "327", + "ILS": "" + } + }, + { + "15": { + "magHeading": "156", + "Heading": "147", + "ILS": "" + } + } + ], + "length": "4216" + }, + { + "headings": [ + { + "28": { + "magHeading": "285", + "Heading": "276", + "ILS": "" + } + }, + { + "10": { + "magHeading": "105", + "Heading": "96", + "ILS": "" + } + } + ], + "length": "4216" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "462" + }, + "Fecamp-Benouville": { + "runways": [ + { + "headings": [ + { + "36": { + "magHeading": "369", + "Heading": "360", + "ILS": "" + } + }, + { + "18": { + "magHeading": "189", + "Heading": "180", + "ILS": "" + } + } + ], + "length": "3182" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "295" + }, + "Merville Calonne": { + "runways": [ + { + "headings": [ + { + "08": { + "magHeading": "82", + "Heading": "73", + "ILS": "" + } + }, + { + "26": { + "magHeading": "262", + "Heading": "253", + "ILS": "" + } + } + ], + "length": "4285" + }, + { + "headings": [ + { + "22": { + "magHeading": "223", + "Heading": "214", + "ILS": "" + } + }, + { + "04": { + "magHeading": "43", + "Heading": "34", + "ILS": "" + } + } + ], + "length": "5195" + }, + { + "headings": [ + { + "32": { + "magHeading": "325", + "Heading": "316", + "ILS": "" + } + }, + { + "14": { + "magHeading": "145", + "Heading": "136", + "ILS": "" + } + } + ], + "length": "5365" + } + ], + "TACAN": "", + "ICAO": "LFQT", + "elevation": "131" + }, + "Saint-Omer Wizernes": { + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "99", + "Heading": "90", + "ILS": "" + } + }, + { + "28": { + "magHeading": "279", + "Heading": "270", + "ILS": "" + } + } + ], + "length": "1912" + }, + { + "headings": [ + { + "02": { + "magHeading": "39", + "Heading": "30", + "ILS": "" + } + }, + { + "20": { + "magHeading": "219", + "Heading": "210", + "ILS": "" + } + } + ], + "length": "1912" + } + ], + "TACAN": "", + "ICAO": "LFQN", + "elevation": "213" + }, + "Carpiquet": { + "runways": [ + { + "headings": [ + { + "30": { + "magHeading": "313", + "Heading": "304", + "ILS": "" + } + }, + { + "12": { + "magHeading": "133", + "Heading": "124", + "ILS": "" + } + } + ], + "length": "5114" + } + ], + "TACAN": "", + "ICAO": "B-17", + "elevation": "187" + }, + "Cardonville": { + "runways": [ + { + "headings": [ + { + "33": { + "magHeading": "343", + "Heading": "334", + "ILS": "" + } + }, + { + "15": { + "magHeading": "163", + "Heading": "154", + "ILS": "" + } + } + ], + "length": "4541" + } + ], + "TACAN": "", + "ICAO": "A-3", + "elevation": "101" + }, + "Picauville": { + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "119", + "Heading": "110", + "ILS": "" + } + }, + { + "29": { + "magHeading": "299", + "Heading": "290", + "ILS": "" + } + } + ], + "length": "3840" + } + ], + "TACAN": "", + "ICAO": "A-8", + "elevation": "72" + }, + "Orly": { + "runways": [ + { + "headings": [ + { + "7": { + "magHeading": "77", + "Heading": "68", + "ILS": "" + } + }, + { + "25": { + "magHeading": "257", + "Heading": "248", + "ILS": "" + } + } + ], + "length": "3227" + }, + { + "headings": [ + { + "02": { + "magHeading": "23", + "Heading": "14", + "ILS": "" + } + }, + { + "20": { + "magHeading": "203", + "Heading": "194", + "ILS": "" + } + } + ], + "length": "3227" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "272" + }, + "Vrigny": { + "runways": [ + { + "headings": [ + { + "14": { + "magHeading": "144", + "Heading": "135", + "ILS": "" + } + }, + { + "32": { + "magHeading": "324", + "Heading": "315", + "ILS": "" + } + } + ], + "length": "3283" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "590" + }, + "Abbeville Drucat": { + "runways": [ + { + "headings": [ + { + "31": { + "magHeading": "315", + "Heading": "306", + "ILS": "" + } + }, + { + "13": { + "magHeading": "135", + "Heading": "126", + "ILS": "" + } + } + ], + "length": "3621" + }, + { + "headings": [ + { + "20": { + "magHeading": "207", + "Heading": "198", + "ILS": "" + } + }, + { + "02": { + "magHeading": "27", + "Heading": "18", + "ILS": "" + } + } + ], + "length": "3621" + }, + { + "headings": [ + { + "09": { + "magHeading": "94", + "Heading": "85", + "ILS": "" + } + }, + { + "27": { + "magHeading": "274", + "Heading": "265", + "ILS": "" + } + } + ], + "length": "4867" + } + ], + "TACAN": "", + "ICAO": "LFOI", + "elevation": "216" + }, + "Detling": { + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "230", + "Heading": "221", + "ILS": "" + } + }, + { + "4": { + "magHeading": "50", + "Heading": "41", + "ILS": "" + } + } + ], + "length": "3563" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "593" + }, + "Lympne": { + "runways": [ + { + "headings": [ + { + "FIELD S": { + "magHeading": "208", + "Heading": "199", + "ILS": "" + } + }, + { + "FIELD N": { + "magHeading": "28", + "Heading": "19", + "ILS": "" + } + } + ], + "length": "3211" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "202" + }, + "Cretteville": { + "runways": [ + { + "headings": [ + { + "31": { + "magHeading": "319", + "Heading": "310", + "ILS": "" + } + }, + { + "13": { + "magHeading": "139", + "Heading": "130", + "ILS": "" + } + } + ], + "length": "4594" + } + ], + "TACAN": "", + "ICAO": "A-14", + "elevation": "95" + }, + "Conches": { + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "232", + "Heading": "223", + "ILS": "" + } + }, + { + "4": { + "magHeading": "52", + "Heading": "43", + "ILS": "" + } + } + ], + "length": "4844" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "541" + }, + "Lymington": { + "runways": [ + { + "headings": [ + { + "30": { + "magHeading": "325", + "Heading": "316", + "ILS": "" + } + }, + { + "12": { + "magHeading": "145", + "Heading": "136", + "ILS": "" + } + } + ], + "length": "3383" + }, + { + "headings": [ + { + "24": { + "magHeading": "247", + "Heading": "238", + "ILS": "" + } + }, + { + "06": { + "magHeading": "67", + "Heading": "58", + "ILS": "" + } + } + ], + "length": "3383" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "19" + }, + "Flers": { + "runways": [ + { + "headings": [ + { + "23": { + "magHeading": "241", + "Heading": "232", + "ILS": "" + } + }, + { + "05": { + "magHeading": "61", + "Heading": "52", + "ILS": "" + } + } + ], + "length": "3215" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "650" + }, + "Manston": { + "runways": [ + { + "headings": [ + { + "02": { + "magHeading": "107", + "Heading": "98", + "ILS": "" + } + }, + { + "20": { + "magHeading": "287", + "Heading": "278", + "ILS": "" + } + } + ], + "length": "8992" + } + ], + "TACAN": "", + "ICAO": "EGMH", + "elevation": "157" + }, + "Biggin Hill": { + "runways": [ + { + "headings": [ + { + "21": { + "magHeading": "213", + "Heading": "203", + "ILS": "" + } + }, + { + "03": { + "magHeading": "33", + "Heading": "23", + "ILS": "" + } + } + ], + "length": "4988" + }, + { + "headings": [ + { + "23": { + "magHeading": "233", + "Heading": "223", + "ILS": "" + } + }, + { + "05": { + "magHeading": "53", + "Heading": "43", + "ILS": "" + } + } + ], + "length": "2819" + }, + { + "headings": [ + { + "29": { + "magHeading": "293", + "Heading": "283", + "ILS": "" + } + }, + { + "11": { + "magHeading": "113", + "Heading": "103", + "ILS": "" + } + } + ], + "length": "2855" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "0" + }, + "Odiham": { + "runways": [ + { + "headings": [ + { + "28": { + "magHeading": "284", + "Heading": "275", + "ILS": "" + } + }, + { + "10": { + "magHeading": "104", + "Heading": "95", + "ILS": "" + } + } + ], + "length": "4799" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "366" + }, + "Saint-Andre-de-lEure": { + "runways": [ + { + "headings": [ + { + "31": { + "magHeading": "316", + "Heading": "307", + "ILS": "" + } + }, + { + "13": { + "magHeading": "136", + "Heading": "127", + "ILS": "" + } + } + ], + "length": "4992" + }, + { + "headings": [ + { + "24": { + "magHeading": "238", + "Heading": "229", + "ILS": "" + } + }, + { + "06": { + "magHeading": "58", + "Heading": "49", + "ILS": "" + } + } + ], + "length": "4992" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "468" + }, + "Heathrow": { + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "97", + "Heading": "88", + "ILS": "" + } + }, + { + "30": { + "magHeading": "277", + "Heading": "268", + "ILS": "" + } + } + ], + "length": "8592" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "88" + }, + "Le Molay": { + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "230", + "Heading": "221", + "ILS": "" + } + }, + { + "04": { + "magHeading": "50", + "Heading": "41", + "ILS": "" + } + } + ], + "length": "3840" + } + ], + "TACAN": "", + "ICAO": "A-9", + "elevation": "104" + }, + "Guyancourt": { + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "142", + "Heading": "133", + "ILS": "" + } + }, + { + "31": { + "magHeading": "322", + "Heading": "313", + "ILS": "" + } + } + ], + "length": "2544" + }, + { + "headings": [ + { + "05": { + "magHeading": "51", + "Heading": "42", + "ILS": "" + } + }, + { + "23": { + "magHeading": "231", + "Heading": "222", + "ILS": "" + } + } + ], + "length": "2544" + }, + { + "headings": [ + { + "08": { + "magHeading": "84", + "Heading": "75", + "ILS": "" + } + }, + { + "26": { + "magHeading": "264", + "Heading": "255", + "ILS": "" + } + } + ], + "length": "2750" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "524" + }, + "Broglie": { + "runways": [ + { + "headings": [ + { + "30": { + "magHeading": "306", + "Heading": "297", + "ILS": "" + } + }, + { + "12": { + "magHeading": "126", + "Heading": "117", + "ILS": "" + } + } + ], + "length": "3281" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "594" + }, + "Saint-Aubin": { + "runways": [ + { + "headings": [ + { + "31": { + "magHeading": "313", + "Heading": "304", + "ILS": "" + } + }, + { + "13": { + "magHeading": "133", + "Heading": "124", + "ILS": "" + } + } + ], + "length": "2888" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "311" + }, + "Amiens-Glisy": { + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "121", + "Heading": "112", + "ILS": "" + } + }, + { + "29": { + "magHeading": "301", + "Heading": "292", + "ILS": "" + } + } + ], + "length": "4994" + }, + { + "headings": [ + { + "23": { + "magHeading": "230", + "Heading": "221", + "ILS": "" + } + }, + { + "05": { + "magHeading": "50", + "Heading": "41", + "ILS": "" + } + } + ], + "length": "4994" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "192" + }, + "Sainte-Laurent-sur-Mer": { + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "116", + "Heading": "107", + "ILS": "" + } + }, + { + "29": { + "magHeading": "296", + "Heading": "287", + "ILS": "" + } + } + ], + "length": "4561" + } + ], + "TACAN": "", + "ICAO": "A-21", + "elevation": "58" + }, + "Tangmere": { + "runways": [ + { + "headings": [ + { + "34": { + "magHeading": "341", + "Heading": "332", + "ILS": "" + } + }, + { + "16": { + "magHeading": "161", + "Heading": "152", + "ILS": "" + } + } + ], + "length": "4721" + }, + { + "headings": [ + { + "07": { + "magHeading": "71", + "Heading": "62", + "ILS": "" + } + }, + { + "25": { + "magHeading": "251", + "Heading": "242", + "ILS": "" + } + } + ], + "length": "5851" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "47" + }, + "Chippelle": { + "runways": [ + { + "headings": [ + { + "6": { + "magHeading": "69", + "Heading": "60", + "ILS": "" + } + }, + { + "24": { + "magHeading": "249", + "Heading": "240", + "ILS": "" + } + } + ], + "length": "4643" + } + ], + "TACAN": "", + "ICAO": "A-5", + "elevation": "124" + }, + "Cormeilles-en-Vexin": { + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "228", + "Heading": "219", + "ILS": "" + } + }, + { + "4": { + "magHeading": "48", + "Heading": "39", + "ILS": "" + } + } + ], + "length": "5096" + }, + { + "headings": [ + { + "12": { + "magHeading": "123", + "Heading": "114", + "ILS": "" + } + }, + { + "30": { + "magHeading": "303", + "Heading": "294", + "ILS": "" + } + } + ], + "length": "5096" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "311" + }, + "Azeville": { + "runways": [ + { + "headings": [ + { + "7": { + "magHeading": "79", + "Heading": "70", + "ILS": "" + } + }, + { + "25": { + "magHeading": "259", + "Heading": "250", + "ILS": "" + } + } + ], + "length": "3549" + } + ], + "TACAN": "", + "ICAO": "A-7", + "elevation": "74" + }, + "Chailey": { + "runways": [ + { + "headings": [ + { + "15": { + "magHeading": "160", + "Heading": "151", + "ILS": "" + } + }, + { + "33": { + "magHeading": "340", + "Heading": "331", + "ILS": "" + } + } + ], + "length": "3383" + }, + { + "headings": [ + { + "08": { + "magHeading": "82", + "Heading": "73", + "ILS": "" + } + }, + { + "26": { + "magHeading": "262", + "Heading": "253", + "ILS": "" + } + } + ], + "length": "4" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "95" + }, + "Lessay": { + "runways": [ + { + "headings": [ + { + "24": { + "magHeading": "252", + "Heading": "243", + "ILS": "" + } + }, + { + "6": { + "magHeading": "72", + "Heading": "63", + "ILS": "" + } + } + ], + "length": "4585" + }, + { + "headings": [ + { + "31": { + "magHeading": "313", + "Heading": "304", + "ILS": "" + } + }, + { + "13": { + "magHeading": "133", + "Heading": "124", + "ILS": "" + } + } + ], + "length": "4585" + } + ], + "TACAN": "", + "ICAO": "A-20", + "elevation": "65" + }, + "Lonrai": { + "runways": [ + { + "headings": [ + { + "6": { + "magHeading": "69", + "Heading": "60", + "ILS": "" + } + }, + { + "24": { + "magHeading": "249", + "Heading": "240", + "ILS": "" + } + } + ], + "length": "4015" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "515" + }, + "Deauville": { + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "124", + "Heading": "115", + "ILS": "" + } + }, + { + "30": { + "magHeading": "304", + "Heading": "295", + "ILS": "" + } + } + ], + "length": "2838" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "459" + }, + "Beauvais-Tille": { + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "129", + "Heading": "120", + "ILS": "" + } + }, + { + "30": { + "magHeading": "309", + "Heading": "300", + "ILS": "" + } + } + ], + "length": "5535" + }, + { + "headings": [ + { + "23": { + "magHeading": "227", + "Heading": "218", + "ILS": "" + } + }, + { + "05": { + "magHeading": "47", + "Heading": "38", + "ILS": "" + } + } + ], + "length": "5748" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "331" + }, + "Poix": { + "runways": [ + { + "headings": [ + { + "04": { + "magHeading": "48", + "Heading": "39", + "ILS": "" + } + }, + { + "22": { + "magHeading": "228", + "Heading": "219", + "ILS": "" + } + } + ], + "length": "5082" + }, + { + "headings": [ + { + "28": { + "magHeading": "279", + "Heading": "270", + "ILS": "" + } + }, + { + "10": { + "magHeading": "99", + "Heading": "90", + "ILS": "" + } + } + ], + "length": "5082" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "547" + }, + "Friston": { + "runways": [ + { + "headings": [ + { + "6": { + "magHeading": "69", + "Heading": "60", + "ILS": "" + } + }, + { + "24": { + "magHeading": "249", + "Heading": "240", + "ILS": "" + } + } + ], + "length": "3215" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "308" + }, + "Farnborough": { + "runways": [ + { + "headings": [ + { + "17": { + "magHeading": "181", + "Heading": "172", + "ILS": "" + } + }, + { + "35": { + "magHeading": "361", + "Heading": "352", + "ILS": "" + } + } + ], + "length": "3631" + }, + { + "headings": [ + { + "25": { + "magHeading": "249", + "Heading": "240", + "ILS": "" + } + }, + { + "07": { + "magHeading": "69", + "Heading": "60", + "ILS": "" + } + } + ], + "length": "3631" + }, + { + "headings": [ + { + "12": { + "magHeading": "116", + "Heading": "106", + "ILS": "" + } + }, + { + "30": { + "magHeading": "296", + "Heading": "286", + "ILS": "" + } + } + ], + "length": "3074" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "246" + }, + "Argentan": { + "runways": [ + { + "headings": [ + { + "30": { + "magHeading": "306", + "Heading": "297", + "ILS": "" + } + }, + { + "12": { + "magHeading": "126", + "Heading": "117", + "ILS": "" + } + } + ], + "length": "3281" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "639" + }, + "Sainte-Croix-sur-Mer": { + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "279", + "Heading": "270", + "ILS": "" + } + }, + { + "9": { + "magHeading": "99", + "Heading": "90", + "ILS": "" + } + } + ], + "length": "3840" + } + ], + "TACAN": "", + "ICAO": "B-3", + "elevation": "160" + }, + "Essay": { + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "284", + "Heading": "275", + "ILS": "" + } + }, + { + "9": { + "magHeading": "104", + "Heading": "95", + "ILS": "" + } + } + ], + "length": "3384" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "500" + }, + "Bernay Saint Martin": { + "runways": [ + { + "headings": [ + { + "18": { + "magHeading": "189", + "Heading": "180", + "ILS": "" + } + }, + { + "36": { + "magHeading": "369", + "Heading": "360", + "ILS": "" + } + } + ], + "length": "3182" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "523" + }, + "Maupertus": { + "runways": [ + { + "headings": [ + { + "28": { + "magHeading": "290", + "Heading": "281", + "ILS": "" + } + }, + { + "10": { + "magHeading": "110", + "Heading": "101", + "ILS": "" + } + } + ], + "length": "4795" + } + ], + "TACAN": "", + "ICAO": "A-15", + "elevation": "441" + }, + "Saint Pierre du Mont": { + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "281", + "Heading": "272", + "ILS": "" + } + }, + { + "9": { + "magHeading": "101", + "Heading": "92", + "ILS": "" + } + } + ], + "length": "4735" + } + ], + "TACAN": "", + "ICAO": "A-1", + "elevation": "103" + }, + "Brucheville": { + "runways": [ + { + "headings": [ + { + "7": { + "magHeading": "75", + "Heading": "66", + "ILS": "" + } + }, + { + "25": { + "magHeading": "255", + "Heading": "246", + "ILS": "" + } + } + ], + "length": "3413" + } + ], + "TACAN": "", + "ICAO": "A-16", + "elevation": "45" + }, + "Creil": { + "runways": [ + { + "headings": [ + { + "07": { + "magHeading": "70", + "Heading": "61", + "ILS": "" + } + }, + { + "25": { + "magHeading": "250", + "Heading": "241", + "ILS": "" + } + } + ], + "length": "7361" + }, + { + "headings": [ + { + "15": { + "magHeading": "139", + "Heading": "130", + "ILS": "" + } + }, + { + "33": { + "magHeading": "319", + "Heading": "310", + "ILS": "" + } + } + ], + "length": "4301" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "269" + }, + "Ronai": { + "runways": [ + { + "headings": [ + { + "30": { + "magHeading": "313", + "Heading": "304", + "ILS": "" + } + }, + { + "12": { + "magHeading": "133", + "Heading": "124", + "ILS": "" + } + } + ], + "length": "4233" + }, + { + "headings": [ + { + "26": { + "magHeading": "262", + "Heading": "253", + "ILS": "" + } + }, + { + "08": { + "magHeading": "82", + "Heading": "73", + "ILS": "" + } + } + ], + "length": "4233" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "859" + }, + "Goulet": { + "runways": [ + { + "headings": [ + { + "35": { + "magHeading": "36", + "Heading": "27", + "ILS": "" + } + }, + { + "17": { + "magHeading": "216", + "Heading": "207", + "ILS": "" + } + } + ], + "length": "3283" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "616" + }, + "Rouen-Boos": { + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "227", + "Heading": "218", + "ILS": "" + } + }, + { + "4": { + "magHeading": "47", + "Heading": "38", + "ILS": "" + } + } + ], + "length": "3215" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "492" + } + } +} \ No newline at end of file diff --git a/frontend/server/databases/airbases/persiangulf.json b/frontend/server/databases/airbases/persiangulf.json new file mode 100644 index 000000000..676edee14 --- /dev/null +++ b/frontend/server/databases/airbases/persiangulf.json @@ -0,0 +1,769 @@ +{ + "airfields": { + "Abu Dhabi Intl": { + "elevation": "92", + "ICAO": "OMAA", + "runways": [ + { + "headings": [ + { + "13L": { + "ILS": "", + "magHeading": "127" + }, + "31R": { + "ILS": "", + "magHeading": "307" + } + } + ], + "length": "13100" + }, + { + "headings": [ + { + "13R": { + "ILS": "", + "magHeading": "127" + }, + "31L": { + "ILS": "", + "magHeading": "307" + } + } + ], + "length": "13200" + } + ], + "TACAN": "" + }, + "Abu Musa Island": { + "elevation": "16", + "ICAO": "OIBA", + "runways": [ + { + "headings": [ + { + "26": { + "ILS": "", + "magHeading": "262" + }, + "08": { + "ILS": "", + "magHeading": "082" + } + } + ], + "length": "7800" + } + ], + "TACAN": "" + }, + "Al Ain Intl": { + "elevation": "814", + "ICAO": "OMAL", + "runways": [ + { + "headings": [ + { + "19": { + "ILS": "", + "magHeading": "186" + }, + "01": { + "ILS": "", + "magHeading": "006" + } + } + ], + "length": "12800" + } + ], + "TACAN": "" + }, + "Al Dhafra AFB": { + "elevation": "52", + "ICAO": "OMAM", + "runways": [ + { + "headings": [ + { + "13L": { + "ILS": "111.10", + "magHeading": "126" + }, + "31R": { + "ILS": "109.10", + "magHeading": "306" + } + } + ], + "length": "11700" + }, + { + "headings": [ + { + "13R": { + "ILS": "108.70", + "magHeading": "16" + }, + "31L": { + "ILS": "108.70", + "magHeading": "306" + } + } + ], + "length": "11700" + } + ], + "TACAN": "96X" + }, + "Al Maktoum Intl": { + "elevation": "125", + "ICAO": "OMDW", + "runways": [ + { + "headings": [ + { + "12": { + "ILS": "111.75", + "magHeading": "120" + }, + "30": { + "ILS": "109.75", + "magHeading": "300" + } + } + ], + "length": "14400" + } + ], + "TACAN": "" + }, + "Al Minhad AFB": { + "elevation": "190", + "ICAO": "OMDM", + "runways": [ + { + "headings": [ + { + "27": { + "ILS": "110.75", + "magHeading": "268" + }, + "09": { + "ILS": "110.70", + "magHeading": "088" + } + } + ], + "length": "12600" + } + ], + "TACAN": "99X" + }, + "Al-Bateen": { + "elevation": "12", + "ICAO": "OMAD", + "runways": [ + { + "headings": [ + { + "13": { + "ILS": "", + "magHeading": "127" + }, + "31": { + "ILS": "", + "magHeading": "307" + } + } + ], + "length": "7000" + } + ], + "TACAN": "" + }, + "Bandar Abbas Intl": { + "elevation": "29", + "ICAO": "OIKB", + "runways": [ + { + "headings": [ + { + "03L": { + "ILS": "", + "magHeading": "25" + }, + "21R": { + "ILS": "", + "magHeading": "205" + } + } + ], + "length": "11000" + }, + { + "headings": [ + { + "03R": { + "ILS": "", + "magHeading": "25" + }, + "21L": { + "ILS": "109.90", + "magHeading": "205" + } + } + ], + "length": "11700" + } + ], + "TACAN": "78X" + }, + "Bandar Lengeh": { + "elevation": "82", + "ICAO": "OIBL", + "runways": [ + { + "headings": [ + { + "26": { + "ILS": "", + "magHeading": "259" + }, + "08": { + "ILS": "", + "magHeading": "079" + } + } + ], + "length": "7900" + } + ], + "TACAN": "" + }, + "Bandar-e-Jask": { + "elevation": "26", + "ICAO": "OIZJ", + "runways": [ + { + "headings": [ + { + "24": { + "ILS": "", + "magHeading": "239" + }, + "06": { + "ILS": "", + "magHeading": "059" + } + } + ], + "length": "7300" + } + ], + "TACAN": "110X" + }, + "Dubai Intl": { + "elevation": "16", + "ICAO": "OMDB", + "runways": [ + { + "headings": [ + { + "12L": { + "ILS": "110.10", + "magHeading": "120" + }, + "30R": { + "ILS": "110.90", + "magHeading": "300" + } + } + ], + "length": "11400" + }, + { + "headings": [ + { + "12R": { + "ILS": "109.50", + "magHeading": "120" + }, + "30L": { + "ILS": "111.30", + "magHeading": "300" + } + } + ], + "length": "11400" + } + ], + "TACAN": "" + }, + "Fujairah Intl": { + "elevation": "121", + "ICAO": "OMFJ", + "runways": [ + { + "headings": [ + { + "11": { + "ILS": "", + "magHeading": "111" + }, + "29": { + "ILS": "111.50", + "magHeading": "291" + } + } + ], + "length": "9700" + } + ], + "TACAN": "" + }, + "Havadarya": { + "elevation": "52", + "ICAO": "OIKP", + "runways": [ + { + "headings": [ + { + "26": { + "ILS": "", + "magHeading": "257" + }, + "08": { + "ILS": "108.90", + "magHeading": "077" + } + } + ], + "length": "7200" + } + ], + "TACAN": "47X" + }, + "Jiroft": { + "elevation": "2664", + "ICAO": "OIKJ", + "runways": [ + { + "headings": [ + { + "13": { + "ILS": "", + "magHeading": "125" + }, + "31": { + "ILS": "", + "magHeading": "305" + } + } + ], + "length": "9600" + } + ], + "TACAN": "" + }, + "Kerman": { + "elevation": "5745", + "ICAO": "OIKK", + "runways": [ + { + "headings": [ + { + "16": { + "ILS": "", + "magHeading": "155" + }, + "34": { + "ILS": "", + "magHeading": "335" + } + } + ], + "length": "12400" + } + ], + "TACAN": "97X" + }, + "Khasab": { + "elevation": "102", + "ICAO": "OOKB", + "runways": [ + { + "headings": [ + { + "19": { + "ILS": "110.30", + "magHeading": "192" + }, + "01": { + "ILS": "", + "magHeading": "012" + } + } + ], + "length": "8000" + } + ], + "TACAN": "" + }, + "Kish Intl": { + "elevation": "115", + "ICAO": "OIBK", + "runways": [ + { + "headings": [ + { + "10": { + "ILS": "", + "magHeading": "094" + }, + "28": { + "ILS": "", + "magHeading": "274" + } + } + ], + "length": "11700" + }, + { + "headings": [ + { + "09R": { + "ILS": "", + "magHeading": "094" + }, + "27L": { + "ILS": "", + "magHeading": "274" + } + } + ], + "length": "11700" + } + ], + "TACAN": "112X" + }, + "Lar": { + "elevation": "2635", + "ICAO": "OISL", + "runways": [ + { + "headings": [ + { + "27": { + "ILS": "", + "magHeading": "268" + }, + "09": { + "ILS": "", + "magHeading": "088" + } + } + ], + "length": "10100" + } + ], + "TACAN": "" + }, + "Lavan Island": { + "elevation": "75", + "ICAO": "OIBV", + "runways": [ + { + "headings": [ + { + "11": { + "ILS": "", + "magHeading": "110" + }, + "29": { + "ILS": "", + "magHeading": "290" + } + } + ], + "length": "8600" + } + ], + "TACAN": "" + }, + "Liwa AFB": { + "elevation": "400", + "ICAO": "OMLW", + "runways": [ + { + "headings": [ + { + "13": { + "ILS": "", + "magHeading": "130" + }, + "31": { + "ILS": "", + "magHeading": "310" + } + } + ], + "length": "11600" + } + ], + "TACAN": "121X" + }, + "Qeshm Island": { + "elevation": "26", + "ICAO": "OIKQ", + "runways": [ + { + "headings": [ + { + "23": { + "ILS": "", + "magHeading": "227" + }, + "05": { + "ILS": "", + "magHeading": "047" + } + } + ], + "length": "13600" + } + ], + "TACAN": "" + }, + "Quasoura_airport": { + "elevation": "26", + "ICAO": "OIKQ", + "runways": [ + { + "headings": [ + { + "23": { + "ILS": "", + "magHeading": "227" + }, + "05": { + "ILS": "", + "magHeading": "047" + } + } + ], + "length": "13600" + } + ], + "TACAN": "" + }, + "Ras Al Khaimah Intl": { + "elevation": "330", + "ICAO": "OMRK", + "runways": [ + { + "headings": [ + { + "17": { + "ILS": "", + "magHeading": "163" + }, + "35": { + "ILS": "", + "magHeading": "343" + } + } + ], + "length": "12000" + } + ], + "TACAN": "" + }, + "Sas Al Nakheel": { + "elevation": "10", + "ICAO": "OMNK", + "runways": [ + { + "headings": [ + { + "16": { + "ILS": "", + "magHeading": "160" + }, + "34": { + "ILS": "", + "magHeading": "340" + } + } + ], + "length": "6000" + } + ], + "TACAN": "" + }, + "Sharjah Intl": { + "elevation": "26", + "ICAO": "OMSJ", + "runways": [ + { + "headings": [ + { + "12L": { + "ILS": "108.55", + "magHeading": "121" + }, + "30R": { + "ILS": "111.95", + "magHeading": "301" + } + } + ], + "length": "10500" + }, + { + "headings": [ + { + "12R": { + "ILS": "", + "magHeading": "121" + }, + "30L": { + "ILS": "", + "magHeading": "301" + } + } + ], + "length": "10500" + } + ], + "TACAN": "" + }, + "Shiraz Intl": { + "elevation": "4879", + "ICAO": "OISS", + "runways": [ + { + "headings": [ + { + "11L": { + "ILS": "", + "magHeading": "113" + }, + "29R": { + "ILS": "", + "magHeading": "293" + } + } + ], + "length": "14000" + }, + { + "headings": [ + { + "11R": { + "ILS": "", + "magHeading": "113" + }, + "29L": { + "ILS": "108.50", + "magHeading": "293" + } + } + ], + "length": "13800" + } + ], + "TACAN": "94X" + }, + "Sir Abu Nuayr": { + "elevation": "26", + "ICAO": "OMSN", + "runways": [ + { + "headings": [ + { + "10": { + "ILS": "", + "magHeading": "097" + }, + "28": { + "ILS": "", + "magHeading": "277" + } + } + ], + "length": "2300" + } + ], + "TACAN": "" + }, + "Sirri Island": { + "elevation": "20", + "ICAO": "OIBS", + "runways": [ + { + "headings": [ + { + "12": { + "ILS": "", + "magHeading": "125" + }, + "30": { + "ILS": "", + "magHeading": "305" + } + } + ], + "length": "7900" + } + ], + "TACAN": "" + }, + "Tunb Island AFB": { + "elevation": "43", + "ICAO": "OIGI", + "runways": [ + { + "headings": [ + { + "21": { + "ILS": "", + "magHeading": "205" + }, + "03": { + "ILS": "", + "magHeading": "025" + } + } + ], + "length": "6200" + } + ], + "TACAN": "" + }, + "Tunb Kochak": { + "elevation": "16", + "ICAO": "OITK", + "runways": [ + { + "headings": [ + { + "26": { + "ILS": "", + "magHeading": "259" + }, + "08": { + "ILS": "", + "magHeading": "079" + } + } + ], + "length": "2500" + } + ], + "TACAN": "89X" + } + } +} \ No newline at end of file diff --git a/frontend/server/databases/airbases/sinaimap.json b/frontend/server/databases/airbases/sinaimap.json new file mode 100644 index 000000000..c1f87765d --- /dev/null +++ b/frontend/server/databases/airbases/sinaimap.json @@ -0,0 +1,1374 @@ +{ + "airfields": { + "As Salihiyah": { + "runways": [ + { + "headings": [ + { + "02L": { + "magHeading": "13", + "Heading": "18", + "ILS": "110.70" + } + }, + { + "20R": { + "magHeading": "193", + "Heading": "198", + "ILS": "" + } + } + ], + "length": "9281" + }, + { + "headings": [ + { + "20L": { + "magHeading": "13", + "Heading": "18", + "ILS": "" + } + }, + { + "02R": { + "magHeading": "193", + "Heading": "198", + "ILS": "" + } + } + ], + "length": "9281" + } + ], + "TACAN": "26X", + "ICAO": "HE39", + "elevation": "7" + }, + "El Gora": { + "runways": [ + { + "headings": [ + { + "08": { + "magHeading": "70", + "Heading": "75", + "ILS": "" + } + }, + { + "26": { + "magHeading": "250", + "Heading": "255", + "ILS": "" + } + } + ], + "length": "6863" + } + ], + "TACAN": "", + "ICAO": "HEGR", + "elevation": "422" + }, + "Sde Dov": { + "runways": [ + { + "headings": [ + { + "21": { + "magHeading": "202", + "Heading": "207", + "ILS": "" + } + }, + { + "03": { + "magHeading": "22", + "Heading": "27", + "ILS": "" + } + } + ], + "length": "4275" + } + ], + "TACAN": "", + "ICAO": "LLSD", + "elevation": "19" + }, + "AzZaqaziq": { + "runways": [ + { + "headings": [ + { + "36R": { + "magHeading": "358", + "Heading": "3", + "ILS": "" + } + }, + { + "18L": { + "magHeading": "178", + "Heading": "183", + "ILS": "" + } + } + ], + "length": "9151" + }, + { + "headings": [ + { + "18R": { + "magHeading": "358", + "Heading": "3", + "ILS": "" + } + }, + { + "36L": { + "magHeading": "178", + "Heading": "183", + "ILS": "" + } + } + ], + "length": "9151" + } + ], + "TACAN": "94X", + "ICAO": "", + "elevation": "6" + }, + "Hatzor": { + "runways": [ + { + "headings": [ + { + "05": { + "magHeading": "49", + "Heading": "53", + "ILS": "108.50" + } + }, + { + "23": { + "magHeading": "229", + "Heading": "233", + "ILS": "" + } + } + ], + "length": "7890" + }, + { + "headings": [ + { + "29R": { + "magHeading": "286", + "Heading": "291", + "ILS": "" + } + }, + { + "11L": { + "magHeading": "106", + "Heading": "111", + "ILS": "" + } + } + ], + "length": "7960" + }, + { + "headings": [ + { + "29L": { + "magHeading": "286", + "Heading": "291", + "ILS": "" + } + }, + { + "11R": { + "magHeading": "106", + "Heading": "111", + "ILS": "" + } + } + ], + "length": "8081" + } + ], + "TACAN": "106X", + "ICAO": "LLHS", + "elevation": "100" + }, + "Abu Suwayr": { + "runways": [ + { + "headings": [ + { + "29": { + "magHeading": "287", + "Heading": "292", + "ILS": "" + } + }, + { + "11": { + "magHeading": "107", + "Heading": "112", + "ILS": "" + } + } + ], + "length": "9259" + }, + { + "headings": [ + { + "09": { + "magHeading": "266", + "Heading": "271", + "ILS": "" + } + }, + { + "27": { + "magHeading": "86", + "Heading": "91", + "ILS": "" + } + } + ], + "length": "9259" + } + ], + "TACAN": "29X", + "ICAO": "HE35", + "elevation": "18" + }, + "Nevatim": { + "runways": [ + { + "headings": [ + { + "07": { + "magHeading": "71", + "Heading": "76", + "ILS": "" + } + }, + { + "25": { + "magHeading": "251", + "Heading": "256", + "ILS": "" + } + } + ], + "length": "10369" + }, + { + "headings": [ + { + "26L": { + "magHeading": "71", + "Heading": "76", + "ILS": "" + } + }, + { + "08R": { + "magHeading": "251", + "Heading": "256", + "ILS": "" + } + } + ], + "length": "10369" + }, + { + "headings": [ + { + "8L": { + "magHeading": "71", + "Heading": "76", + "ILS": "" + } + }, + { + "26R": { + "magHeading": "251", + "Heading": "256", + "ILS": "" + } + } + ], + "length": "8019" + } + ], + "TACAN": "", + "ICAO": "LLNV", + "elevation": "1303" + }, + "Bir Hasanah": { + "runways": [ + { + "headings": [ + { + "30": { + "magHeading": "295", + "Heading": "300", + "ILS": "" + } + }, + { + "12": { + "magHeading": "115", + "Heading": "120", + "ILS": "" + } + } + ], + "length": "9386" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "1224" + }, + "Al Ismailiyah": { + "runways": [ + { + "headings": [ + { + "31": { + "magHeading": "304", + "Heading": "309", + "ILS": "110.30" + } + }, + { + "13": { + "magHeading": "124", + "Heading": "129", + "ILS": "" + } + } + ], + "length": "9912" + } + ], + "TACAN": "", + "ICAO": "HE44", + "elevation": "11" + }, + "Palmahim": { + "runways": [ + { + "headings": [ + { + "03L": { + "magHeading": "19", + "Heading": "24", + "ILS": "" + } + }, + { + "21R": { + "magHeading": "199", + "Heading": "204", + "ILS": "" + } + } + ], + "length": "3906" + }, + { + "headings": [ + { + "03R": { + "magHeading": "19", + "Heading": "24", + "ILS": "" + } + }, + { + "21L": { + "magHeading": "199", + "Heading": "204", + "ILS": "" + } + } + ], + "length": "7092" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "32" + }, + "Fayed": { + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "266", + "Heading": "271", + "ILS": "110.15" + } + }, + { + "09": { + "magHeading": "86", + "Heading": "91", + "ILS": "" + } + } + ], + "length": "9238" + } + ], + "TACAN": "125X", + "ICAO": "", + "elevation": "27" + }, + "Hatzerim": { + "runways": [ + { + "headings": [ + { + "28R": { + "magHeading": "279", + "Heading": "284", + "ILS": "" + } + }, + { + "10L": { + "magHeading": "99", + "Heading": "104", + "ILS": "" + } + } + ], + "length": "7291" + }, + { + "headings": [ + { + "10R": { + "magHeading": "279", + "Heading": "284", + "ILS": "" + } + }, + { + "28L": { + "magHeading": "99", + "Heading": "104", + "ILS": "" + } + } + ], + "length": "7291" + } + ], + "TACAN": "96X", + "ICAO": "LLHB", + "elevation": "686" + }, + "Ramon Airbase": { + "runways": [ + { + "headings": [ + { + "07R": { + "magHeading": "61", + "Heading": "66", + "ILS": "" + } + }, + { + "25L": { + "magHeading": "241", + "Heading": "246", + "ILS": "" + } + } + ], + "length": "9840" + }, + { + "headings": [ + { + "25R": { + "magHeading": "61", + "Heading": "66", + "ILS": "" + } + }, + { + "07L": { + "magHeading": "241", + "Heading": "246", + "ILS": "" + } + } + ], + "length": "8310" + } + ], + "TACAN": "105X", + "ICAO": "LLRM", + "elevation": "2030" + }, + "Kibrit Air Base": { + "runways": [ + { + "headings": [ + { + "32R": { + "magHeading": "311", + "Heading": "316", + "ILS": "" + } + }, + { + "14L": { + "magHeading": "131", + "Heading": "136", + "ILS": "" + } + } + ], + "length": "8248" + }, + { + "headings": [ + { + "14R": { + "magHeading": "311", + "Heading": "316", + "ILS": "" + } + }, + { + "32L": { + "magHeading": "131", + "Heading": "136", + "ILS": "" + } + } + ], + "length": "8248" + } + ], + "TACAN": "55X", + "ICAO": "HE34", + "elevation": "13" + }, + "El Arish": { + "runways": [ + { + "headings": [ + { + "34R": { + "magHeading": "332", + "Heading": "337", + "ILS": "" + } + }, + { + "16L": { + "magHeading": "152", + "Heading": "157", + "ILS": "" + } + } + ], + "length": "9351" + }, + { + "headings": [ + { + "16R": { + "magHeading": "332", + "Heading": "337", + "ILS": "" + } + }, + { + "34L": { + "magHeading": "152", + "Heading": "157", + "ILS": "" + } + } + ], + "length": "9351" + } + ], + "TACAN": "", + "ICAO": "HEAR", + "elevation": "311" + }, + "Ovda": { + "runways": [ + { + "headings": [ + { + "03R": { + "magHeading": "16", + "Heading": "21", + "ILS": "" + } + }, + { + "21L": { + "magHeading": "196", + "Heading": "201", + "ILS": "" + } + } + ], + "length": "9840" + }, + { + "headings": [ + { + "21R": { + "magHeading": "16", + "Heading": "21", + "ILS": "" + } + }, + { + "03L": { + "magHeading": "196", + "Heading": "201", + "ILS": "" + } + } + ], + "length": "8054" + } + ], + "TACAN": "63X", + "ICAO": "LLOV", + "elevation": "1434" + }, + "Melez": { + "runways": [ + { + "headings": [ + { + "34": { + "magHeading": "322", + "Heading": "326", + "ILS": "" + } + }, + { + "16": { + "magHeading": "142", + "Heading": "146", + "ILS": "" + } + } + ], + "length": "10940" + }, + { + "headings": [ + { + "15L": { + "magHeading": "322", + "Heading": "326", + "ILS": "" + } + }, + { + "33R": { + "magHeading": "142", + "Heading": "146", + "ILS": "" + } + } + ], + "length": "10225" + }, + { + "headings": [ + { + "15R": { + "magHeading": "322", + "Heading": "326", + "ILS": "" + } + }, + { + "33L": { + "magHeading": "142", + "Heading": "146", + "ILS": "" + } + } + ], + "length": "7661" + } + + ], + "TACAN": "", + "ICAO": "HE36", + "elevation": "1003" + }, + "Ben-Gurion": { + "runways": [ + { + "headings": [ + { + "03": { + "magHeading": "23", + "Heading": "28", + "ILS": "" + } + }, + { + "21": { + "magHeading": "203", + "Heading": "208", + "ILS": "109.70" + } + } + ], + "length": "8435" + }, + { + "headings": [ + { + "08": { + "magHeading": "74", + "Heading": "79", + "ILS": "" + } + }, + { + "26": { + "magHeading": "254", + "Heading": "259", + "ILS": "" + } + } + ], + "length": "8435" + }, + { + "headings": [ + { + "30": { + "magHeading": "296", + "Heading": "300", + "ILS": "" + } + }, + { + "12": { + "magHeading": "116", + "Heading": "120", + "ILS": "" + } + } + ], + "length": "9503" + } + ], + "TACAN": "", + "ICAO": "LLBG", + "elevation": "98" + }, + "Bilbeis Air Base": { + "runways": [ + { + "headings": [ + { + "35R": { + "magHeading": "345", + "Heading": "350", + "ILS": "" + } + }, + { + "17L": { + "magHeading": "165", + "Heading": "170", + "ILS": "" + } + } + ], + "length": "9782" + }, + { + "headings": [ + { + "35L": { + "magHeading": "345", + "Heading": "350", + "ILS": "" + } + }, + { + "17R": { + "magHeading": "165", + "Heading": "170", + "ILS": "" + } + } + ], + "length": "4921" + }, + { + "headings": [ + { + "27L": { + "magHeading": "269", + "Heading": "274", + "ILS": "" + } + }, + { + "09R": { + "magHeading": "89", + "Heading": "94", + "ILS": "" + } + } + ], + "length": "8202" + }, + { + "headings": [ + { + "27R": { + "magHeading": "269", + "Heading": "274", + "ILS": "" + } + }, + { + "09L": { + "magHeading": "89", + "Heading": "94", + "ILS": "" + } + } + ], + "length": "4848" + }, + { + "headings": [ + { + "04": { + "magHeading": "40", + "Heading": "45", + "ILS": "" + } + }, + { + "22": { + "magHeading": "220", + "Heading": "225", + "ILS": "" + } + } + ], + "length": "11423" + } + ], + "TACAN": "86X", + "ICAO": "HE37", + "elevation": "91" + }, + "Tel Nof": { + "runways": [ + { + "headings": [ + { + "36": { + "magHeading": "357", + "Heading": "2", + "ILS": "109.10" + } + }, + { + "18": { + "magHeading": "177", + "Heading": "182", + "ILS": "" + } + } + ], + "length": "7232" + }, + { + "headings": [ + { + "18L": { + "magHeading": "325", + "Heading": "330", + "ILS": "" + } + }, + { + "36R": { + "magHeading": "145", + "Heading": "150", + "ILS": "" + } + } + ], + "length": "7232" + }, + { + "headings": [ + { + "36L": { + "magHeading": "325", + "Heading": "330", + "ILS": "" + } + }, + { + "18R": { + "magHeading": "145", + "Heading": "150", + "ILS": "" + } + } + ], + "length": "7298" + } + ], + "TACAN": "", + "ICAO": "LLEK", + "elevation": "142" + }, + "Baluza": { + "runways": [ + { + "headings": [ + { + "25": { + "magHeading": "251", + "Heading": "256", + "ILS": "" + } + }, + { + "07": { + "magHeading": "71", + "Heading": "76", + "ILS": "" + } + } + ], + "length": "5794" + } + ], + "TACAN": "", + "ICAO": "HE22", + "elevation": "119" + }, + "Difarsuwar Airfield": { + "runways": [ + { + "headings": [ + { + "36": { + "magHeading": "356", + "Heading": "1", + "ILS": "" + } + }, + { + "18": { + "magHeading": "176", + "Heading": "181", + "ILS": "" + } + } + ], + "length": "1920" + }, + { + "headings": [ + { + "27": { + "magHeading": "266", + "Heading": "271", + "ILS": "" + } + }, + { + "09": { + "magHeading": "86", + "Heading": "91", + "ILS": "" + } + } + ], + "length": "1393" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "6" + }, + "Wadi al Jandali": { + "runways": [ + { + "headings": [ + { + "01R": { + "magHeading": "11", + "Heading": "16", + "ILS": "109.70" + } + }, + { + "19L": { + "magHeading": "191", + "Heading": "196", + "ILS": "" + } + } + ], + "length": "10450" + }, + { + "headings": [ + { + "19R": { + "magHeading": "11", + "Heading": "16", + "ILS": "" + } + }, + { + "01L": { + "magHeading": "191", + "Heading": "196", + "ILS": "" + } + } + ], + "length": "11314" + } + ], + "TACAN": "96X", + "ICAO": "HECP", + "elevation": "748" + }, + "St Catherine": { + "runways": [ + { + "headings": [ + { + "35": { + "magHeading": "346", + "Heading": "351", + "ILS": "" + } + }, + { + "17": { + "magHeading": "166", + "Heading": "171", + "ILS": "" + } + } + ], + "length": "6289" + } + ], + "TACAN": "", + "ICAO": "HESC", + "elevation": "4256" + }, + "Al Mansurah": { + "runways": [ + { + "headings": [ + { + "32": { + "magHeading": "315", + "Heading": "319", + "ILS": "" + } + }, + { + "14": { + "magHeading": "135", + "Heading": "139", + "ILS": "" + } + } + ], + "length": "9087" + }, + { + "headings": [ + { + "35": { + "magHeading": "341", + "Heading": "346", + "ILS": "" + } + }, + { + "17": { + "magHeading": "161", + "Heading": "166", + "ILS": "" + } + } + ], + "length": "9087" + } + ], + "TACAN": "53X", + "ICAO": "HE32", + "elevation": "6" + }, + "Abu Rudeis": { + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "127", + "Heading": "132", + "ILS": "" + } + }, + { + "31": { + "magHeading": "307", + "Heading": "312", + "ILS": "" + } + } + ], + "length": "6115" + } + ], + "TACAN": "", + "ICAO": "HE29", + "elevation": "2" + }, + "Inshas Airbase": { + "runways": [ + { + "headings": [ + { + "09R": { + "magHeading": "87", + "Heading": "92", + "ILS": "" + } + }, + { + "27L": { + "magHeading": "267", + "Heading": "272", + "ILS": "" + } + } + ], + "length": "7997" + }, + { + "headings": [ + { + "27R": { + "magHeading": "43", + "Heading": "48", + "ILS": "" + } + }, + { + "09L": { + "magHeading": "223", + "Heading": "228", + "ILS": "" + } + } + ], + "length": "7997" + } + ], + "TACAN": "98X", + "ICAO": "HE12", + "elevation": "154" + }, + "Cairo International Airport": { + "runways": [ + { + "headings": [ + { + "05L": { + "magHeading": "45", + "Heading": "50", + "ILS": "" + } + }, + { + "23R": { + "magHeading": "225", + "Heading": "230", + "ILS": "" + } + } + ], + "length": "10815" + }, + { + "headings": [ + { + "23C": { + "magHeading": "45", + "Heading": "50", + "ILS": "" + } + }, + { + "05C": { + "magHeading": "225", + "Heading": "230", + "ILS": "108.90" + } + } + ], + "length": "12314" + }, + { + "headings": [ + { + "05R": { + "magHeading": "45", + "Heading": "50", + "ILS": "" + } + }, + { + "23L": { + "magHeading": "225", + "Heading": "230", + "ILS": "108.70" + } + } + ], + "length": "12306" + } + ], + "TACAN": "", + "ICAO": "HECA", + "elevation": "393" + }, + "Kedem": { + "runways": [ + { + "headings": [ + { + "28": { + "magHeading": "278", + "Heading": "283", + "ILS": "" + } + }, + { + "10": { + "magHeading": "98", + "Heading": "103", + "ILS": "" + } + } + ], + "length": "5506" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "634" + }, + "Cairo West": { + "runways": [ + { + "headings": [ + { + "34R": { + "magHeading": "342", + "Heading": "347", + "ILS": "" + } + }, + { + "16L": { + "magHeading": "162", + "Heading": "167", + "ILS": "" + } + } + ], + "length": "11307" + }, + { + "headings": [ + { + "28": { + "magHeading": "282", + "Heading": "287", + "ILS": "" + } + }, + { + "10": { + "magHeading": "102", + "Heading": "107", + "ILS": "" + } + } + ], + "length": "9843" + }, + { + "headings": [ + { + "16R": { + "magHeading": "342", + "Heading": "347", + "ILS": "" + } + }, + { + "34L": { + "magHeading": "162", + "Heading": "167", + "ILS": "" + } + } + ], + "length": "9536" + } + ], + "TACAN": "0X", + "ICAO": "HECW", + "elevation": "439" + } + } +} \ No newline at end of file diff --git a/frontend/server/databases/airbases/syria.json b/frontend/server/databases/airbases/syria.json new file mode 100644 index 000000000..e0ee84e6a --- /dev/null +++ b/frontend/server/databases/airbases/syria.json @@ -0,0 +1,1366 @@ +{ + "airfields": { + "Abu al-Duhur": { + "ICAO": "OS57", + "elevation": "820", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "268", + "ILS": "" + }, + "09": { + "magHeading": "088", + "ILS": "" + } + } + ], + "length": "9200" + } + ] + }, + "Adana Sakirpasa": { + "ICAO": "LTAF", + "elevation": "56", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "23": { + "magHeading": "230", + "ILS": "" + }, + "05": { + "magHeading": "050", + "ILS": "108.70" + } + } + ], + "length": "8800" + } + ] + }, + "Akrotiri": { + "ICAO": "LCRA", + "elevation": "69", + "TACAN": "107X", + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "106", + "ILS": "" + }, + "28": { + "magHeading": "286", + "ILS": "109.70" + } + } + ], + "length": "8800" + } + ] + }, + "Al Qusayr": { + "ICAO": "OS70", + "elevation": "1729", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "096", + "ILS": "" + }, + "28": { + "magHeading": "276", + "ILS": "" + } + } + ], + "length": "9500" + } + ] + }, + "Al-Dumayr": { + "ICAO": "OS61", + "elevation": "2067", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "24": { + "magHeading": "240", + "ILS": "" + }, + "06": { + "magHeading": "060", + "ILS": "" + } + } + ], + "length": "9500" + } + ] + }, + "Aleppo": { + "ICAO": "OSAP", + "elevation": "1254", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "272", + "ILS": "" + }, + "09": { + "magHeading": "092", + "ILS": "" + } + } + ], + "length": "9200" + } + ] + }, + "An Nasiriyah": { + "ICAO": "OSAP", + "elevation": "1254", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "272", + "ILS": "" + }, + "09": { + "magHeading": "092", + "ILS": "" + } + } + ], + "length": "9200" + } + ] + }, + "At Tanf": { + "ICAO": "", + "elevation": "2329", + "TACAN": "", + "runways": [] + }, + "Bassel Al-Assad": { + "ICAO": "OSLK", + "elevation": "92", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "17L": { + "magHeading": "173", + "ILS": "" + }, + "35R": { + "magHeading": "353", + "ILS": "" + } + } + ], + "length": "7900" + }, + { + "headings": [ + { + "17R": { + "magHeading": "173", + "ILS": "109.10" + }, + "35L": { + "magHeading": "353", + "ILS": "" + } + } + ], + "length": "8900" + } + ] + }, + "Beirut-Rafic Hariri": { + "ICAO": "OLBA", + "elevation": "39", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "16": { + "magHeading": "164", + "ILS": "110.10" + }, + "34": { + "magHeading": "344", + "ILS": "" + } + } + ], + "length": "10300" + }, + { + "headings": [ + { + "17": { + "magHeading": "174", + "ILS": "109.50" + }, + "35": { + "magHeading": "354", + "ILS": "" + } + } + ], + "length": "7600" + }, + { + "headings": [ + { + "21": { + "magHeading": "210", + "ILS": "" + }, + "03": { + "magHeading": "030", + "ILS": "110.70" + } + } + ], + "length": "7000" + } + ] + }, + "Damascus": { + "ICAO": "OSDI", + "elevation": "2008", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "05L": { + "magHeading": "045", + "ILS": "" + }, + "23R": { + "magHeading": "225", + "ILS": "109.90" + } + } + ], + "length": "11600" + }, + { + "headings": [ + { + "05R": { + "magHeading": "045", + "ILS": "111.10" + }, + "23L": { + "magHeading": "225", + "ILS": "" + } + } + ], + "length": "11600" + } + ] + }, + "Deir ez-Zor": { + "ICAO": "OSDZ", + "elevation": "713", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "104", + "ILS": "" + }, + "28": { + "magHeading": "284", + "ILS": "" + } + } + ], + "length": "9500" + } + ] + }, + "Ercan": { + "ICAO": "LCEN", + "elevation": "312", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "110", + "ILS": "" + }, + "29": { + "magHeading": "290", + "ILS": "108.30" + } + } + ], + "length": "8700" + } + ] + }, + "Eyn Shemer": { + "ICAO": "LLES", + "elevation": "110", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "2750", + "ILS": "" + }, + "09": { + "magHeading": "095", + "ILS": "" + } + } + ], + "length": "4000" + } + ] + }, + "Gaziantep": { + "ICAO": "LTAJ", + "elevation": "2290", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "100", + "ILS": "" + }, + "28": { + "magHeading": "280", + "ILS": "109.10" + } + } + ], + "length": "9100" + } + ] + }, + "Gazipasa": { + "ICAO": "LTFG", + "elevation": "130", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "26": { + "magHeading": "260", + "ILS": "" + }, + "08": { + "magHeading": "080", + "ILS": "108.50" + } + } + ], + "length": "7500" + } + ] + }, + "Gecitkale": { + "ICAO": "LCGK", + "elevation": "148", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "268", + "ILS": "" + }, + "09": { + "magHeading": "088", + "ILS": "108.50" + } + } + ], + "length": "9100" + } + ] + }, + "H3": { + "ICAO": "", + "elevation": "2583", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "107", + "ILS": "" + }, + "29": { + "magHeading": "287", + "ILS": "" + } + } + ], + "length": "9500" + }, + { + "headings": [ + { + "24": { + "magHeading": "239", + "ILS": "" + }, + "06": { + "magHeading": "059", + "ILS": "" + } + } + ], + "length": "9800" + } + ] + }, + "H3 Northwest": { + "ICAO": "", + "elevation": "2582", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "117", + "ILS": "" + }, + "30": { + "magHeading": "297", + "ILS": "" + } + } + ], + "length": "8000" + } + ] + }, + "H3 Southwest": { + "ICAO": "", + "elevation": "2671", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "12": { + "magHeading": "116", + "ILS": "" + }, + "30": { + "magHeading": "296", + "ILS": "" + } + } + ], + "length": "8000" + } + ] + }, + "H4": { + "ICAO": "OJHR", + "elevation": "2257", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "098", + "ILS": "" + }, + "28": { + "magHeading": "278", + "ILS": "" + } + } + ], + "length": "8000" + } + ] + }, + "Haifa": { + "ICAO": "LLHA", + "elevation": "20", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "16": { + "magHeading": "157", + "ILS": "" + }, + "34": { + "magHeading": "337", + "ILS": "" + } + } + ], + "length": "3300" + } + ] + }, + "Hama": { + "ICAO": "OS58", + "elevation": "984", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "275", + "ILS": "" + }, + "09": { + "magHeading": "095", + "ILS": "" + } + } + ], + "length": "8600" + } + ] + }, + "Hatay": { + "ICAO": "LTDA", + "elevation": "253", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "219", + "ILS": "" + }, + "04": { + "magHeading": "039", + "ILS": "108.90" + } + } + ], + "length": "9600" + } + ] + }, + "Incirlik": { + "ICAO": "LTAG", + "elevation": "230", + "TACAN": "21X", + "runways": [ + { + "headings": [ + { + "23": { + "magHeading": "229", + "ILS": "111.70" + }, + "05": { + "magHeading": "049", + "ILS": "109.30" + } + } + ], + "length": "9500" + } + ] + }, + "Jirah": { + "ICAO": "OS62", + "elevation": "1173", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "095", + "ILS": "" + }, + "28": { + "magHeading": "275", + "ILS": "" + } + } + ], + "length": "9600" + } + ] + }, + "Khalkhalah": { + "ICAO": "OS69", + "elevation": "2418", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "15": { + "magHeading": "146", + "ILS": "" + }, + "33": { + "magHeading": "326", + "ILS": "" + } + } + ], + "length": "8300" + }, + { + "headings": [ + { + "25": { + "magHeading": "251", + "ILS": "" + }, + "07": { + "magHeading": "071", + "ILS": "" + } + } + ], + "length": "9500" + } + ] + }, + "Kharab Ishk": { + "ICAO": "", + "elevation": "1416", + "TACAN": "", + "runways": [] + }, + "King Hussein Air College": { + "ICAO": "OJMF", + "elevation": "2205", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "13": { + "magHeading": "127", + "ILS": "" + }, + "31": { + "magHeading": "307", + "ILS": "" + } + } + ], + "length": "9500" + } + ] + }, + "Kingsfield": { + "ICAO": "LCRE", + "elevation": "276", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "24": { + "magHeading": "238", + "ILS": "" + }, + "06": { + "magHeading": "058", + "ILS": "" + } + } + ], + "length": "3300" + } + ] + }, + "Kiryat Shmona": { + "ICAO": "LLKS", + "elevation": "360", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "21": { + "magHeading": "213", + "ILS": "" + }, + "03": { + "magHeading": "033", + "ILS": "" + } + } + ], + "length": "3500" + } + ] + }, + "Kuweires": { + "ICAO": "OS66", + "elevation": "1201", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "095", + "ILS": "" + }, + "28": { + "magHeading": "275", + "ILS": "" + } + } + ], + "length": "7700" + } + ] + }, + "Lakatamia": { + "ICAO": "", + "elevation": "758", + "TACAN": "", + "runways": [] + }, + "Larnaca": { + "ICAO": "LCRE", + "elevation": "16", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "223", + "ILS": "110.30" + }, + "04": { + "magHeading": "043", + "ILS": "" + } + } + ], + "length": "8800" + } + ] + }, + "London": { + "ICAO": "", + "elevation": "", + "TACAN": "", + "runways": [] + }, + "Marj as Sultan North": { + "ICAO": "", + "elevation": "2008", + "TACAN": "", + "runways": [] + }, + "Marj as Sultan South": { + "ICAO": "", + "elevation": "2008", + "TACAN": "", + "runways": [] + }, + "Marj Ruhayyil": { + "ICAO": "OS63", + "elevation": "2161", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "06L": { + "magHeading": "059", + "ILS": "" + }, + "24R": { + "magHeading": "239", + "ILS": "" + } + } + ], + "length": "9400" + }, + { + "headings": [ + { + "06R": { + "magHeading": "059", + "ILS": "" + }, + "24L": { + "magHeading": "239", + "ILS": "" + } + } + ], + "length": "8400" + } + ] + }, + "Megiddo": { + "ICAO": "LLMG", + "elevation": "180", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "268", + "ILS": "" + }, + "09": { + "magHeading": "088", + "ILS": "" + } + } + ], + "length": "6200" + } + ] + }, + "Mezzeh": { + "ICAO": "OS67", + "elevation": "2387", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "24": { + "magHeading": "236", + "ILS": "" + }, + "06": { + "magHeading": "056", + "ILS": "" + } + } + ], + "length": "8800" + } + ] + }, + "Minakh": { + "ICAO": "OS71", + "elevation": "1614", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "096", + "ILS": "" + }, + "28": { + "magHeading": "276", + "ILS": "" + } + } + ], + "length": "4500" + } + ] + }, + "Naqoura": { + "ICAO": "", + "elevation": "381", + "TACAN": "", + "runways": [] + }, + "Nicosia": { + "ICAO": "", + "elevation": "722", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "09": { + "magHeading": "092", + "ILS": "" + }, + "27": { + "magHeading": "272", + "ILS": "" + } + } + ], + "length": "5791" + }, + { + "headings": [ + { + "14": { + "magHeading": "148", + "ILS": "" + }, + "27": { + "magHeading": "228", + "ILS": "" + } + } + ], + "length": "8385" + } + ] + }, + "Palmyra": { + "ICAO": "OSPR", + "elevation": "1325", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "26": { + "magHeading": "259", + "ILS": "" + }, + "08": { + "magHeading": "079", + "ILS": "" + } + } + ], + "length": "9200" + } + ] + }, + "Paphos": { + "ICAO": "LCPH", + "elevation": "40", + "TACAN": "79X", + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "109", + "ILS": "" + }, + "29": { + "magHeading": "289", + "ILS": "108.90" + } + } + ], + "length": "8600" + } + ] + }, + "Pinarbashi": { + "ICAO": "", + "elevation": "771", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "16": { + "magHeading": "167", + "ILS": "" + }, + "34": { + "magHeading": "347", + "ILS": "" + } + } + ], + "length": "3577" + } + ] + }, + "Qabr as Sitt": { + "ICAO": "", + "elevation": "2135", + "TACAN": "", + "runways": [] + }, + "Ramat David": { + "ICAO": "LLRD", + "elevation": "146", + "TACAN": "84X", + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "105", + "ILS": "" + }, + "29": { + "magHeading": "285", + "ILS": "" + } + } + ], + "length": "7700" + }, + { + "headings": [ + { + "15": { + "magHeading": "141", + "ILS": "" + }, + "33": { + "magHeading": "321", + "ILS": "111.10" + } + } + ], + "length": "7700" + }, + { + "headings": [ + { + "27": { + "magHeading": "264", + "ILS": "" + }, + "09": { + "magHeading": "084", + "ILS": "" + } + } + ], + "length": "7600" + } + ] + }, + "Rayak": { + "ICAO": "OLRA", + "elevation": "3035", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "222", + "ILS": "" + }, + "04": { + "magHeading": "042", + "ILS": "" + } + } + ], + "length": "9400" + } + ] + }, + "Rene Mouawad": { + "ICAO": "OLKA", + "elevation": "23", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "24": { + "magHeading": "238", + "ILS": "" + }, + "06": { + "magHeading": "058", + "ILS": "" + } + } + ], + "length": "9000" + } + ] + }, + "Rosh Pina": { + "ICAO": "LLIB", + "elevation": "914", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "15": { + "magHeading": "147", + "ILS": "" + }, + "33": { + "magHeading": "327", + "ILS": "" + } + } + ], + "length": "2900" + }, + { + "headings": [ + { + "23": { + "magHeading": "229", + "ILS": "" + }, + "05": { + "magHeading": "049", + "ILS": "" + } + } + ], + "length": "3200" + } + ] + }, + "Ruwayshid": { + "ICAO": "", + "elevation": "2980", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "271", + "ILS": "" + }, + "09": { + "magHeading": "091", + "ILS": "" + } + } + ], + "length": "7000" + } + ] + }, + "Sanliurfa": { + "ICAO": "LTCS", + "elevation": "2703", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "22": { + "magHeading": "216", + "ILS": "" + }, + "04": { + "magHeading": "036", + "ILS": "" + } + } + ], + "length": "12900" + } + ] + }, + "Sayqal": { + "ICAO": "OS68", + "elevation": "2274", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "23": { + "magHeading": "235", + "ILS": "" + }, + "05": { + "magHeading": "055", + "ILS": "" + } + } + ], + "length": "7600" + }, + { + "headings": [ + { + "26": { + "magHeading": "265", + "ILS": "" + }, + "08": { + "magHeading": "085", + "ILS": "" + } + } + ], + "length": "9500" + } + ] + }, + "Shayrat": { + "ICAO": "OS65", + "elevation": "2638", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "107", + "ILS": "" + }, + "29": { + "magHeading": "287", + "ILS": "" + } + } + ], + "length": "9300" + } + ] + }, + "Tabqa": { + "ICAO": "OS59", + "elevation": "1099", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "268", + "ILS": "" + }, + "09": { + "magHeading": "088", + "ILS": "" + } + } + ], + "length": "9300" + } + ] + }, + "Taftanaz": { + "ICAO": "", + "elevation": "", + "TACAN": "", + "runways": [] + }, + "Tal Siman": { + "ICAO": "", + "elevation": "", + "TACAN": "", + "runways": [] + }, + "Tha'lah": { + "ICAO": "OS60", + "elevation": "2414", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "23": { + "magHeading": "233", + "ILS": "" + }, + "05": { + "magHeading": "053", + "ILS": "" + } + } + ], + "length": "9500" + } + ] + }, + "Tiyas": { + "ICAO": "OS72", + "elevation": "1798", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "27": { + "magHeading": "265", + "ILS": "" + }, + "09": { + "magHeading": "085", + "ILS": "" + } + } + ], + "length": "9500" + } + ] + }, + "Wujah Al Hajar": { + "ICAO": "Z190", + "elevation": "641", + "TACAN": "", + "runways": [ + { + "headings": [ + { + "20": { + "magHeading": "204", + "ILS": "" + }, + "02": { + "magHeading": "024", + "ILS": "" + } + } + ], + "length": "4800" + } + ] + } + } +} \ No newline at end of file diff --git a/frontend/server/databases/airbases/thechannel.json b/frontend/server/databases/airbases/thechannel.json new file mode 100644 index 000000000..e1b27b76a --- /dev/null +++ b/frontend/server/databases/airbases/thechannel.json @@ -0,0 +1,525 @@ +{ + "airfields": { + "High Halden": { + "runways": [ + { + "headings": [ + { + "11": { + "magHeading": "102", + "Heading": "102", + "ILS": "" + } + }, + { + "29": { + "magHeading": "282", + "Heading": "282", + "ILS": "" + } + } + ], + "length": "3027" + }, + { + "headings": [ + { + "21": { + "magHeading": "211", + "Heading": "211", + "ILS": "" + } + }, + { + "03": { + "magHeading": "31", + "Heading": "31", + "ILS": "" + } + } + ], + "length": "3027" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "104" + }, + "Manston": { + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "102", + "Heading": "102", + "ILS": "" + } + }, + { + "28": { + "magHeading": "282", + "Heading": "282", + "ILS": "" + } + } + ], + "length": "9114" + }, + { + "headings": [ + { + "FIELD N": { + "magHeading": "57", + "Heading": "57", + "ILS": "" + } + }, + { + "FIELD S": { + "magHeading": "237", + "Heading": "237", + "ILS": "" + } + } + ], + "length": "5261" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "160" + }, + "Biggin Hill": { + "runways": [ + { + "headings": [ + { + "23": { + "magHeading": "227", + "Heading": "228", + "ILS": "" + } + }, + { + "05": { + "magHeading": "47", + "Heading": "48", + "ILS": "" + } + } + ], + "length": "2430" + }, + { + "headings": [ + { + "28": { + "magHeading": "287", + "Heading": "288", + "ILS": "" + } + }, + { + "10": { + "magHeading": "107", + "Heading": "108", + "ILS": "" + } + } + ], + "length": "2594" + }, + { + "headings": [ + { + "21": { + "magHeading": "208", + "Heading": "208", + "ILS": "" + } + }, + { + "03": { + "magHeading": "28", + "Heading": "28", + "ILS": "" + } + } + ], + "length": "4939" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "552" + }, + "Headcorn": { + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "92", + "Heading": "93", + "ILS": "" + } + }, + { + "28": { + "magHeading": "272", + "Heading": "273", + "ILS": "" + } + } + ], + "length": "3680" + }, + { + "headings": [ + { + "01": { + "magHeading": "12", + "Heading": "12", + "ILS": "" + } + }, + { + "19": { + "magHeading": "192", + "Heading": "192", + "ILS": "" + } + } + ], + "length": "3680" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "114" + }, + "Detling": { + "runways": [ + { + "headings": [ + { + "FIELD S": { + "magHeading": "227", + "Heading": "227", + "ILS": "" + } + }, + { + "FIELD N": { + "magHeading": "47", + "Heading": "47", + "ILS": "" + } + } + ], + "length": "3482" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "623" + }, + "Eastchurch": { + "runways": [ + { + "headings": [ + { + "10": { + "magHeading": "97", + "Heading": "97", + "ILS": "" + } + }, + { + "28": { + "magHeading": "277", + "Heading": "277", + "ILS": "" + } + } + ], + "length": "2983" + }, + { + "headings": [ + { + "20": { + "magHeading": "203", + "Heading": "203", + "ILS": "" + } + }, + { + "02": { + "magHeading": "23", + "Heading": "23", + "ILS": "" + } + } + ], + "length": "2983" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "40" + }, + "Abbeville Drucat": { + "runways": [ + { + "headings": [ + { + "20": { + "magHeading": "203", + "Heading": "203", + "ILS": "" + } + }, + { + "2": { + "magHeading": "23", + "Heading": "23", + "ILS": "" + } + } + ], + "length": "4877" + }, + { + "headings": [ + { + "27": { + "magHeading": "270", + "Heading": "270", + "ILS": "" + } + }, + { + "09": { + "magHeading": "90", + "Heading": "90", + "ILS": "" + } + } + ], + "length": "4877" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "183" + }, + "Hawkinge": { + "runways": [ + { + "headings": [ + { + "FIELD S": { + "magHeading": "180", + "Heading": "180", + "ILS": "" + } + }, + { + "FIELD N": { + "magHeading": "0", + "Heading": "0", + "ILS": "" + } + } + ], + "length": "2336" + }, + { + "headings": [ + { + "FIELD W ": { + "magHeading": "218", + "Heading": "219", + "ILS": "" + } + }, + { + "FIELD E": { + "magHeading": "38", + "Heading": "39", + "ILS": "" + } + } + ], + "length": "2336" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "524" + }, + "Lympne": { + "runways": [ + { + "headings": [ + { + "FIELD E": { + "magHeading": "134", + "Heading": "134", + "ILS": "" + } + }, + { + "FIELD W": { + "magHeading": "314", + "Heading": "314", + "ILS": "" + } + } + ], + "length": "3054" + }, + { + "headings": [ + { + "FIELD N": { + "magHeading": "19", + "Heading": "19", + "ILS": "" + } + }, + { + "FIELD S": { + "magHeading": "199", + "Heading": "199", + "ILS": "" + } + } + ], + "length": "2706" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "351" + }, + "Merville Calonne": { + "runways": [ + { + "headings": [ + { + "32": { + "magHeading": "318", + "Heading": "319", + "ILS": "" + } + }, + { + "14": { + "magHeading": "138", + "Heading": "139", + "ILS": "" + } + } + ], + "length": "3899" + }, + { + "headings": [ + { + "26": { + "magHeading": "258", + "Heading": "258", + "ILS": "" + } + }, + { + "08": { + "magHeading": "78", + "Heading": "78", + "ILS": "" + } + } + ], + "length": "3899" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "52" + }, + "Dunkirk Mardyck": { + "runways": [ + { + "headings": [ + { + "08": { + "magHeading": "80", + "Heading": "81", + "ILS": "" + } + }, + { + "26": { + "magHeading": "260", + "Heading": "261", + "ILS": "" + } + } + ], + "length": "1839" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "16" + }, + "Saint Omer Longuenesse": { + "runways": [ + { + "headings": [ + { + "08": { + "magHeading": "86", + "Heading": "87", + "ILS": "" + } + }, + { + "26": { + "magHeading": "266", + "Heading": "267", + "ILS": "" + } + } + ], + "length": "2001" + }, + { + "headings": [ + { + "FIELD S": { + "magHeading": "208", + "Heading": "208", + "ILS": "" + } + }, + { + "FIELD N": { + "magHeading": "28", + "Heading": "28", + "ILS": "" + } + } + ], + "length": "1762" + } + ], + "TACAN": "", + "ICAO": "", + "elevation": "219" + } + } +} \ No newline at end of file diff --git a/frontend/server/src/airbase.rs b/frontend/server/src/airbase.rs new file mode 100644 index 000000000..454bfb8fe --- /dev/null +++ b/frontend/server/src/airbase.rs @@ -0,0 +1,32 @@ +use std::collections::HashMap; + +use serde::{Deserialize, Serialize}; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct Airfields { + pub airfields: HashMap, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct Airfield { + #[serde(rename = "ICAO")] + pub icao: String, + pub elevation: String, + #[serde(rename = "TACAN")] + pub tacan: String, + pub runways: Vec, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct Runway { + pub headings: Vec>, + pub length: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct HeadingEntry { + #[serde(rename = "magHeading")] + pub mag_heading: String, + #[serde(rename = "ILS")] + pub ils: String, +} diff --git a/frontend/server/src/airfield.rs b/frontend/server/src/airfield.rs new file mode 100644 index 000000000..e69de29bb diff --git a/frontend/server/src/main.rs b/frontend/server/src/main.rs new file mode 100644 index 000000000..13c65efc7 --- /dev/null +++ b/frontend/server/src/main.rs @@ -0,0 +1,45 @@ +use std::{collections::HashMap, sync::Arc}; + +use anyhow::Result; +use axum::{Router, routing::get}; +use enum_iterator::all; +use once_cell::sync::Lazy; +use tracing::{error, info}; + +use crate::{airbase::Airfields, theatre::Theatre}; + +mod airbase; +mod airfield; +mod routes; +mod theatre; + +pub static AIRBASES: Lazy>> = + Lazy::new(|| Arc::new(load_airbases())); + +fn load_airbases() -> HashMap { + let mut airfields = HashMap::new(); + + for theatre in all::() { + let Ok(json) = serde_json::from_str(theatre.airbases_json_string()) else { + error!("Failed to parse JSON for airbase: {:?}", theatre); + panic!("Exiting due to previous error") + }; + + airfields.insert(theatre, json); + } + + airfields +} + +#[tokio::main] +async fn main() -> Result<()> { + tracing_subscriber::fmt::init(); + + let app = Router::new().route("/{theatre}/{airbase}", get(routes::airbases)); + + info!("Starting web server on port 3000"); + let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); + axum::serve(listener, app).await.unwrap(); + + Ok(()) +} diff --git a/frontend/server/src/routes.rs b/frontend/server/src/routes.rs new file mode 100644 index 000000000..9feb4a91f --- /dev/null +++ b/frontend/server/src/routes.rs @@ -0,0 +1,8 @@ +use axum::extract::Path; +use axum::http::StatusCode; + +use crate::theatre::Theatre; + +pub async fn airbases(Path((theatre, airabse)): Path<(Theatre, String)>) -> (StatusCode, String) { + (StatusCode::OK, ":D".to_owned()) +} diff --git a/frontend/server/src/theatre.rs b/frontend/server/src/theatre.rs new file mode 100644 index 000000000..d065c4ceb --- /dev/null +++ b/frontend/server/src/theatre.rs @@ -0,0 +1,62 @@ +use enum_iterator::Sequence; +use tracing::error; + +use crate::{AIRBASES, airbase::Airfields}; + +#[derive(Debug, Clone, Sequence, Eq, PartialEq, Hash)] +pub enum Theatre { + Caucasus, + Falklands, + Marianas, + Nevada, + Normandy, + PersianGulf, + Sinaimap, + Syria, + TheChannel, + Kola, +} + +impl ToString for Theatre { + fn to_string(&self) -> String { + match self { + Theatre::Caucasus => "caucasus".to_string(), + Theatre::Falklands => "falklands".to_string(), + Theatre::Kola => "kola".to_string(), + Theatre::Marianas => "marianas".to_string(), + Theatre::Nevada => "nevada".to_string(), + Theatre::Normandy => "normandy".to_string(), + Theatre::PersianGulf => "persiangulf".to_string(), + Theatre::Sinaimap => "sinaimap".to_string(), + Theatre::Syria => "syria".to_string(), + Theatre::TheChannel => "thechannel".to_string(), + } + } +} + +impl Theatre { + pub fn airbases_json_string(&self) -> &str { + match self { + Theatre::Caucasus => include_str!("..\\databases\\airbases\\caucasus.json"), + Theatre::Falklands => include_str!("..\\databases\\airbases\\falklands.json"), + Theatre::Kola => include_str!("..\\databases\\airbases\\kola.json"), + Theatre::Marianas => include_str!("..\\databases\\airbases\\marianas.json"), + Theatre::Nevada => include_str!("..\\databases\\airbases\\nevada.json"), + Theatre::Normandy => include_str!("..\\databases\\airbases\\normandy.json"), + Theatre::PersianGulf => include_str!("..\\databases\\airbases\\persiangulf.json"), + Theatre::Sinaimap => include_str!("..\\databases\\airbases\\sinaimap.json"), + Theatre::Syria => include_str!("..\\databases\\airbases\\syria.json"), + Theatre::TheChannel => include_str!("..\\databases\\airbases\\thechannel.json"), + } + } + + pub fn airbases_json(&self) -> Airfields { + match AIRBASES.get(self) { + Some(airfields) => airfields.clone(), + None => { + error!("Failed to load airfields for {:?}", self); + panic!("Exiting due to previous error") + } + } + } +} From 4d0ff77a1d7e84afc8534788ffd262d01b317524 Mon Sep 17 00:00:00 2001 From: Timm Ortloff Date: Sat, 31 Jan 2026 18:04:00 +0100 Subject: [PATCH 3/7] wip --- frontend/server/src/routes.rs | 23 +++++++++++++++++++++-- frontend/server/src/theatre.rs | 24 +++++++++++++----------- 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/frontend/server/src/routes.rs b/frontend/server/src/routes.rs index 9feb4a91f..151dbc1be 100644 --- a/frontend/server/src/routes.rs +++ b/frontend/server/src/routes.rs @@ -1,8 +1,27 @@ +use axum::Json; use axum::extract::Path; use axum::http::StatusCode; +use axum::response::{IntoResponse, Response}; use crate::theatre::Theatre; -pub async fn airbases(Path((theatre, airabse)): Path<(Theatre, String)>) -> (StatusCode, String) { - (StatusCode::OK, ":D".to_owned()) +pub async fn airbases(Path((theatre, airbase)): Path<(Theatre, String)>) -> Response { + let airbases = theatre.airbases_json(); + + let Some(airfield) = airbases.airfields.get(&airbase).cloned() else { + let all_airfields = airbases + .airfields + .keys() + .map(|s| s.as_str()) + .collect::>() + .join("\n\t"); + let body = format!( + "Unknown airbase name \"{}\". Available options are:\n\t{}", + airbase, all_airfields + ); + + return (StatusCode::NOT_FOUND, body).into_response(); + }; + + (StatusCode::OK, Json(airfield)).into_response() } diff --git a/frontend/server/src/theatre.rs b/frontend/server/src/theatre.rs index d065c4ceb..c72f8b0df 100644 --- a/frontend/server/src/theatre.rs +++ b/frontend/server/src/theatre.rs @@ -1,9 +1,11 @@ use enum_iterator::Sequence; +use serde::Deserialize; use tracing::error; use crate::{AIRBASES, airbase::Airfields}; -#[derive(Debug, Clone, Sequence, Eq, PartialEq, Hash)] +#[derive(Debug, Clone, Sequence, Eq, PartialEq, Hash, Deserialize)] +#[serde(rename_all = "lowercase")] pub enum Theatre { Caucasus, Falklands, @@ -37,16 +39,16 @@ impl ToString for Theatre { impl Theatre { pub fn airbases_json_string(&self) -> &str { match self { - Theatre::Caucasus => include_str!("..\\databases\\airbases\\caucasus.json"), - Theatre::Falklands => include_str!("..\\databases\\airbases\\falklands.json"), - Theatre::Kola => include_str!("..\\databases\\airbases\\kola.json"), - Theatre::Marianas => include_str!("..\\databases\\airbases\\marianas.json"), - Theatre::Nevada => include_str!("..\\databases\\airbases\\nevada.json"), - Theatre::Normandy => include_str!("..\\databases\\airbases\\normandy.json"), - Theatre::PersianGulf => include_str!("..\\databases\\airbases\\persiangulf.json"), - Theatre::Sinaimap => include_str!("..\\databases\\airbases\\sinaimap.json"), - Theatre::Syria => include_str!("..\\databases\\airbases\\syria.json"), - Theatre::TheChannel => include_str!("..\\databases\\airbases\\thechannel.json"), + Theatre::Caucasus => include_str!("../databases/airbases/caucasus.json"), + Theatre::Falklands => include_str!("../databases/airbases/falklands.json"), + Theatre::Kola => include_str!("../databases/airbases/kola.json"), + Theatre::Marianas => include_str!("../databases/airbases/marianas.json"), + Theatre::Nevada => include_str!("../databases/airbases/nevada.json"), + Theatre::Normandy => include_str!("../databases/airbases/normandy.json"), + Theatre::PersianGulf => include_str!("../databases/airbases/persiangulf.json"), + Theatre::Sinaimap => include_str!("../databases/airbases/sinaimap.json"), + Theatre::Syria => include_str!("../databases/airbases/syria.json"), + Theatre::TheChannel => include_str!("../databases/airbases/thechannel.json"), } } From 0388f44a07638f933a20c4fcf95e8ae9648bfddc Mon Sep 17 00:00:00 2001 From: Timm Ortloff Date: Sat, 31 Jan 2026 18:26:13 +0100 Subject: [PATCH 4/7] wip error messages --- frontend/server/src/main.rs | 4 +++- frontend/server/src/routes.rs | 10 +++++++++- frontend/server/src/theatre.rs | 13 ++++++++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/frontend/server/src/main.rs b/frontend/server/src/main.rs index 13c65efc7..4ee692b3e 100644 --- a/frontend/server/src/main.rs +++ b/frontend/server/src/main.rs @@ -35,7 +35,9 @@ fn load_airbases() -> HashMap { async fn main() -> Result<()> { tracing_subscriber::fmt::init(); - let app = Router::new().route("/{theatre}/{airbase}", get(routes::airbases)); + let app = Router::new() + .route("/api/airbases", get(routes::show_airbases)) + .route("/api/airbases/{theatre}/{airbase}", get(routes::airbases)); info!("Starting web server on port 3000"); let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); diff --git a/frontend/server/src/routes.rs b/frontend/server/src/routes.rs index 151dbc1be..18caef1f0 100644 --- a/frontend/server/src/routes.rs +++ b/frontend/server/src/routes.rs @@ -5,7 +5,15 @@ use axum::response::{IntoResponse, Response}; use crate::theatre::Theatre; -pub async fn airbases(Path((theatre, airbase)): Path<(Theatre, String)>) -> Response { +pub async fn show_airbases() -> (StatusCode, String) { + (StatusCode::OK, Theatre::error_message()) +} + +/// Url that takes Theatre and Airbase name +pub async fn airbases(Path((theatre, airbase)): Path<(String, String)>) -> Response { + let Ok(theatre) = serde_json::from_str::(&theatre) else { + return (StatusCode::NOT_FOUND, Theatre::error_message()).into_response(); + }; let airbases = theatre.airbases_json(); let Some(airfield) = airbases.airfields.get(&airbase).cloned() else { diff --git a/frontend/server/src/theatre.rs b/frontend/server/src/theatre.rs index c72f8b0df..4b2cd9c92 100644 --- a/frontend/server/src/theatre.rs +++ b/frontend/server/src/theatre.rs @@ -1,4 +1,4 @@ -use enum_iterator::Sequence; +use enum_iterator::{Sequence, all}; use serde::Deserialize; use tracing::error; @@ -37,6 +37,17 @@ impl ToString for Theatre { } impl Theatre { + pub fn error_message() -> String { + format!( + "Missing/invalid theatre name; must be one of:\n\t{}", + all::().fold(String::new(), |acc, theatre| format!( + "{}\n\t{}", + acc, + theatre.to_string() + )) + ) + } + pub fn airbases_json_string(&self) -> &str { match self { Theatre::Caucasus => include_str!("../databases/airbases/caucasus.json"), From ceadc65a3e1003ff19c04076ca8bfa751475e597 Mon Sep 17 00:00:00 2001 From: Timm Ortlofff Date: Sun, 1 Feb 2026 14:47:10 +0100 Subject: [PATCH 5/7] finish airbases routes --- frontend/server/src/main.rs | 6 ++-- .../src/{routes.rs => routes/airbases.rs} | 28 ++++++++++++++++--- frontend/server/src/routes/mod.rs | 1 + 3 files changed, 27 insertions(+), 8 deletions(-) rename frontend/server/src/{routes.rs => routes/airbases.rs} (50%) create mode 100644 frontend/server/src/routes/mod.rs diff --git a/frontend/server/src/main.rs b/frontend/server/src/main.rs index 4ee692b3e..0d509509b 100644 --- a/frontend/server/src/main.rs +++ b/frontend/server/src/main.rs @@ -1,7 +1,7 @@ use std::{collections::HashMap, sync::Arc}; use anyhow::Result; -use axum::{Router, routing::get}; +use axum::Router; use enum_iterator::all; use once_cell::sync::Lazy; use tracing::{error, info}; @@ -35,9 +35,7 @@ fn load_airbases() -> HashMap { async fn main() -> Result<()> { tracing_subscriber::fmt::init(); - let app = Router::new() - .route("/api/airbases", get(routes::show_airbases)) - .route("/api/airbases/{theatre}/{airbase}", get(routes::airbases)); + let app = Router::new().nest("/api/airbases", routes::airbases::routes()); info!("Starting web server on port 3000"); let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); diff --git a/frontend/server/src/routes.rs b/frontend/server/src/routes/airbases.rs similarity index 50% rename from frontend/server/src/routes.rs rename to frontend/server/src/routes/airbases.rs index 18caef1f0..ea9b41709 100644 --- a/frontend/server/src/routes.rs +++ b/frontend/server/src/routes/airbases.rs @@ -1,17 +1,37 @@ -use axum::Json; use axum::extract::Path; use axum::http::StatusCode; use axum::response::{IntoResponse, Response}; +use axum::routing::get; +use axum::{Json, Router}; use crate::theatre::Theatre; -pub async fn show_airbases() -> (StatusCode, String) { +pub fn routes() -> Router { + Router::new() + .route("/", get(index_thearte)) + .route("/{theatre}", get(show_airbases)) + .route("/{theatre}/{airbase}", get(show_airbase)) +} + +async fn index_thearte() -> (StatusCode, String) { (StatusCode::OK, Theatre::error_message()) } +async fn show_airbases(Path(theatre): Path) -> Response { + let theatre = match serde_json::from_str::(&format!("\"{}\"", theatre)) { + Ok(theatre) => theatre, + Err(error) => { + dbg!(error); + return (StatusCode::NOT_FOUND, Theatre::error_message()).into_response(); + } + }; + + (StatusCode::OK, Json(theatre.airbases_json().airfields)).into_response() +} + /// Url that takes Theatre and Airbase name -pub async fn airbases(Path((theatre, airbase)): Path<(String, String)>) -> Response { - let Ok(theatre) = serde_json::from_str::(&theatre) else { +async fn show_airbase(Path((theatre, airbase)): Path<(String, String)>) -> Response { + let Ok(theatre) = serde_json::from_str::(&format!("\"{}\"", theatre)) else { return (StatusCode::NOT_FOUND, Theatre::error_message()).into_response(); }; let airbases = theatre.airbases_json(); diff --git a/frontend/server/src/routes/mod.rs b/frontend/server/src/routes/mod.rs new file mode 100644 index 000000000..d8ba4d614 --- /dev/null +++ b/frontend/server/src/routes/mod.rs @@ -0,0 +1 @@ +pub mod airbases; From 97454a2652b8bbfc7202c582166dab2c2aaebf8d Mon Sep 17 00:00:00 2001 From: Timm Ortlofff Date: Sun, 1 Feb 2026 15:59:59 +0100 Subject: [PATCH 6/7] wip database stream --- frontend/server/Cargo.lock | 127 +++++++++++++++++++++++++ frontend/server/Cargo.toml | 1 + frontend/server/bacon.toml | 127 +++++++++++++++++++++++++ frontend/server/src/cli.rs | 16 ++++ frontend/server/src/config.rs | 82 ++++++++++++++++ frontend/server/src/main.rs | 32 ++++++- frontend/server/src/routes/database.rs | 6 ++ frontend/server/src/routes/mod.rs | 1 + 8 files changed, 388 insertions(+), 4 deletions(-) create mode 100644 frontend/server/bacon.toml create mode 100644 frontend/server/src/cli.rs create mode 100644 frontend/server/src/config.rs create mode 100644 frontend/server/src/routes/database.rs diff --git a/frontend/server/Cargo.lock b/frontend/server/Cargo.lock index bea2d666d..356da37ae 100644 --- a/frontend/server/Cargo.lock +++ b/frontend/server/Cargo.lock @@ -2,6 +2,56 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "anstream" +version = "0.6.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78" + +[[package]] +name = "anstyle-parse" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + [[package]] name = "anyhow" version = "1.0.100" @@ -84,6 +134,52 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +[[package]] +name = "clap" +version = "4.5.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75ca66430e33a14957acc24c5077b503e7d374151b2b4b3a10c83b4ceb4be0e" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.5.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793207c7fa6300a0608d1080b858e5fdbe713cdc1c8db9fb17777d8a13e63df0" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.5.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a92793da1a46a5f2a02a6f4c46c6496b28c43638adea8306fcb0caa1634f24e5" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "clap_lex" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e64b0cc0439b12df2fa678eae89a1c56a529fd067a9115f7827f1fffd22b32" + +[[package]] +name = "colorchoice" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" + [[package]] name = "enum-iterator" version = "2.3.0" @@ -156,6 +252,12 @@ dependencies = [ "pin-utils", ] +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + [[package]] name = "http" version = "1.4.0" @@ -238,6 +340,12 @@ dependencies = [ "tower-service", ] +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + [[package]] name = "itoa" version = "1.0.17" @@ -315,6 +423,12 @@ version = "1.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + [[package]] name = "parking_lot" version = "0.12.5" @@ -467,6 +581,7 @@ version = "0.1.0" dependencies = [ "anyhow", "axum", + "clap", "enum-iterator", "once_cell", "serde", @@ -511,6 +626,12 @@ dependencies = [ "windows-sys 0.60.2", ] +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + [[package]] name = "syn" version = "2.0.114" @@ -657,6 +778,12 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + [[package]] name = "valuable" version = "0.1.1" diff --git a/frontend/server/Cargo.toml b/frontend/server/Cargo.toml index 420be5b17..b91bec287 100644 --- a/frontend/server/Cargo.toml +++ b/frontend/server/Cargo.toml @@ -13,3 +13,4 @@ tracing-subscriber = "0.3" tracing = "0.1" once_cell = "1.21" enum-iterator = "2.3" +clap = { version = "4.5", features = ["derive"] } diff --git a/frontend/server/bacon.toml b/frontend/server/bacon.toml new file mode 100644 index 000000000..27e6e64c2 --- /dev/null +++ b/frontend/server/bacon.toml @@ -0,0 +1,127 @@ +#:schema https://dystroy.org/bacon/.bacon.schema.json + +# This is a configuration file for the bacon tool +# +# Complete help on configuration: https://dystroy.org/bacon/config/ +# +# You may check the current default at +# https://github.com/Canop/bacon/blob/main/defaults/default-bacon.toml + +default_job = "check" +env.CARGO_TERM_COLOR = "always" + +[jobs.check] +command = ["cargo", "check"] +need_stdout = false + +[jobs.check-all] +command = ["cargo", "check", "--all-targets"] +need_stdout = false + +# Run clippy on the default target +[jobs.clippy] +command = ["cargo", "clippy"] +need_stdout = false + +# Run clippy on all targets +# To disable some lints, you may change the job this way: +# [jobs.clippy-all] +# command = [ +# "cargo", "clippy", +# "--all-targets", +# "--", +# "-A", "clippy::bool_to_int_with_if", +# "-A", "clippy::collapsible_if", +# "-A", "clippy::derive_partial_eq_without_eq", +# ] +# need_stdout = false +[jobs.clippy-all] +command = ["cargo", "clippy", "--all-targets"] +need_stdout = false + +# Run clippy in pedantic mode +# The 'dismiss' feature may come handy +[jobs.pedantic] +command = [ + "cargo", "clippy", + "--", + "-W", "clippy::pedantic", +] +need_stdout = false + +# This job lets you run +# - all tests: bacon test +# - a specific test: bacon test -- config::test_default_files +# - the tests of a package: bacon test -- -- -p config +[jobs.test] +command = ["cargo", "test"] +need_stdout = true + +[jobs.nextest] +command = [ + "cargo", "nextest", "run", + "--hide-progress-bar", "--failure-output", "final" +] +need_stdout = true +analyzer = "nextest" + +[jobs.doc] +command = ["cargo", "doc", "--no-deps"] +need_stdout = false + +# If the doc compiles, then it opens in your browser and bacon switches +# to the previous job +[jobs.doc-open] +command = ["cargo", "doc", "--no-deps", "--open"] +need_stdout = false +on_success = "back" # so that we don't open the browser at each change + +# You can run your application and have the result displayed in bacon, +# if it makes sense for this crate. +[jobs.run] +command = [ + "cargo", "run", + # put launch parameters for your program behind a `--` separator +] +need_stdout = true +allow_warnings = true +background = true + +# Run your long-running application (eg server) and have the result displayed in bacon. +# For programs that never stop (eg a server), `background` is set to false +# to have the cargo run output immediately displayed instead of waiting for +# program's end. +# 'on_change_strategy' is set to `kill_then_restart` to have your program restart +# on every change (an alternative would be to use the 'F5' key manually in bacon). +# If you often use this job, it makes sense to override the 'r' key by adding +# a binding `r = job:run-long` at the end of this file . +# A custom kill command such as the one suggested below is frequently needed to kill +# long running programs (uncomment it if you need it) +[jobs.run-long] +command = [ + "cargo", "run", "--", "--config=F:\\code\\DCSOlympus-Rust\\frontend\\olympus.json", + # put launch parameters for your program behind a `--` separator +] +need_stdout = true +allow_warnings = true +background = false +on_change_strategy = "kill_then_restart" +# kill = ["pkill", "-TERM", "-P"] + +# This parameterized job runs the example of your choice, as soon +# as the code compiles. +# Call it as +# bacon ex -- my-example +[jobs.ex] +command = ["cargo", "run", "--example"] +need_stdout = true +allow_warnings = true + +# You may define here keybindings that would be specific to +# a project, for example a shortcut to launch a specific job. +# Shortcuts to internal functions (scrolling, toggling, etc.) +# should go in your personal global prefs.toml file instead. +[keybindings] +# alt-m = "job:my-job" +c = "job:clippy-all" # comment this to have 'c' run clippy on only the default target +p = "job:pedantic" diff --git a/frontend/server/src/cli.rs b/frontend/server/src/cli.rs new file mode 100644 index 000000000..bb1b1d26a --- /dev/null +++ b/frontend/server/src/cli.rs @@ -0,0 +1,16 @@ +use std::path::PathBuf; + +use clap::Parser; + +/// Web server for Olympus +#[derive(Parser, Debug)] +#[command(version, about, long_about = None)] +pub struct Args { + /// olympus.json config location + #[arg(short, long)] + pub config: PathBuf, + + /// Proxy requests to vite server for development + #[arg(short, long, default_value_t = false)] + pub vite: bool, +} diff --git a/frontend/server/src/config.rs b/frontend/server/src/config.rs new file mode 100644 index 000000000..16ad96e3e --- /dev/null +++ b/frontend/server/src/config.rs @@ -0,0 +1,82 @@ +use std::collections::HashMap; + +use serde::Deserialize; + +#[derive(Debug, Clone, Deserialize)] +pub struct Config { + pub backend: ConfigBackend, + pub frontend: ConfigFrontend, + pub audio: ConfigAudio, + // TODO(timm): Not sure from the olympus.json what this can be + // controllers: Vec<_>, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct ConfigBackend { + pub address: String, + pub port: u16, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct ConfigAuthentication { + #[serde(rename = "gameMasterPassword")] + pub game_master_password: String, + #[serde(rename = "blueCommanderPassword")] + pub blue_commander_password: String, + #[serde(rename = "redCommanderPassword")] + pub red_commander_password: String, + #[serde(rename = "adminPassword")] + pub admin_password: String, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct ConfigFrontend { + pub port: u16, + #[serde(rename = "customAuthHeaders")] + pub custom_auth_headers: CustomAuthHeaders, + #[serde(rename = "elevationProvider")] + pub elevation_provider: ElevationProvider, + #[serde(rename = "mapLayers")] + pub map_layers: HashMap, + #[serde(rename = "mapMirrors")] + pub map_mirrors: HashMap, + #[serde(rename = "autoconnectWhenLocal")] + pub autoconnect_when_local: bool, + #[serde(rename = "proxyHeader")] + pub proxy_header: String, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct CustomAuthHeaders { + pub enabled: bool, + pub username: String, + pub group: String, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct ElevationProvider { + pub provider: String, + pub username: Option, + pub password: Option, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct MapLayerProvider { + #[serde(rename = "urlTemplate")] + pub url_template: String, + #[serde(rename = "minZoom")] + pub min_zoom: i32, + #[serde(rename = "maxZoom")] + pub max_zoom: i32, + pub attribution: String, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct ConfigAudio { + #[serde(rename = "SRSPort")] + pub srs_port: u16, + #[serde(rename = "WSPort")] + pub ws_port: u16, + #[serde(rename = "WSEndpoint")] + pub ws_endpoint: String, +} diff --git a/frontend/server/src/main.rs b/frontend/server/src/main.rs index 0d509509b..e523ca985 100644 --- a/frontend/server/src/main.rs +++ b/frontend/server/src/main.rs @@ -2,14 +2,18 @@ use std::{collections::HashMap, sync::Arc}; use anyhow::Result; use axum::Router; +use clap::Parser; use enum_iterator::all; use once_cell::sync::Lazy; +use tokio::fs; use tracing::{error, info}; -use crate::{airbase::Airfields, theatre::Theatre}; +use crate::{airbase::Airfields, cli::Args, config::Config, theatre::Theatre}; mod airbase; mod airfield; +mod cli; +mod config; mod routes; mod theatre; @@ -34,11 +38,31 @@ fn load_airbases() -> HashMap { #[tokio::main] async fn main() -> Result<()> { tracing_subscriber::fmt::init(); + let args = Args::parse(); - let app = Router::new().nest("/api/airbases", routes::airbases::routes()); + info!("Please wait while DCS Olympus Server starts up..."); + info!("Config location: {:?}", args.config); - info!("Starting web server on port 3000"); - let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); + let config = match serde_json::from_str::(&fs::read_to_string(args.config).await?) { + Ok(config) => config, + Err(err) => { + error!("Failed to read config, aborting! Error: {:?}", err); + panic!("Failed to read config, aborting!") + } + }; + + #[derive(Clone)] + struct AppState {} + + let state = AppState {}; + + let app = Router::new() + .nest("/api/airbases", routes::airbases::routes()) + .with_state(state); + + info!("Starting web server on port {}", config.frontend.port); + let listener = + tokio::net::TcpListener::bind(format!("0.0.0.0:{}", config.frontend.port)).await?; axum::serve(listener, app).await.unwrap(); Ok(()) diff --git a/frontend/server/src/routes/database.rs b/frontend/server/src/routes/database.rs new file mode 100644 index 000000000..3482933d3 --- /dev/null +++ b/frontend/server/src/routes/database.rs @@ -0,0 +1,6 @@ +use axum::{extract::Path, http::StatusCode}; + +pub async fn get_database( + Path((type_folder, file_name)): Path<(String, String)>, +) -> (StatusCode, String) { +} diff --git a/frontend/server/src/routes/mod.rs b/frontend/server/src/routes/mod.rs index d8ba4d614..84d16a829 100644 --- a/frontend/server/src/routes/mod.rs +++ b/frontend/server/src/routes/mod.rs @@ -1 +1,2 @@ pub mod airbases; +pub mod database; From e9238bc63cbc8ea8e9ceeec57bb474d32a75f296 Mon Sep 17 00:00:00 2001 From: Timm Ortlofff Date: Sun, 15 Feb 2026 21:38:00 +0100 Subject: [PATCH 7/7] wip stream --- frontend/server/Cargo.lock | 433 +++++++++++++++++++++++++ frontend/server/Cargo.toml | 1 + frontend/server/bacon.toml | 2 +- frontend/server/src/main.rs | 34 +- frontend/server/src/routes/airbases.rs | 3 +- frontend/server/src/routes/database.rs | 102 +++++- 6 files changed, 560 insertions(+), 15 deletions(-) diff --git a/frontend/server/Cargo.lock b/frontend/server/Cargo.lock index 356da37ae..7a59b9e5d 100644 --- a/frontend/server/Cargo.lock +++ b/frontend/server/Cargo.lock @@ -58,6 +58,17 @@ version = "1.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + [[package]] name = "atomic-waker" version = "1.1.2" @@ -122,6 +133,12 @@ version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" +[[package]] +name = "bumpalo" +version = "3.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510" + [[package]] name = "bytes" version = "1.11.0" @@ -180,6 +197,39 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + [[package]] name = "enum-iterator" version = "2.3.0" @@ -200,6 +250,12 @@ dependencies = [ "syn", ] +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + [[package]] name = "errno" version = "0.3.14" @@ -210,6 +266,33 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "event-listener" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + [[package]] name = "form_urlencoded" version = "1.2.2" @@ -234,6 +317,17 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" +[[package]] +name = "futures-macro" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "futures-task" version = "0.3.31" @@ -247,11 +341,41 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-core", + "futures-macro", "futures-task", "pin-project-lite", "pin-utils", + "slab", ] +[[package]] +name = "getrandom" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "wasip2", + "wasip3", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + [[package]] name = "heck" version = "0.5.0" @@ -340,6 +464,24 @@ dependencies = [ "tower-service", ] +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "indexmap" +version = "2.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" +dependencies = [ + "equivalent", + "hashbrown 0.16.1", + "serde", + "serde_core", +] + [[package]] name = "is_terminal_polyfill" version = "1.70.2" @@ -352,12 +494,28 @@ version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" +[[package]] +name = "js-sys" +version = "0.3.85" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c942ebf8e95485ca0d52d97da7c5a2c387d0e7f0ba4c35e93bfcaee045955b3" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + [[package]] name = "lazy_static" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + [[package]] name = "libc" version = "0.2.180" @@ -408,6 +566,26 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "moka" +version = "0.12.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4ac832c50ced444ef6be0767a008b02c106a909ba79d1d830501e94b96f6b7e" +dependencies = [ + "async-lock", + "crossbeam-channel", + "crossbeam-epoch", + "crossbeam-utils", + "equivalent", + "event-listener", + "futures-util", + "parking_lot", + "portable-atomic", + "smallvec", + "tagptr", + "uuid", +] + [[package]] name = "nu-ansi-term" version = "0.50.3" @@ -429,6 +607,12 @@ version = "1.70.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + [[package]] name = "parking_lot" version = "0.12.5" @@ -470,6 +654,22 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" +[[package]] +name = "portable-atomic" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49" + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn", +] + [[package]] name = "proc-macro2" version = "1.0.106" @@ -488,6 +688,12 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + [[package]] name = "redox_syscall" version = "0.5.18" @@ -497,6 +703,12 @@ dependencies = [ "bitflags", ] +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + [[package]] name = "ryu" version = "1.0.22" @@ -509,6 +721,12 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +[[package]] +name = "semver" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" + [[package]] name = "serde" version = "1.0.228" @@ -583,6 +801,7 @@ dependencies = [ "axum", "clap", "enum-iterator", + "moka", "once_cell", "serde", "serde_json", @@ -610,6 +829,12 @@ dependencies = [ "libc", ] +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + [[package]] name = "smallvec" version = "1.15.1" @@ -649,6 +874,12 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +[[package]] +name = "tagptr" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417" + [[package]] name = "thread_local" version = "1.1.9" @@ -778,12 +1009,29 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + [[package]] name = "utf8parse" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" +[[package]] +name = "uuid" +version = "1.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b672338555252d43fd2240c714dc444b8c6fb0a5c5335e65a07bba7742735ddb" +dependencies = [ + "getrandom", + "js-sys", + "wasm-bindgen", +] + [[package]] name = "valuable" version = "0.1.1" @@ -796,6 +1044,103 @@ version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64024a30ec1e37399cf85a7ffefebdb72205ca1c972291c51512360d90bd8566" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "008b239d9c740232e71bd39e8ef6429d27097518b6b30bdf9086833bd5b6d608" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5256bae2d58f54820e6490f9839c49780dff84c65aeab9e772f15d5f0e913a55" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f01b580c9ac74c8d8f0c0e4afb04eeef2acf145458e52c03845ee9cd23e3d12" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags", + "hashbrown 0.15.5", + "indexmap", + "semver", +] + [[package]] name = "windows-link" version = "0.2.1" @@ -885,6 +1230,94 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck", + "indexmap", + "prettyplease", + "syn", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags", + "indexmap", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + [[package]] name = "zmij" version = "1.0.18" diff --git a/frontend/server/Cargo.toml b/frontend/server/Cargo.toml index b91bec287..bbc701d59 100644 --- a/frontend/server/Cargo.toml +++ b/frontend/server/Cargo.toml @@ -14,3 +14,4 @@ tracing = "0.1" once_cell = "1.21" enum-iterator = "2.3" clap = { version = "4.5", features = ["derive"] } +moka = { version = "0.12", features = ["future"] } diff --git a/frontend/server/bacon.toml b/frontend/server/bacon.toml index 27e6e64c2..768a0caf2 100644 --- a/frontend/server/bacon.toml +++ b/frontend/server/bacon.toml @@ -99,7 +99,7 @@ background = true # long running programs (uncomment it if you need it) [jobs.run-long] command = [ - "cargo", "run", "--", "--config=F:\\code\\DCSOlympus-Rust\\frontend\\olympus.json", + "cargo", "run", "--", "--config=C:\\Users\\Timm\\Saved Games\\DCS\\Config\\olympus.json", # put launch parameters for your program behind a `--` separator ] need_stdout = true diff --git a/frontend/server/src/main.rs b/frontend/server/src/main.rs index e523ca985..28a5a3dcb 100644 --- a/frontend/server/src/main.rs +++ b/frontend/server/src/main.rs @@ -1,9 +1,10 @@ -use std::{collections::HashMap, sync::Arc}; +use std::{collections::HashMap, path::PathBuf, sync::Arc}; use anyhow::Result; use axum::Router; use clap::Parser; use enum_iterator::all; +use moka::future::Cache; use once_cell::sync::Lazy; use tokio::fs; use tracing::{error, info}; @@ -35,6 +36,15 @@ fn load_airbases() -> HashMap { airfields } +type FileCache = Cache; + +#[derive(Debug, Clone)] +struct AppState { + config_location: PathBuf, + config: Config, + file_cache: FileCache, +} + #[tokio::main] async fn main() -> Result<()> { tracing_subscriber::fmt::init(); @@ -43,7 +53,7 @@ async fn main() -> Result<()> { info!("Please wait while DCS Olympus Server starts up..."); info!("Config location: {:?}", args.config); - let config = match serde_json::from_str::(&fs::read_to_string(args.config).await?) { + let config = match serde_json::from_str::(&fs::read_to_string(&args.config).await?) { Ok(config) => config, Err(err) => { error!("Failed to read config, aborting! Error: {:?}", err); @@ -51,18 +61,18 @@ async fn main() -> Result<()> { } }; - #[derive(Clone)] - struct AppState {} - - let state = AppState {}; - + let port = config.frontend.port; let app = Router::new() .nest("/api/airbases", routes::airbases::routes()) - .with_state(state); - - info!("Starting web server on port {}", config.frontend.port); - let listener = - tokio::net::TcpListener::bind(format!("0.0.0.0:{}", config.frontend.port)).await?; + .nest("/api/databases", routes::database::routes()) + .with_state(AppState { + config_location: args.config, + config: config, + file_cache: Cache::new(100), + }); + + info!("Starting web server on port {}", port); + let listener = tokio::net::TcpListener::bind(format!("0.0.0.0:{}", port)).await?; axum::serve(listener, app).await.unwrap(); Ok(()) diff --git a/frontend/server/src/routes/airbases.rs b/frontend/server/src/routes/airbases.rs index ea9b41709..5728cc60d 100644 --- a/frontend/server/src/routes/airbases.rs +++ b/frontend/server/src/routes/airbases.rs @@ -4,9 +4,10 @@ use axum::response::{IntoResponse, Response}; use axum::routing::get; use axum::{Json, Router}; +use crate::AppState; use crate::theatre::Theatre; -pub fn routes() -> Router { +pub fn routes() -> Router { Router::new() .route("/", get(index_thearte)) .route("/{theatre}", get(show_airbases)) diff --git a/frontend/server/src/routes/database.rs b/frontend/server/src/routes/database.rs index 3482933d3..9f9844d31 100644 --- a/frontend/server/src/routes/database.rs +++ b/frontend/server/src/routes/database.rs @@ -1,6 +1,106 @@ -use axum::{extract::Path, http::StatusCode}; +use std::path::PathBuf; + +use anyhow::{Result, bail}; +use axum::{ + Router, + extract::{Path, State}, + http::StatusCode, + routing::get, +}; +use tokio::fs; +use tracing::error; + +use crate::{AppState, FileCache}; + +pub fn routes() -> Router { + Router::new().route("/{type_folder}/{file_name}", get(get_database)) +} + +async fn read_and_cache_file(cache: &FileCache, wanted_file: &PathBuf) -> Result<()> { + let content = match fs::read_to_string(&wanted_file).await { + Ok(origin_content) => { + cache.insert(wanted_file.clone(), origin_content).await; + } + Err(error) => { + bail!( + "Failed to read origin content from {:?}: {}", + wanted_file, + error + ); + } + }; + + Ok(content) +} pub async fn get_database( Path((type_folder, file_name)): Path<(String, String)>, + State(state): State, ) -> (StatusCode, String) { + let db_location = state + .config_location + // Go one up for folder location + .parent() + .unwrap() + .join("..") + .join("Mods") + .join("Services") + .join("Olympus") + .join("databases"); + let wanted_file = db_location.join(type_folder).join(file_name); + + if !db_location.exists() { + error!( + "db folder not present at expected location: {:?}", + db_location + ); + + return ( + StatusCode::FORBIDDEN, + "db folder not present at expected location".to_owned(), + ); + } + + if !wanted_file.starts_with(db_location) { + error!("Requested file not in db location: {:?}", wanted_file); + + return ( + StatusCode::FORBIDDEN, + "Requested file not in db location".to_owned(), + ); + } + + // Load db file contents into cache, if not present + if state.file_cache.contains_key(&wanted_file) { + // Store the updated at time in the cache for each file, + // and get the current one. If different, re-cache, otherwise, let it rip. + // ref: https://users.rust-lang.org/t/how-compare-dates-between-folder-creation-and-time-now/97721/3 + /* + fs::metadata(&wanted_file) + .await + .unwrap() + .modified() + .unwrap() + */ + } else { + if let Err(error) = read_and_cache_file(&state.file_cache, &wanted_file).await { + error!("{}", error); + + return ( + StatusCode::INTERNAL_SERVER_ERROR, + "Failed to load db file".to_owned(), + ); + } + } + + // Get the cached file content and return it if found + match state.file_cache.get(&wanted_file).await { + Some(content) => (StatusCode::OK, content), + None => { + return ( + StatusCode::INTERNAL_SERVER_ERROR, + "db file contents not in cache".to_owned(), + ); + } + } }