mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 00:02:25 +00:00
Merge pull request #1751 from bilawalsidhu/gnss/h3-cells
GNSS Integrity on H3 resolution-4 hexagons, as gpsjam.org
This commit is contained in:
26 files changed
+337
-154
No files matched your search
+13
-9
@@ -223,19 +223,23 @@ The optional Local ADS-B layer and the broadcast-FM receiver use radio you recei
|
|||||||
The numerical minima come from US 14 CFR 91.227(c), not a published jamming
|
The numerical minima come from US 14 CFR 91.227(c), not a published jamming
|
||||||
classifier. Readsb's [JSON contract](https://github.com/wiedehopf/readsb/blob/dev/README-json.md)
|
classifier. Readsb's [JSON contract](https://github.com/wiedehopf/readsb/blob/dev/README-json.md)
|
||||||
describes the quality field origins and GPS-loss flag.
|
describes the quality field origins and GPS-loss flag.
|
||||||
2. **GPSJAM aggregation:** score = `100 × max(0, bad − 1) / total`, with percent
|
2. **GPSJAM aggregation:** aircraft are binned into H3 resolution-4 hexagons
|
||||||
bands < 2, 2–10, > 10. One bad aircraft is discounted. This is not the raw
|
(about 1,770 km² each), and score = `100 × max(0, bad − 1) / total`, with
|
||||||
share of bad aircraft. See the [GPSJAM FAQ](https://gpsjam.org/faq).
|
percent bands < 2, 2–10, > 10. One bad aircraft is discounted. This is not
|
||||||
3. **GEV window:** 30 minutes over visited views, at least three aircraft per
|
the raw share of bad aircraft. As on GPSJAM there is no minimum aircraft
|
||||||
0.5° cell. These bands were developed for daily totals; with fewer than ten
|
count: every hexagon with an aircraft is shown, and the discount is the only
|
||||||
observations a cell can skip the middle band. Source timestamps date evidence
|
small-sample guard. See the [GPSJAM FAQ](https://gpsjam.org/faq).
|
||||||
even through cache replays, and degraded evidence expires independently.
|
3. **GEV window:** 30 minutes over visited views. These bands were developed
|
||||||
|
for daily totals; with fewer than ten observations a cell can skip the
|
||||||
|
middle band. Source timestamps date evidence even through cache replays,
|
||||||
|
and degraded evidence expires independently.
|
||||||
|
|
||||||
Medium/high cells report navigation-integrity anomalies. Interference is one
|
Medium/high cells report navigation-integrity anomalies. Interference is one
|
||||||
possible explanation, not a detected or located emitter. Avionics faults and
|
possible explanation, not a detected or located emitter. Avionics faults and
|
||||||
manoeuvring military trainers can also lower reported accuracy. Blank areas
|
manoeuvring military trainers can also lower reported accuracy. Blank areas
|
||||||
can be outside coverage or lack enough observations. Attribution: adsb.lol
|
are outside coverage or had no qualifying aircraft in the window.
|
||||||
contributors, ODbL 1.0; GPSJAM for aggregation only.
|
Attribution: adsb.lol contributors, ODbL 1.0; GPSJAM for the grid and
|
||||||
|
aggregation only.
|
||||||
|
|
||||||
|
|
||||||
- **adsbdb enrichment.** `/api/adsbdb` resolves an ICAO hex to aircraft type, model name and registration, and the tracked flight's callsign to an airline and an origin/destination pair. Fan-out is deliberately small because adsbdb is a free community API that publishes no quota: at most 4 requests in flight, dispatches dripped to roughly 5/s, and each key asked for at most once per session (for the flights layer's enrichment, a lookup that failed temporarily, such as an outage, a timeout, a rate limit or an authorization refusal that may clear, may be asked again after a 60-second cool-down; an answer, found or not, and a permanent refusal such as a 404 are final; Local ADS-B lookups are asked once), with route lookups reserved for the tracked aircraft. The dev-server proxy caches each key for 24 hours in `.gev-cache/adsbdb.json`, negative answers included, so fresh entries survive server restarts. That gitignored cache remains local to the deployment and is not bundled with this repo. adsbdb publishes no general service license; its README says the route data may not be copied, published, or incorporated into other databases without the explicit permission of David J Taylor, Edinburgh. Deployers are responsible for obtaining any permission their use requires. Enrichment is best-effort and fail-silent — a flight that gets no answer keeps what the flight feed already gave it.
|
- **adsbdb enrichment.** `/api/adsbdb` resolves an ICAO hex to aircraft type, model name and registration, and the tracked flight's callsign to an airline and an origin/destination pair. Fan-out is deliberately small because adsbdb is a free community API that publishes no quota: at most 4 requests in flight, dispatches dripped to roughly 5/s, and each key asked for at most once per session (for the flights layer's enrichment, a lookup that failed temporarily, such as an outage, a timeout, a rate limit or an authorization refusal that may clear, may be asked again after a 60-second cool-down; an answer, found or not, and a permanent refusal such as a 404 are final; Local ADS-B lookups are asked once), with route lookups reserved for the tracked aircraft. The dev-server proxy caches each key for 24 hours in `.gev-cache/adsbdb.json`, negative answers included, so fresh entries survive server restarts. That gitignored cache remains local to the deployment and is not bundled with this repo. adsbdb publishes no general service license; its README says the route data may not be copied, published, or incorporated into other databases without the explicit permission of David J Taylor, Edinburgh. Deployers are responsible for obtaining any permission their use requires. Enrichment is best-effort and fail-silent — a flight that gets no answer keeps what the flight feed already gave it.
|
||||||
|
|||||||
+11
-1
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
The project depends on third-party npm packages whose own licenses apply. This
|
The project depends on third-party npm packages whose own licenses apply. This
|
||||||
file records the packages added for the browser-local SDR feature, the
|
file records the packages added for the browser-local SDR feature, the
|
||||||
Street Level viewer and the Data Library's GeoParquet reader; the complete resolved dependency inventory remains in
|
Street Level viewer, the Data Library's GeoParquet reader and the GNSS Integrity
|
||||||
|
layer's hexagon grid; the complete resolved dependency inventory remains in
|
||||||
`package-lock.json`.
|
`package-lock.json`.
|
||||||
|
|
||||||
## Web RTL-SDR
|
## Web RTL-SDR
|
||||||
@@ -60,3 +61,12 @@ Street Level viewer and the Data Library's GeoParquet reader; the complete resol
|
|||||||
- Author: Copyright (c) 2020 Arjun Barrett
|
- Author: Copyright (c) 2020 Arjun Barrett
|
||||||
- Source: <https://github.com/101arrowz/fzstd>
|
- Source: <https://github.com/101arrowz/fzstd>
|
||||||
- License: MIT
|
- License: MIT
|
||||||
|
|
||||||
|
## H3 (h3-js)
|
||||||
|
|
||||||
|
- Package: `h3-js` 4.4.0 (the GNSS Integrity layer's H3 hexagon cells)
|
||||||
|
- Author: Copyright 2017-2021 Uber Technologies, Inc. (includes the H3 C
|
||||||
|
library 4.4.1, compiled to JavaScript)
|
||||||
|
- Source: <https://github.com/uber/h3-js>
|
||||||
|
- License: Apache License 2.0
|
||||||
|
- License text: <https://www.apache.org/licenses/LICENSE-2.0>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
- GNSS Integrity bins aircraft into H3 resolution-4 hexagons, the grid
|
||||||
|
gpsjam.org uses, and draws each as its hexagon instead of a 0.5° square. As
|
||||||
|
on gpsjam.org, every hexagon with an aircraft is shown: the three-aircraft
|
||||||
|
minimum is gone, and discounting one bad aircraft remains the only
|
||||||
|
small-sample guard. Cells are keyed by their H3 index and carry their centre
|
||||||
|
and boundary.
|
||||||
@@ -5487,7 +5487,7 @@ its criteria cannot be silently ignored.
|
|||||||
| FIRMS Active Fires ▲ | NASA FIRMS live (VIIRS ×2 NRT + MODIS NRT, trailing 24h) | `src/data/firmsHeatmap.js` | `/api/firms` (`FIRMS_MAP_KEY`) | 10 min (proxy TTL 30 min) |
|
| FIRMS Active Fires ▲ | NASA FIRMS live (VIIRS ×2 NRT + MODIS NRT, trailing 24h) | `src/data/firmsHeatmap.js` | `/api/firms` (`FIRMS_MAP_KEY`) | 10 min (proxy TTL 30 min) |
|
||||||
| Street Level 📷 | Mapillary street-level imagery (vector tiles, Graph API, MapillaryJS) | `src/layers/streetLevel/` via `src/app/layers/streetLevel.js` | `/api/mapillary/status`, `/api/mapillary/tiles/coverage/{z}/{x}/{y}` (`MAPILLARY_CLIENT_TOKEN`) | camera-driven (320 ms debounce, ≤9 tiles, server memory cache 24 h) |
|
| Street Level 📷 | Mapillary street-level imagery (vector tiles, Graph API, MapillaryJS) | `src/layers/streetLevel/` via `src/app/layers/streetLevel.js` | `/api/mapillary/status`, `/api/mapillary/tiles/coverage/{z}/{x}/{y}` (`MAPILLARY_CLIENT_TOKEN`) | camera-driven (320 ms debounce, ≤9 tiles, server memory cache 24 h) |
|
||||||
| Wind 🌬 | NOAA GFS 10 m wind (keyless, 0.25°→1° grid; animated particles) | `src/data/wind.js` | `/api/wind` | 1 h (forecast cycle) |
|
| Wind 🌬 | NOAA GFS 10 m wind (keyless, 0.25°→1° grid; animated particles) | `src/data/wind.js` | `/api/wind` | 1 h (forecast cycle) |
|
||||||
| GNSS Integrity 📡 (`gnss-integrity`) | adsb.lol point snapshot, low navigation accuracy binned per 0.5° cell (GEV NIC/NACp threshold + gpsjam.org formula and bands, keyless, ODbL) | `src/layers/gnss/` via `src/app/layers/gnss.js` | `/api/gnss-integrity` | camera-driven (600 ms debounce, minimum 2.5 s between reads) + 60s poll (server cache 60 s; 30 min rolling window) |
|
| GNSS Integrity 📡 (`gnss-integrity`) | adsb.lol point snapshot, low navigation accuracy binned per H3 res-4 hexagon (GEV NIC/NACp threshold + gpsjam.org grid, formula and bands, keyless, ODbL) | `src/layers/gnss/` via `src/app/layers/gnss.js` | `/api/gnss-integrity` | camera-driven (600 ms debounce, minimum 2.5 s between reads) + 60s poll (server cache 60 s; 30 min rolling window) |
|
||||||
| S2 GhostMaps 👻 (`s2-ghostmaps`) | S2 Underground's public GhostMaps repository on GitHub (KMZ intel products, keyless, CC BY-NC-SA 4.0) | `src/layers/ghostMaps/` via `src/app/layers/ghostMaps.js` | `/api/ghostmaps/catalog`, `/api/ghostmaps/events` (server-sent events), `/api/ghostmaps/file/{product}` | branch head checked every 15 s; new commits pushed to the page; 5 min catalog backstop |
|
| S2 GhostMaps 👻 (`s2-ghostmaps`) | S2 Underground's public GhostMaps repository on GitHub (KMZ intel products, keyless, CC BY-NC-SA 4.0) | `src/layers/ghostMaps/` via `src/app/layers/ghostMaps.js` | `/api/ghostmaps/catalog`, `/api/ghostmaps/events` (server-sent events), `/api/ghostmaps/file/{product}` | branch head checked every 15 s; new commits pushed to the page; 5 min catalog backstop |
|
||||||
| Sea Marks ⚓ (`sea-marks`) | OpenSeaMap seamark raster tiles (keyless; CC BY-SA 2.0 tiles, OSM data ODbL) | `src/data/osmOverlays.js` | — (browser-direct tiles) | on view (Cesium tile requests; no polling) |
|
| Sea Marks ⚓ (`sea-marks`) | OpenSeaMap seamark raster tiles (keyless; CC BY-SA 2.0 tiles, OSM data ODbL) | `src/data/osmOverlays.js` | — (browser-direct tiles) | on view (Cesium tile requests; no polling) |
|
||||||
| Ski Pistes ⛷ (`ski-pistes`) | OpenSnowMap piste raster tiles (keyless; CC BY-SA tiles, OSM data ODbL; no bulk download) | `src/data/osmOverlays.js` | — (browser-direct tiles) | on view (Cesium tile requests; no polling) |
|
| Ski Pistes ⛷ (`ski-pistes`) | OpenSnowMap piste raster tiles (keyless; CC BY-SA tiles, OSM data ODbL; no bulk download) | `src/data/osmOverlays.js` | — (browser-direct tiles) | on view (Cesium tile requests; no polling) |
|
||||||
@@ -5501,8 +5501,13 @@ GNSS Integrity samples a 250 nm circle around the Earth point under the screen
|
|||||||
centre. Camera reads debounce for 600 ms with a monotonic 2.5 s minimum gap;
|
centre. Camera reads debounce for 600 ms with a monotonic 2.5 s minimum gap;
|
||||||
nearby views share whole-degree cache keys, and a minute poll refreshes data.
|
nearby views share whole-degree cache keys, and a minute poll refreshes data.
|
||||||
Counts and bands cover visited views over 30 minutes, including regions now off
|
Counts and bands cover visited views over 30 minutes, including regions now off
|
||||||
screen. Non-pickable ground primitives preserve Street Level and perimeter
|
screen. Cells are H3 resolution-4 hexagons, gpsjam.org's grid, keyed by their H3
|
||||||
selection. The legend describes a low-accuracy score, not the raw aircraft share;
|
index (`gnssCellKey`) and drawn from `cellToBoundary` (via `h3-js`) as one ground
|
||||||
|
primitive of polygons, rebuilt only when a cell or band changes; a cell across the
|
||||||
|
antimeridian is drawn with its longitudes unwrapped around its centre. As on
|
||||||
|
gpsjam.org there is no minimum aircraft count: every cell with an aircraft is
|
||||||
|
shown, and the one-aircraft discount is the only small-sample guard.
|
||||||
|
Non-pickable ground primitives preserve Street Level and perimeter selection. The legend describes a low-accuracy score, not the raw aircraft share;
|
||||||
`getStats().levels` exposes nominal, medium and high counts separately.
|
`getStats().levels` exposes nominal, medium and high counts separately.
|
||||||
|
|
||||||
Transient source failures keep activation enabled and show unavailable/degraded
|
Transient source failures keep activation enabled and show unavailable/degraded
|
||||||
|
|||||||
Generated
+12
@@ -16,6 +16,7 @@
|
|||||||
"cesium": "^1.124.0",
|
"cesium": "^1.124.0",
|
||||||
"egm96-universal": "^1.1.1",
|
"egm96-universal": "^1.1.1",
|
||||||
"fzstd": "0.1.1",
|
"fzstd": "0.1.1",
|
||||||
|
"h3-js": "^4.4.0",
|
||||||
"hls.js": "^1.7.3",
|
"hls.js": "^1.7.3",
|
||||||
"hyparquet": "1.31.2",
|
"hyparquet": "1.31.2",
|
||||||
"mapillary-js": "^4.1.2",
|
"mapillary-js": "^4.1.2",
|
||||||
@@ -2532,6 +2533,17 @@
|
|||||||
"integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
|
"integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
|
"node_modules/h3-js": {
|
||||||
|
"version": "4.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/h3-js/-/h3-js-4.4.0.tgz",
|
||||||
|
"integrity": "sha512-DvJh07MhGgY2KcC4OeZc8SSyA+ZXpdvoh6uCzGpoKvWtZxJB+g6VXXC1+eWYkaMIsLz7J/ErhOalHCpcs1KYog==",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4",
|
||||||
|
"npm": ">=3",
|
||||||
|
"yarn": ">=1.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/happy-dom": {
|
"node_modules/happy-dom": {
|
||||||
"version": "20.14.6",
|
"version": "20.14.6",
|
||||||
"resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-20.14.6.tgz",
|
"resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-20.14.6.tgz",
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
"cesium": "^1.124.0",
|
"cesium": "^1.124.0",
|
||||||
"egm96-universal": "^1.1.1",
|
"egm96-universal": "^1.1.1",
|
||||||
"fzstd": "0.1.1",
|
"fzstd": "0.1.1",
|
||||||
|
"h3-js": "^4.4.0",
|
||||||
"hls.js": "^1.7.3",
|
"hls.js": "^1.7.3",
|
||||||
"hyparquet": "1.31.2",
|
"hyparquet": "1.31.2",
|
||||||
"mapillary-js": "^4.1.2",
|
"mapillary-js": "^4.1.2",
|
||||||
|
|||||||
@@ -3853,6 +3853,7 @@
|
|||||||
"@jtarrio/webrtlsdr",
|
"@jtarrio/webrtlsdr",
|
||||||
"hyparquet",
|
"hyparquet",
|
||||||
"fzstd",
|
"fzstd",
|
||||||
|
"h3-js",
|
||||||
"vue",
|
"vue",
|
||||||
"pinia",
|
"pinia",
|
||||||
"vue-i18n"
|
"vue-i18n"
|
||||||
@@ -4576,6 +4577,7 @@
|
|||||||
"mgrs",
|
"mgrs",
|
||||||
"mapillary-js",
|
"mapillary-js",
|
||||||
"@jtarrio/webrtlsdr",
|
"@jtarrio/webrtlsdr",
|
||||||
|
"h3-js",
|
||||||
"vue",
|
"vue",
|
||||||
"pinia",
|
"pinia",
|
||||||
"vue-i18n"
|
"vue-i18n"
|
||||||
@@ -5540,7 +5542,7 @@
|
|||||||
"src/ui/statusText.js",
|
"src/ui/statusText.js",
|
||||||
"src/ui/layerNames.js"
|
"src/ui/layerNames.js"
|
||||||
],
|
],
|
||||||
"external": ["cesium"]
|
"external": ["cesium", "h3-js"]
|
||||||
},
|
},
|
||||||
"gnss-source": {
|
"gnss-source": {
|
||||||
"exports": ["./layers/gnss/source"],
|
"exports": ["./layers/gnss/source"],
|
||||||
|
|||||||
+32
-27
@@ -11,15 +11,17 @@
|
|||||||
* (i) LIVE — over Poland and the southern Baltic the layer settles with no error,
|
* (i) LIVE — over Poland and the southern Baltic the layer settles with no error,
|
||||||
* one geometry per cell and legend band counts that sum to the cell
|
* one geometry per cell and legend band counts that sum to the cell
|
||||||
* count; cells are required only when the returned rows, binned
|
* count; cells are required only when the returned rows, binned
|
||||||
* with the layer's own rules, reach the per-cell minimum (live
|
* into H3 cells with the layer's own rules, give at least one cell
|
||||||
* traffic varies by hour). Requires a non-stale response no older than 60 s.
|
* (live traffic varies by hour). Requires a non-stale response no older than 60 s.
|
||||||
* (ii) BANDS (synthetic) — a 10-aircraft cell with 5 degraded is high,
|
* (ii) BANDS (synthetic) — a 10-aircraft cell with 5 degraded is high,
|
||||||
* a 30-aircraft cell with 2 degraded is medium, a 3-aircraft cell
|
* a 30-aircraft cell with 2 degraded is medium, a 3-aircraft cell
|
||||||
* with 1 degraded is low (first bad discounted), a clean cell at sea
|
* with 1 degraded is low (first bad discounted), a clean cell at sea
|
||||||
* is low, a 2-aircraft cell is withheld; `stale: true` reaches
|
* is low, a 2-aircraft cell with 2 degraded is shown high (no
|
||||||
|
* minimum aircraft count, as on gpsjam.org); `stale: true` reaches
|
||||||
* getStats. Every band is drawn and low is shown over land and sea.
|
* getStats. Every band is drawn and low is shown over land and sea.
|
||||||
* The row reads as low navigation accuracy, and stats carry the
|
* The row reads as low navigation accuracy, and stats carry the
|
||||||
* machine-readable provenance (GEV classifier, gpsjam bands, window).
|
* machine-readable provenance (GEV classifier, gpsjam bands and H3
|
||||||
|
* grid, window).
|
||||||
* PICK verifies actual perimeter and empty-ground clicks under GNSS.
|
* PICK verifies actual perimeter and empty-ground clicks under GNSS.
|
||||||
* CAMERA/GLOBE verify automatic sampling and the screen-centre anchor.
|
* CAMERA/GLOBE verify automatic sampling and the screen-centre anchor.
|
||||||
* (iii) FAILURE — the route stubbed to 502: stats.error is set and the
|
* (iii) FAILURE — the route stubbed to 502: stats.error is set and the
|
||||||
@@ -195,7 +197,7 @@ function cellStates(id) {
|
|||||||
return [ds.get(0).ready ? 0 : 1];
|
return [ds.get(0).ready ? 0 : 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Wait until every GNSS cell's ground rectangle has finished building. */
|
/** Wait until every GNSS cell's ground polygon has finished building. */
|
||||||
async function waitForBuiltCells(page, timeoutMs = 60000) {
|
async function waitForBuiltCells(page, timeoutMs = 60000) {
|
||||||
const built = await page
|
const built = await page
|
||||||
.waitForFunction(
|
.waitForFunction(
|
||||||
@@ -223,22 +225,23 @@ const fixtureRow = (hex, lat, lon, degraded) => ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Synthetic 0.5° cells: high at sea (5/10 bad), medium on land (2/30 bad),
|
* Synthetic H3 res-4 cells, each group inside one hexagon: high at sea
|
||||||
* low on land (1/3 bad), low at sea (0/4 bad), withheld (2 aircraft).
|
* (5/10 bad), medium on land (2/30 bad), low on land (1/3 bad), low at sea
|
||||||
|
* (0/4 bad), and high from only 2 aircraft (2/2 bad; no minimum count).
|
||||||
*/
|
*/
|
||||||
function fixturePayload() {
|
function fixturePayload() {
|
||||||
const rows = [];
|
const rows = [];
|
||||||
const hex = (prefix, i) => `${prefix}${i.toString(16).padStart(2, '0')}`;
|
const hex = (prefix, i) => `${prefix}${i.toString(16).padStart(2, '0')}`;
|
||||||
for (let i = 0; i < 10; i++)
|
for (let i = 0; i < 10; i++)
|
||||||
rows.push(fixtureRow(hex('a000', i), 55.1 + i * 0.01, 19.1, i < 5));
|
rows.push(fixtureRow(hex('a000', i), 55.1 + i * 0.001, 19.1, i < 5));
|
||||||
for (let i = 0; i < 30; i++)
|
for (let i = 0; i < 30; i++)
|
||||||
rows.push(fixtureRow(hex('d000', i), 54.1 + i * 0.01, 19.6, i < 2));
|
rows.push(fixtureRow(hex('d000', i), 54.1 + i * 0.001, 19.6, i < 2));
|
||||||
for (let i = 0; i < 3; i++)
|
for (let i = 0; i < 3; i++)
|
||||||
rows.push(fixtureRow(hex('b000', i), 54.1 + i * 0.01, 18.1, i === 0));
|
rows.push(fixtureRow(hex('b000', i), 54.1 + i * 0.001, 18.1, i === 0));
|
||||||
for (let i = 0; i < 4; i++)
|
for (let i = 0; i < 4; i++)
|
||||||
rows.push(fixtureRow(hex('e000', i), 55.1 + i * 0.01, 18.1, false));
|
rows.push(fixtureRow(hex('e000', i), 55.1 + i * 0.001, 18.1, false));
|
||||||
for (let i = 0; i < 2; i++)
|
for (let i = 0; i < 2; i++)
|
||||||
rows.push(fixtureRow(hex('c000', i), 53.1 + i * 0.01, 17.1, true));
|
rows.push(fixtureRow(hex('c000', i), 53.1 + i * 0.001, 17.1, true));
|
||||||
return {
|
return {
|
||||||
fetchedAt: Date.now(),
|
fetchedAt: Date.now(),
|
||||||
anchor: { lat: 55, lon: 19 },
|
anchor: { lat: 55, lon: 19 },
|
||||||
@@ -385,8 +388,8 @@ async function main() {
|
|||||||
const l = await enableAndSettle(live);
|
const l = await enableAndSettle(live);
|
||||||
const legendTotal = l.legend.reduce((sum, { count }) => sum + count, 0);
|
const legendTotal = l.legend.reduce((sum, { count }) => sum + count, 0);
|
||||||
// Bin what adsb.lol actually returned with the layer's own rules: live
|
// Bin what adsb.lol actually returned with the layer's own rules: live
|
||||||
// traffic varies by hour, so cells are required only when some cell
|
// traffic varies by hour, so cells are required only when the rows
|
||||||
// really reached the minimum aircraft count.
|
// really bin into some cell.
|
||||||
const liveSnapshots = (await Promise.allSettled(liveBodies))
|
const liveSnapshots = (await Promise.allSettled(liveBodies))
|
||||||
.filter((r) => r.status === 'fulfilled')
|
.filter((r) => r.status === 'fulfilled')
|
||||||
.map((r) => r.value);
|
.map((r) => r.value);
|
||||||
@@ -429,7 +432,7 @@ async function main() {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
console.log(
|
||||||
` [info] ${liveRows} live rows, no cell reaches the minimum — cell count not asserted`,
|
` [info] ${liveRows} live rows bin into no cell — cell count not asserted`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
record(
|
record(
|
||||||
@@ -439,7 +442,7 @@ async function main() {
|
|||||||
);
|
);
|
||||||
const liveBuilt = await waitForBuiltCells(live);
|
const liveBuilt = await waitForBuiltCells(live);
|
||||||
record(
|
record(
|
||||||
'LIVE: every cell rectangle is built on a parked camera',
|
'LIVE: every cell polygon is built on a parked camera',
|
||||||
liveBuilt.built,
|
liveBuilt.built,
|
||||||
liveBuilt.detail,
|
liveBuilt.detail,
|
||||||
);
|
);
|
||||||
@@ -454,7 +457,7 @@ async function main() {
|
|||||||
await page.setViewport({ width: 1440, height: 900 });
|
await page.setViewport({ width: 1440, height: 900 });
|
||||||
page.on('pageerror', (e) => errors.push(e.message));
|
page.on('pageerror', (e) => errors.push(e.message));
|
||||||
// Stub the route in-page rather than with request interception: an
|
// Stub the route in-page rather than with request interception: an
|
||||||
// intercepted page stalls Cesium's geometry workers, so ground rectangles
|
// intercepted page stalls Cesium's geometry workers, so ground polygons
|
||||||
// never finish building and the screenshot would not show real behaviour.
|
// never finish building and the screenshot would not show real behaviour.
|
||||||
await stubRoute(page);
|
await stubRoute(page);
|
||||||
await boot(page, { lon: 18.6, lat: 54.6, height: 450_000 });
|
await boot(page, { lon: 18.6, lat: 54.6, height: 450_000 });
|
||||||
@@ -462,25 +465,27 @@ async function main() {
|
|||||||
const band = (prefix) =>
|
const band = (prefix) =>
|
||||||
f.legend.find(({ label }) => label.startsWith(prefix))?.count;
|
f.legend.find(({ label }) => label.startsWith(prefix))?.count;
|
||||||
record(
|
record(
|
||||||
'BANDS: 4 cells shown, the 2-aircraft cell withheld',
|
'BANDS: 5 cells shown, the 2-aircraft cell included',
|
||||||
f.stats.count === 4 && f.entities === 4,
|
f.stats.count === 5 && f.entities === 5,
|
||||||
`cells=${f.stats.count} entities=${f.entities}`,
|
`cells=${f.stats.count} entities=${f.entities}`,
|
||||||
);
|
);
|
||||||
record(
|
record(
|
||||||
'BANDS: 5/10 is high, 2/30 is medium, 1/3 and 0/4 are low',
|
'BANDS: 5/10 and 2/2 are high, 2/30 is medium, 1/3 and 0/4 are low',
|
||||||
band('Low-accuracy score >') === 1 &&
|
band('Low-accuracy score >') === 2 &&
|
||||||
band('Low-accuracy score 2') === 1 &&
|
band('Low-accuracy score 2') === 1 &&
|
||||||
band('Low-accuracy score <') === 2,
|
band('Low-accuracy score <') === 2,
|
||||||
JSON.stringify(f.legend),
|
JSON.stringify(f.legend),
|
||||||
);
|
);
|
||||||
const prov = f.stats.provenance;
|
const prov = f.stats.provenance;
|
||||||
record(
|
record(
|
||||||
'PROVENANCE: GEV classifier, gpsjam bands and visited-view window are machine-readable',
|
'PROVENANCE: GEV classifier, gpsjam bands and H3 grid, and visited-view window are machine-readable',
|
||||||
prov?.classifier?.id === 'gev-nic-nacp-v2' &&
|
prov?.classifier?.id === 'gev-nic-nacp-v2' &&
|
||||||
prov.classifier.definedBy === 'GEV' &&
|
prov.classifier.definedBy === 'GEV' &&
|
||||||
prov.classifier.validated === false &&
|
prov.classifier.validated === false &&
|
||||||
prov.aggregation?.source === 'https://gpsjam.org/faq' &&
|
prov.aggregation?.source === 'https://gpsjam.org/faq' &&
|
||||||
JSON.stringify(prov.aggregation.bands) === '[2,10]' &&
|
JSON.stringify(prov.aggregation.bands) === '[2,10]' &&
|
||||||
|
prov.aggregation.grid === 'h3' &&
|
||||||
|
prov.aggregation.h3Resolution === 4 &&
|
||||||
prov.window?.minutes === 30 &&
|
prov.window?.minutes === 30 &&
|
||||||
prov.window.scope === 'visited-view' &&
|
prov.window.scope === 'visited-view' &&
|
||||||
prov.interpretation?.validated === false,
|
prov.interpretation?.validated === false,
|
||||||
@@ -503,7 +508,7 @@ async function main() {
|
|||||||
);
|
);
|
||||||
const bandsBuilt = await waitForBuiltCells(page);
|
const bandsBuilt = await waitForBuiltCells(page);
|
||||||
record(
|
record(
|
||||||
'BANDS: every cell rectangle is built on a parked camera',
|
'BANDS: every cell polygon is built on a parked camera',
|
||||||
bandsBuilt.built,
|
bandsBuilt.built,
|
||||||
bandsBuilt.detail,
|
bandsBuilt.detail,
|
||||||
);
|
);
|
||||||
@@ -769,7 +774,7 @@ async function main() {
|
|||||||
const e = await enableAndSettle(page, { refresh: true });
|
const e = await enableAndSettle(page, { refresh: true });
|
||||||
record(
|
record(
|
||||||
'FAILURE: error surfaced, cells kept',
|
'FAILURE: error surfaced, cells kept',
|
||||||
Boolean(e.stats.error) && e.stats.count === 4 && e.entities === 4,
|
Boolean(e.stats.error) && e.stats.count === 5 && e.entities === 5,
|
||||||
`error=${JSON.stringify(e.stats.error)} cells=${e.stats.count}`,
|
`error=${JSON.stringify(e.stats.error)} cells=${e.stats.count}`,
|
||||||
);
|
);
|
||||||
await shoot(page, 'failure');
|
await shoot(page, 'failure');
|
||||||
@@ -797,7 +802,7 @@ async function main() {
|
|||||||
'KEYBOARD: Enter on the focused toggle enables the layer and keeps focus',
|
'KEYBOARD: Enter on the focused toggle enables the layer and keeps focus',
|
||||||
on.enabled &&
|
on.enabled &&
|
||||||
on.focused &&
|
on.focused &&
|
||||||
on.count === 4 &&
|
on.count === 5 &&
|
||||||
/^GNSS Integrity: /.test(on.label) &&
|
/^GNSS Integrity: /.test(on.label) &&
|
||||||
!/OFF$/.test(on.label),
|
!/OFF$/.test(on.label),
|
||||||
JSON.stringify(on),
|
JSON.stringify(on),
|
||||||
@@ -906,7 +911,7 @@ async function main() {
|
|||||||
return (
|
return (
|
||||||
layer.enabled &&
|
layer.enabled &&
|
||||||
layer.module.getStats().error === null &&
|
layer.module.getStats().error === null &&
|
||||||
layer.module.getStats().count === 4
|
layer.module.getStats().count === 5
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
{ timeout: 20000 },
|
{ timeout: 20000 },
|
||||||
@@ -957,7 +962,7 @@ async function main() {
|
|||||||
const recent = await enableAndSettle(aged, { refresh: true });
|
const recent = await enableAndSettle(aged, { refresh: true });
|
||||||
record(
|
record(
|
||||||
'AGE: the same snapshot observed 29 min ago is still inside the window',
|
'AGE: the same snapshot observed 29 min ago is still inside the window',
|
||||||
recent.stats.count === 4 && recent.entities === 4,
|
recent.stats.count === 5 && recent.entities === 5,
|
||||||
`cells=${recent.stats.count} entities=${recent.entities}`,
|
`cells=${recent.stats.count} entities=${recent.entities}`,
|
||||||
);
|
);
|
||||||
await aged.close();
|
await aged.close();
|
||||||
|
|||||||
@@ -234,9 +234,8 @@ test('a GNSS integrity source can set the layer evidence window', (t) => {
|
|||||||
};
|
};
|
||||||
const shows = (layer, minutes) => {
|
const shows = (layer, minutes) => {
|
||||||
assert.equal(layer.provenance.window.minutes, minutes);
|
assert.equal(layer.provenance.window.minutes, minutes);
|
||||||
const { info, legend } = layer.getRowControls();
|
const { info } = layer.getRowControls();
|
||||||
assert.match(info, new RegExp(`visited views over ${minutes} min`));
|
assert.match(info, new RegExp(`visited views over ${minutes} min`));
|
||||||
assert.match(legend[0].blurb, new RegExp(`over ${minutes} minutes`));
|
|
||||||
};
|
};
|
||||||
shows(gnssLayer({ windowMs: 65 * 60_000 }), 65);
|
shows(gnssLayer({ windowMs: 65 * 60_000 }), 65);
|
||||||
shows(gnssLayer({}), 30);
|
shows(gnssLayer({}), 30);
|
||||||
|
|||||||
@@ -1697,8 +1697,8 @@
|
|||||||
"GNSS integrity source unavailable": "مصدر سلامة GNSS غير متاح",
|
"GNSS integrity source unavailable": "مصدر سلامة GNSS غير متاح",
|
||||||
"Retrying automatically at {time} UTC": "إعادة المحاولة تلقائيًا عند {time} UTC",
|
"Retrying automatically at {time} UTC": "إعادة المحاولة تلقائيًا عند {time} UTC",
|
||||||
"Retrying automatically after provider cooldown": "إعادة المحاولة تلقائيًا بعد انتهاء مهلة المزوّد",
|
"Retrying automatically after provider cooldown": "إعادة المحاولة تلقائيًا بعد انتهاء مهلة المزوّد",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "يُحدَّث تلقائيًا بعد التحريك أو التكبير/التصغير ومرة كل دقيقة. يغطي المصدر العام دائرة نصف قطرها 250 ميلًا بحريًا حول مركز العرض؛ والتصغير لا يجعله لقطة عالمية. الخلايا الفارغة خارج نطاق العيّنة أو أرصادها غير كافية.",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "يُحدَّث تلقائيًا بعد التحريك أو التكبير/التصغير ومرة كل دقيقة. يغطي المصدر العام دائرة نصف قطرها 250 ميلًا بحريًا حول مركز العرض؛ والتصغير لا يجعله لقطة عالمية. المناطق الفارغة لم تُبلغ فيها أي طائرة عن دقة الملاحة خلال النافذة الزمنية.",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "مؤشر ضعف الدقة = 100 × max(0, الضعيفة − 1) / الإجمالي: تُستبعد طائرة واحدة، لذا فهو ليس النسبة الخام. تحتاج كل خلية إلى {aircraft} طائرات خلال {minutes} دقيقة. شذوذ سلامة الملاحة ليس كشفًا للتشويش أو الانتحال.",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "مؤشر ضعف الدقة = 100 × max(0, الضعيفة − 1) / الإجمالي: تُستبعد طائرة واحدة، لذا فهو ليس النسبة الخام. شذوذ سلامة الملاحة ليس كشفًا للتشويش أو الانتحال.",
|
||||||
"GNSS snapshot needs a view anchor": "لقطة GNSS تحتاج إلى نقطة ارتكاز للعرض",
|
"GNSS snapshot needs a view anchor": "لقطة GNSS تحتاج إلى نقطة ارتكاز للعرض",
|
||||||
"GNSS feed rate limited (HTTP 429)": "مصدر GNSS تجاوز حد الطلبات (HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "مصدر GNSS تجاوز حد الطلبات (HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "لقطة سلامة GNSS مشوّهة",
|
"Malformed GNSS integrity snapshot": "لقطة سلامة GNSS مشوّهة",
|
||||||
|
|||||||
@@ -1624,8 +1624,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Regionale Stichprobe · Radius 250 NM · Zellen aus besuchten Ansichten der letzten {minutes} min",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Regionale Stichprobe · Radius 250 NM · Zellen aus besuchten Ansichten der letzten {minutes} min",
|
||||||
"Retrying automatically at {time} UTC": "Automatischer neuer Versuch um {time} UTC",
|
"Retrying automatically at {time} UTC": "Automatischer neuer Versuch um {time} UTC",
|
||||||
"Retrying automatically after provider cooldown": "Automatischer neuer Versuch nach der Sperrzeit des Anbieters",
|
"Retrying automatically after provider cooldown": "Automatischer neuer Versuch nach der Sperrzeit des Anbieters",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "Aktualisiert sich nach Schwenken oder Zoomen und einmal pro Minute automatisch. Der öffentliche Feed deckt einen Kreis von 250 Seemeilen um die Bildmitte ab; Herauszoomen macht daraus keinen weltweiten Snapshot. Leere Zellen liegen außerhalb der Stichprobe oder haben zu wenige Beobachtungen.",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "Aktualisiert sich nach Schwenken oder Zoomen und einmal pro Minute automatisch. Der öffentliche Feed deckt einen Kreis von 250 Seemeilen um die Bildmitte ab; Herauszoomen macht daraus keinen weltweiten Snapshot. In leeren Bereichen hat im Zeitfenster kein Flugzeug seine Navigationsgenauigkeit gemeldet.",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Ungenauigkeitswert = 100 × max(0, schlecht − 1) / gesamt: Ein Luftfahrzeug wird abgezogen, das ist also nicht der reine Anteil. Zellen brauchen {aircraft} Luftfahrzeuge über {minutes} Minuten. Anomalien der Navigationsintegrität sind kein Nachweis von Jamming oder Spoofing.",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Ungenauigkeitswert = 100 × max(0, schlecht − 1) / gesamt: Ein Luftfahrzeug wird abgezogen, das ist also nicht der reine Anteil. Anomalien der Navigationsintegrität sind kein Nachweis von Jamming oder Spoofing.",
|
||||||
"GNSS snapshot needs a view anchor": "GNSS-Snapshot braucht einen Ansichtsanker",
|
"GNSS snapshot needs a view anchor": "GNSS-Snapshot braucht einen Ansichtsanker",
|
||||||
"GNSS feed rate limited (HTTP 429)": "GNSS-Feed hat das Anfragelimit erreicht (HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "GNSS-Feed hat das Anfragelimit erreicht (HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "Fehlerhafter GNSS-Integritäts-Snapshot",
|
"Malformed GNSS integrity snapshot": "Fehlerhafter GNSS-Integritäts-Snapshot",
|
||||||
|
|||||||
@@ -2335,8 +2335,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Muestra regional · radio de 250 NM · celdas de las vistas visitadas en {minutes} min",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Muestra regional · radio de 250 NM · celdas de las vistas visitadas en {minutes} min",
|
||||||
"Retrying automatically at {time} UTC": "Reintento automático a las {time} UTC",
|
"Retrying automatically at {time} UTC": "Reintento automático a las {time} UTC",
|
||||||
"Retrying automatically after provider cooldown": "Reintento automático tras la pausa del proveedor",
|
"Retrying automatically after provider cooldown": "Reintento automático tras la pausa del proveedor",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "Se actualiza automáticamente al desplazar el mapa o hacer zoom y una vez por minuto. La fuente pública cubre un círculo de 250 millas náuticas alrededor del centro de la vista; alejarte no la convierte en una instantánea mundial. Las celdas vacías están fuera de la cobertura muestreada o no tienen observaciones suficientes.",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "Se actualiza automáticamente al desplazar el mapa o hacer zoom y una vez por minuto. La fuente pública cubre un círculo de 250 millas náuticas alrededor del centro de la vista; alejarte no la convierte en una instantánea mundial. En las zonas vacías ningún avión informó su precisión de navegación durante la ventana.",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Índice de baja precisión = 100 × max(0, malas − 1) / total: se descuenta una aeronave, así que no es la proporción bruta. Cada celda necesita {aircraft} aeronaves en {minutes} minutos. Las anomalías de integridad de navegación no son una detección de interferencias ni de suplantación.",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Índice de baja precisión = 100 × max(0, malas − 1) / total: se descuenta una aeronave, así que no es la proporción bruta. Las anomalías de integridad de navegación no son una detección de interferencias ni de suplantación.",
|
||||||
"SQUAWK {code} · {status}": "SQUAWK {code} · {status}",
|
"SQUAWK {code} · {status}": "SQUAWK {code} · {status}",
|
||||||
"ADS-B PRIORITY · {status}": "ADS-B PRIORIDAD · {status}",
|
"ADS-B PRIORITY · {status}": "ADS-B PRIORIDAD · {status}",
|
||||||
"ADS-B EMERGENCY · {status}": "ADS-B EMERGENCIA · {status}",
|
"ADS-B EMERGENCY · {status}": "ADS-B EMERGENCIA · {status}",
|
||||||
|
|||||||
@@ -862,8 +862,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Échantillon régional · rayon de 250 NM · cellules des vues visitées sur {minutes} min",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Échantillon régional · rayon de 250 NM · cellules des vues visitées sur {minutes} min",
|
||||||
"Retrying automatically at {time} UTC": "Nouvel essai automatique à {time} UTC",
|
"Retrying automatically at {time} UTC": "Nouvel essai automatique à {time} UTC",
|
||||||
"Retrying automatically after provider cooldown": "Nouvel essai automatique après la pause du fournisseur",
|
"Retrying automatically after provider cooldown": "Nouvel essai automatique après la pause du fournisseur",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "Mise à jour automatique après un déplacement ou un zoom, et une fois par minute. Le flux public couvre un cercle de 250 milles nautiques autour du centre de la vue ; dézoomer n'en fait pas un instantané mondial. Les cellules vides sont hors de la couverture échantillonnée ou manquent d'observations.",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "Mise à jour automatique après un déplacement ou un zoom, et une fois par minute. Le flux public couvre un cercle de 250 milles nautiques autour du centre de la vue ; dézoomer n'en fait pas un instantané mondial. Dans les zones vides, aucun avion n'a signalé sa précision de navigation pendant la fenêtre.",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Indice de faible précision = 100 × max(0, mauvais − 1) / total : un aéronef est déduit, ce n'est donc pas la proportion brute. Chaque cellule exige {aircraft} aéronefs sur {minutes} minutes. Les anomalies d'intégrité de navigation ne constituent pas une détection de brouillage ou de leurrage.",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Indice de faible précision = 100 × max(0, mauvais − 1) / total : un aéronef est déduit, ce n'est donc pas la proportion brute. Les anomalies d'intégrité de navigation ne constituent pas une détection de brouillage ou de leurrage.",
|
||||||
"GNSS snapshot needs a view anchor": "L'instantané GNSS nécessite un point d'ancrage de la vue",
|
"GNSS snapshot needs a view anchor": "L'instantané GNSS nécessite un point d'ancrage de la vue",
|
||||||
"GNSS feed rate limited (HTTP 429)": "Flux GNSS : limite de requêtes atteinte (HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "Flux GNSS : limite de requêtes atteinte (HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "Instantané d'intégrité GNSS mal formé",
|
"Malformed GNSS integrity snapshot": "Instantané d'intégrité GNSS mal formé",
|
||||||
|
|||||||
@@ -789,8 +789,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "דגימה אזורית · רדיוס 250 מייל ימי · תאים מתצפיות שביקרת על פני {minutes} דק׳",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "דגימה אזורית · רדיוס 250 מייל ימי · תאים מתצפיות שביקרת על פני {minutes} דק׳",
|
||||||
"Retrying automatically at {time} UTC": "מנסה שוב אוטומטית ב-{time} UTC",
|
"Retrying automatically at {time} UTC": "מנסה שוב אוטומטית ב-{time} UTC",
|
||||||
"Retrying automatically after provider cooldown": "מנסה שוב אוטומטית אחרי תקופת ההמתנה של הספק",
|
"Retrying automatically after provider cooldown": "מנסה שוב אוטומטית אחרי תקופת ההמתנה של הספק",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "מתעדכן אוטומטית אחרי הזזה או זום ופעם בדקה. הפיד הציבורי מכסה מעגל של 250 מייל ימי סביב מרכז התצוגה; זום החוצה לא הופך אותו לתמונת-מצב עולמית. תאים ריקים נמצאים מחוץ לדגימה או שאין בהם די תצפיות.",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "מתעדכן אוטומטית אחרי הזזה או זום ופעם בדקה. הפיד הציבורי מכסה מעגל של 250 מייל ימי סביב מרכז התצוגה; זום החוצה לא הופך אותו לתמונת-מצב עולמית. באזורים ריקים אף מטוס לא דיווח על דיוק הניווט שלו בחלון הזמן.",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "ציון דיוק נמוך = 100 × מקס(0, פגומים − 1) / סה\"כ: מטוס אחד מנוכה, ולכן זה אינו השבר הגולמי. לתאים דרושים {aircraft} מטוסים על פני {minutes} דקות. אנומליות שלמות ניווט אינן זיהוי של שיבוש או הטעיה.",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "ציון דיוק נמוך = 100 × מקס(0, פגומים − 1) / סה\"כ: מטוס אחד מנוכה, ולכן זה אינו השבר הגולמי. אנומליות שלמות ניווט אינן זיהוי של שיבוש או הטעיה.",
|
||||||
"GNSS snapshot needs a view anchor": "תמונת מצב GNSS דורשת עוגן תצוגה",
|
"GNSS snapshot needs a view anchor": "תמונת מצב GNSS דורשת עוגן תצוגה",
|
||||||
"GNSS feed rate limited (HTTP 429)": "פיד GNSS מוגבל בקצב (HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "פיד GNSS מוגבל בקצב (HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "תמונת מצב שלמות GNSS פגומה",
|
"Malformed GNSS integrity snapshot": "תמונת מצב שלמות GNSS פגומה",
|
||||||
|
|||||||
@@ -862,8 +862,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Campione regionale · raggio di 250 NM · celle dalle viste visitate negli ultimi {minutes} min",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Campione regionale · raggio di 250 NM · celle dalle viste visitate negli ultimi {minutes} min",
|
||||||
"Retrying automatically at {time} UTC": "Nuovo tentativo automatico alle {time} UTC",
|
"Retrying automatically at {time} UTC": "Nuovo tentativo automatico alle {time} UTC",
|
||||||
"Retrying automatically after provider cooldown": "Nuovo tentativo automatico dopo la pausa del provider",
|
"Retrying automatically after provider cooldown": "Nuovo tentativo automatico dopo la pausa del provider",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "Si aggiorna automaticamente dopo uno spostamento o uno zoom e una volta al minuto. Il feed pubblico copre un cerchio di 250 miglia nautiche attorno al centro della vista; allontanare lo zoom non lo rende un'istantanea mondiale. Le celle vuote sono fuori dalla copertura campionata o hanno osservazioni insufficienti.",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "Si aggiorna automaticamente dopo uno spostamento o uno zoom e una volta al minuto. Il feed pubblico copre un cerchio di 250 miglia nautiche attorno al centro della vista; allontanare lo zoom non lo rende un'istantanea mondiale. Nelle aree vuote nessun aereo ha comunicato la propria precisione di navigazione nella finestra.",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Indice di bassa precisione = 100 × max(0, anomali − 1) / totale: dal conteggio degli aerei anomali si sottrae un aereo, quindi non è la percentuale grezza. Le celle richiedono {aircraft} aerei in {minutes} minuti. Le anomalie di integrità della navigazione non costituiscono un rilevamento di jamming o spoofing.",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Indice di bassa precisione = 100 × max(0, anomali − 1) / totale: dal conteggio degli aerei anomali si sottrae un aereo, quindi non è la percentuale grezza. Le anomalie di integrità della navigazione non costituiscono un rilevamento di jamming o spoofing.",
|
||||||
"GNSS snapshot needs a view anchor": "Lo snapshot GNSS richiede un punto di riferimento della vista",
|
"GNSS snapshot needs a view anchor": "Lo snapshot GNSS richiede un punto di riferimento della vista",
|
||||||
"GNSS feed rate limited (HTTP 429)": "Limite di richieste del feed GNSS raggiunto (HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "Limite di richieste del feed GNSS raggiunto (HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "Snapshot di integrità GNSS non valido",
|
"Malformed GNSS integrity snapshot": "Snapshot di integrità GNSS non valido",
|
||||||
|
|||||||
@@ -834,8 +834,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "地域サンプル · 半径250海里 · 過去{minutes}分間に表示したビューのセル",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "地域サンプル · 半径250海里 · 過去{minutes}分間に表示したビューのセル",
|
||||||
"Retrying automatically at {time} UTC": "{time} UTCに自動で再試行します",
|
"Retrying automatically at {time} UTC": "{time} UTCに自動で再試行します",
|
||||||
"Retrying automatically after provider cooldown": "プロバイダーのクールダウン後に自動で再試行します",
|
"Retrying automatically after provider cooldown": "プロバイダーのクールダウン後に自動で再試行します",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "パンやズームの後、および1分ごとに自動で更新されます。公開フィードは表示中心から半径250海里の円をカバーします。ズームアウトしても全世界のスナップショットにはなりません。空白のセルは、サンプリング範囲外か観測が不十分です。",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "パンやズームの後、および1分ごとに自動で更新されます。公開フィードは表示中心から半径250海里の円をカバーします。ズームアウトしても全世界のスナップショットにはなりません。空白の区域では、期間内に航法精度を報告した航空機がありませんでした。",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "低精度スコア = 100 × max(0, bad − 1) / total:航空機1機分を差し引くため、単純な割合ではありません。セルには{minutes}分間で{aircraft}機の航空機が必要です。航法インテグリティの異常は、妨害(ジャミング)やなりすまし(スプーフィング)を検出したことを意味しません。",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "低精度スコア = 100 × max(0, bad − 1) / total:航空機1機分を差し引くため、単純な割合ではありません。航法インテグリティの異常は、妨害(ジャミング)やなりすまし(スプーフィング)を検出したことを意味しません。",
|
||||||
"GNSS snapshot needs a view anchor": "GNSSスナップショットにはビューのアンカーが必要です",
|
"GNSS snapshot needs a view anchor": "GNSSスナップショットにはビューのアンカーが必要です",
|
||||||
"GNSS feed rate limited (HTTP 429)": "GNSSフィードがレート制限中です(HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "GNSSフィードがレート制限中です(HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "GNSSインテグリティのスナップショットの形式が不正です",
|
"Malformed GNSS integrity snapshot": "GNSSインテグリティのスナップショットの形式が不正です",
|
||||||
|
|||||||
@@ -860,8 +860,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Amostra regional · raio de 250 NM · células das áreas visualizadas nos últimos {minutes} min",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Amostra regional · raio de 250 NM · células das áreas visualizadas nos últimos {minutes} min",
|
||||||
"Retrying automatically at {time} UTC": "Nova tentativa automática às {time} UTC",
|
"Retrying automatically at {time} UTC": "Nova tentativa automática às {time} UTC",
|
||||||
"Retrying automatically after provider cooldown": "Nova tentativa automática após a pausa do provedor",
|
"Retrying automatically after provider cooldown": "Nova tentativa automática após a pausa do provedor",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "Atualiza automaticamente após mover ou dar zoom e uma vez por minuto. O feed público cobre um círculo de 250 milhas náuticas ao redor do centro da vista; afastar o zoom não o transforma em um snapshot mundial. Células vazias estão fora da cobertura amostrada ou não têm observações suficientes.",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "Atualiza automaticamente após mover ou dar zoom e uma vez por minuto. O feed público cobre um círculo de 250 milhas náuticas ao redor do centro da vista; afastar o zoom não o transforma em um snapshot mundial. Nas áreas vazias, nenhuma aeronave informou sua precisão de navegação na janela.",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Índice de baixa precisão = 100 × max(0, ruins − 1) / total: uma aeronave é descontada, então não é a proporção bruta. Cada célula precisa de {aircraft} aeronaves em {minutes} minutos. Anomalias de integridade de navegação não são detecção de interferência (jamming) nem de falsificação (spoofing).",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Índice de baixa precisão = 100 × max(0, ruins − 1) / total: uma aeronave é descontada, então não é a proporção bruta. Anomalias de integridade de navegação não são detecção de interferência (jamming) nem de falsificação (spoofing).",
|
||||||
"GNSS snapshot needs a view anchor": "O snapshot GNSS precisa de um ponto de referência da vista",
|
"GNSS snapshot needs a view anchor": "O snapshot GNSS precisa de um ponto de referência da vista",
|
||||||
"GNSS feed rate limited (HTTP 429)": "Feed GNSS: limite de requisições atingido (HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "Feed GNSS: limite de requisições atingido (HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "Snapshot de integridade GNSS malformado",
|
"Malformed GNSS integrity snapshot": "Snapshot de integridade GNSS malformado",
|
||||||
|
|||||||
@@ -2373,8 +2373,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Региональная выборка · радиус 250 мор. миль · ячейки из просмотренных видов за {minutes} мин",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Региональная выборка · радиус 250 мор. миль · ячейки из просмотренных видов за {minutes} мин",
|
||||||
"Retrying automatically at {time} UTC": "Автоматический повтор в {time} UTC",
|
"Retrying automatically at {time} UTC": "Автоматический повтор в {time} UTC",
|
||||||
"Retrying automatically after provider cooldown": "Автоматический повтор после паузы провайдера",
|
"Retrying automatically after provider cooldown": "Автоматический повтор после паузы провайдера",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "Обновляется автоматически после сдвига или масштабирования карты и раз в минуту. Публичный поток данных охватывает круг радиусом 250 морских миль вокруг центра вида; при отдалении карта не становится снимком всего мира. Пустые ячейки — вне охвата выборки или с недостаточным числом наблюдений.",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "Обновляется автоматически после сдвига или масштабирования карты и раз в минуту. Публичный поток данных охватывает круг радиусом 250 морских миль вокруг центра вида; при отдалении карта не становится снимком всего мира. В пустых областях за это окно ни один самолёт не сообщил точность навигации.",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Доля неточных = 100 × max(0, неточные − 1) / всего: один самолёт не учитывается, поэтому это не прямая доля. Для ячейки нужно самолётов: {aircraft} за {minutes} мин. Аномалии целостности навигации — не обнаружение глушения или подмены сигнала.",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Доля неточных = 100 × max(0, неточные − 1) / всего: один самолёт не учитывается, поэтому это не прямая доля. Аномалии целостности навигации — не обнаружение глушения или подмены сигнала.",
|
||||||
"SQUAWK {code} · {status}": "СКВОК {code} · {status}",
|
"SQUAWK {code} · {status}": "СКВОК {code} · {status}",
|
||||||
"ADS-B PRIORITY · {status}": "ADS-B ПРИОРИТЕТ · {status}",
|
"ADS-B PRIORITY · {status}": "ADS-B ПРИОРИТЕТ · {status}",
|
||||||
"ADS-B EMERGENCY · {status}": "ADS-B АВАРИЯ · {status}",
|
"ADS-B EMERGENCY · {status}": "ADS-B АВАРИЯ · {status}",
|
||||||
|
|||||||
@@ -1546,8 +1546,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Regionalt urval · radie 250 NM · celler från besökta vyer under {minutes} min",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Regionalt urval · radie 250 NM · celler från besökta vyer under {minutes} min",
|
||||||
"Retrying automatically at {time} UTC": "Försöker igen automatiskt kl. {time} UTC",
|
"Retrying automatically at {time} UTC": "Försöker igen automatiskt kl. {time} UTC",
|
||||||
"Retrying automatically after provider cooldown": "Försöker igen automatiskt när leverantörens spärrtid är över",
|
"Retrying automatically after provider cooldown": "Försöker igen automatiskt när leverantörens spärrtid är över",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "Uppdateras automatiskt efter panorering eller zoomning och en gång i minuten. Det öppna flödet täcker en cirkel på 250 nautiska mil runt vyns mitt; att zooma ut gör det inte till en global ögonblicksbild. Tomma celler ligger utanför den samplade täckningen eller har för få observationer.",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "Uppdateras automatiskt efter panorering eller zoomning och en gång i minuten. Det öppna flödet täcker en cirkel på 250 nautiska mil runt vyns mitt; att zooma ut gör det inte till en global ögonblicksbild. I tomma områden rapporterade inget flygplan sin navigeringsnoggrannhet under fönstret.",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Värdet för låg noggrannhet = 100 × max(0, dåliga − 1) / totalt: ett luftfartyg räknas bort, så detta är inte den råa andelen. Cellerna kräver {aircraft} luftfartyg under {minutes} minuter. Avvikelser i navigeringsintegriteten innebär inte att störsändning eller vilseledning (jamming eller spoofing) har upptäckts.",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Värdet för låg noggrannhet = 100 × max(0, dåliga − 1) / totalt: ett luftfartyg räknas bort, så detta är inte den råa andelen. Avvikelser i navigeringsintegriteten innebär inte att störsändning eller vilseledning (jamming eller spoofing) har upptäckts.",
|
||||||
"GNSS snapshot needs a view anchor": "GNSS-ögonblicksbilden behöver ett vyankare",
|
"GNSS snapshot needs a view anchor": "GNSS-ögonblicksbilden behöver ett vyankare",
|
||||||
"GNSS feed rate limited (HTTP 429)": "GNSS-flödet har nått gränsen för förfrågningar (HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "GNSS-flödet har nått gränsen för förfrågningar (HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "Felformaterad ögonblicksbild av GNSS-integritet",
|
"Malformed GNSS integrity snapshot": "Felformaterad ögonblicksbild av GNSS-integritet",
|
||||||
|
|||||||
@@ -875,8 +875,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Регіональна вибірка · радіус 250 мор. миль · комірки з переглянутих ділянок карти за {minutes} хв",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "Регіональна вибірка · радіус 250 мор. миль · комірки з переглянутих ділянок карти за {minutes} хв",
|
||||||
"Retrying automatically at {time} UTC": "Автоматичний повтор о {time} UTC",
|
"Retrying automatically at {time} UTC": "Автоматичний повтор о {time} UTC",
|
||||||
"Retrying automatically after provider cooldown": "Автоматичний повтор після паузи постачальника",
|
"Retrying automatically after provider cooldown": "Автоматичний повтор після паузи постачальника",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "Оновлюється автоматично після зсуву чи масштабування карти та раз на хвилину. Публічний потік даних охоплює коло радіусом 250 морських миль навколо центру карти; у разі віддалення карта не стає знімком усього світу. Порожні комірки — поза охопленням вибірки або з недостатньою кількістю спостережень.",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "Оновлюється автоматично після зсуву чи масштабування карти та раз на хвилину. Публічний потік даних охоплює коло радіусом 250 морських миль навколо центру карти; у разі віддалення карта не стає знімком усього світу. У порожніх областях за це вікно жоден літак не повідомив точність навігації.",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Показник неточності = 100 × max(0, неточні − 1) / усього: один літак не враховується, тож це не пряма частка літаків із неточними навігаційними даними. Мінімальна кількість літаків у комірці за {minutes} хв: {aircraft}. Аномалії цілісності навігації не означають виявлення глушіння чи підміни сигналу.",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "Показник неточності = 100 × max(0, неточні − 1) / усього: один літак не враховується, тож це не пряма частка літаків із неточними навігаційними даними. Аномалії цілісності навігації не означають виявлення глушіння чи підміни сигналу.",
|
||||||
"GNSS snapshot needs a view anchor": "Для знімка GNSS потрібна опорна точка на карті",
|
"GNSS snapshot needs a view anchor": "Для знімка GNSS потрібна опорна точка на карті",
|
||||||
"GNSS feed rate limited (HTTP 429)": "Потік GNSS: перевищено ліміт запитів (HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "Потік GNSS: перевищено ліміт запитів (HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "Некоректний знімок цілісності GNSS",
|
"Malformed GNSS integrity snapshot": "Некоректний знімок цілісності GNSS",
|
||||||
|
|||||||
@@ -811,8 +811,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "区域采样 · 半径 250 海里 · {minutes} 分钟内浏览过的视野中的网格",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "区域采样 · 半径 250 海里 · {minutes} 分钟内浏览过的视野中的网格",
|
||||||
"Retrying automatically at {time} UTC": "将于 {time} UTC 自动重试",
|
"Retrying automatically at {time} UTC": "将于 {time} UTC 自动重试",
|
||||||
"Retrying automatically after provider cooldown": "服务商冷却结束后自动重试",
|
"Retrying automatically after provider cooldown": "服务商冷却结束后自动重试",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "平移或缩放后以及每分钟自动更新。公共数据源覆盖以视野中心为圆心、半径 250 海里的范围;缩小地图并不会使其成为全球快照。空白网格位于采样覆盖范围之外,或观测数据不足。",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "平移或缩放后以及每分钟自动更新。公共数据源覆盖以视野中心为圆心、半径 250 海里的范围;缩小地图并不会使其成为全球快照。空白区域在该时间窗内没有飞机报告导航精度。",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "低精度评分 = 100 × max(0, bad − 1) / total:扣除一架飞机,因此并非原始占比。每个网格需在 {minutes} 分钟内有 {aircraft} 架飞机。导航完好性异常不等于检测到干扰或欺骗。",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "低精度评分 = 100 × max(0, bad − 1) / total:扣除一架飞机,因此并非原始占比。导航完好性异常不等于检测到干扰或欺骗。",
|
||||||
"GNSS snapshot needs a view anchor": "GNSS 快照需要视图锚点",
|
"GNSS snapshot needs a view anchor": "GNSS 快照需要视图锚点",
|
||||||
"GNSS feed rate limited (HTTP 429)": "GNSS 数据源已被限流(HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "GNSS 数据源已被限流(HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "GNSS 完好性快照格式错误",
|
"Malformed GNSS integrity snapshot": "GNSS 完好性快照格式错误",
|
||||||
|
|||||||
@@ -806,8 +806,8 @@
|
|||||||
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "區域採樣 · 半徑 250 海里 · {minutes} 分鐘內瀏覽過的視野中的網格",
|
"Regional sample · 250 nm radius · cells from visited views over {minutes} min": "區域採樣 · 半徑 250 海里 · {minutes} 分鐘內瀏覽過的視野中的網格",
|
||||||
"Retrying automatically at {time} UTC": "將於 {time} UTC 自動重試",
|
"Retrying automatically at {time} UTC": "將於 {time} UTC 自動重試",
|
||||||
"Retrying automatically after provider cooldown": "服務商冷卻結束後自動重試",
|
"Retrying automatically after provider cooldown": "服務商冷卻結束後自動重試",
|
||||||
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.": "平移或縮放後以及每分鐘自動更新。公共數據源覆蓋以視野中心為圓心、半徑 250 海里的範圍;縮小地圖並不會使其成為全球快照。空白網格位於採樣覆蓋範圍之外,或觀測數據不足。",
|
"Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.": "平移或縮放後以及每分鐘自動更新。公共數據源覆蓋以視野中心為圓心、半徑 250 海里的範圍;縮小地圖並不會使其成為全球快照。空白區域在該時間窗內沒有飛機報告導航精度。",
|
||||||
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "低精度評分 = 100 × max(0, bad − 1) / total:扣除一架飛機,因此並非原始佔比。每個網格需在 {minutes} 分鐘內有 {aircraft} 架飛機。導航完好性異常不等於檢測到干擾或欺騙。",
|
"Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.": "低精度評分 = 100 × max(0, bad − 1) / total:扣除一架飛機,因此並非原始佔比。導航完好性異常不等於檢測到干擾或欺騙。",
|
||||||
"GNSS snapshot needs a view anchor": "GNSS 快照需要視圖錨點",
|
"GNSS snapshot needs a view anchor": "GNSS 快照需要視圖錨點",
|
||||||
"GNSS feed rate limited (HTTP 429)": "GNSS 數據源已被限流(HTTP 429)",
|
"GNSS feed rate limited (HTTP 429)": "GNSS 數據源已被限流(HTTP 429)",
|
||||||
"Malformed GNSS integrity snapshot": "GNSS 完好性快照格式錯誤",
|
"Malformed GNSS integrity snapshot": "GNSS 完好性快照格式錯誤",
|
||||||
|
|||||||
+10
-15
@@ -3,10 +3,10 @@ import { formatNumber, msg, t } from '../../i18n/index.js';
|
|||||||
import { translateFeedError } from '../../ui/statusText.js';
|
import { translateFeedError } from '../../ui/statusText.js';
|
||||||
import {
|
import {
|
||||||
GNSS_LEVEL_COLORS,
|
GNSS_LEVEL_COLORS,
|
||||||
GNSS_MIN_AIRCRAFT,
|
|
||||||
GNSS_WINDOW_MS,
|
GNSS_WINDOW_MS,
|
||||||
accumulateGnssObservations,
|
accumulateGnssObservations,
|
||||||
binGnssCells,
|
binGnssCells,
|
||||||
|
gnssCellRing,
|
||||||
gnssProvenance,
|
gnssProvenance,
|
||||||
pruneGnssObservations,
|
pruneGnssObservations,
|
||||||
} from './records.js';
|
} from './records.js';
|
||||||
@@ -62,7 +62,7 @@ export function defaultGnssViewAnchor(viewer) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Own one GNSS navigation-integrity display: rolling integrity observations
|
* Own one GNSS navigation-integrity display: rolling integrity observations
|
||||||
* around the views the user visits, binned into cells coloured by the
|
* around the views the user visits, binned into H3 hexagons coloured by the
|
||||||
* gpsjam low-accuracy score. Share links retain token 3.
|
* gpsjam low-accuracy score. Share links retain token 3.
|
||||||
*/
|
*/
|
||||||
export function createGnssIntegrityLayer({
|
export function createGnssIntegrityLayer({
|
||||||
@@ -185,13 +185,12 @@ export function createGnssIntegrityLayer({
|
|||||||
(cell) =>
|
(cell) =>
|
||||||
new Cesium.GeometryInstance({
|
new Cesium.GeometryInstance({
|
||||||
id: `${layer.id}:${cell.id}`,
|
id: `${layer.id}:${cell.id}`,
|
||||||
geometry: new Cesium.RectangleGeometry({
|
geometry: new Cesium.PolygonGeometry({
|
||||||
rectangle: Cesium.Rectangle.fromDegrees(
|
// H3 edges are great-circle arcs, as Cesium's geodesic edges.
|
||||||
cell.west,
|
polygonHierarchy: new Cesium.PolygonHierarchy(
|
||||||
cell.south,
|
Cesium.Cartesian3.fromDegreesArray(gnssCellRing(cell)),
|
||||||
cell.east,
|
|
||||||
cell.north,
|
|
||||||
),
|
),
|
||||||
|
arcType: Cesium.ArcType.GEODESIC,
|
||||||
vertexFormat: Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,
|
vertexFormat: Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,
|
||||||
}),
|
}),
|
||||||
attributes: {
|
attributes: {
|
||||||
@@ -209,7 +208,7 @@ export function createGnssIntegrityLayer({
|
|||||||
}),
|
}),
|
||||||
classificationType: Cesium.ClassificationType.BOTH,
|
classificationType: Cesium.ClassificationType.BOTH,
|
||||||
allowPicking: false,
|
allowPicking: false,
|
||||||
// Retain the compact rectangle descriptors for inspection, not Entity visualizers.
|
// Retain the compact polygon descriptors for inspection, not Entity visualizers.
|
||||||
releaseGeometryInstances: false,
|
releaseGeometryInstances: false,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
@@ -396,7 +395,7 @@ export function createGnssIntegrityLayer({
|
|||||||
}`
|
}`
|
||||||
: ''),
|
: ''),
|
||||||
infoTitle: t(
|
infoTitle: t(
|
||||||
'Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank cells are outside sampled coverage or have insufficient observations.',
|
'Updates automatically after pan or zoom and once a minute. The public feed covers a 250-nautical-mile circle around the view centre; zooming out does not make it a worldwide snapshot. Blank areas had no aircraft reporting navigation accuracy in the window.',
|
||||||
),
|
),
|
||||||
legend: ['high', 'medium', 'low'].map((level, index) => ({
|
legend: ['high', 'medium', 'low'].map((level, index) => ({
|
||||||
label: t(LEVEL_LABELS[level]),
|
label: t(LEVEL_LABELS[level]),
|
||||||
@@ -405,11 +404,7 @@ export function createGnssIntegrityLayer({
|
|||||||
...(index === 0
|
...(index === 0
|
||||||
? {
|
? {
|
||||||
blurb: t(
|
blurb: t(
|
||||||
'Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Cells need {aircraft} aircraft over {minutes} minutes. Navigation-integrity anomalies are not a detection of jamming or spoofing.',
|
'Low-accuracy score = 100 × max(0, bad − 1) / total: one aircraft is discounted, so this is not the raw share. Navigation-integrity anomalies are not a detection of jamming or spoofing.',
|
||||||
{
|
|
||||||
aircraft: formatNumber(GNSS_MIN_AIRCRAFT),
|
|
||||||
minutes: formatNumber(provenance.window.minutes),
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
|
|||||||
@@ -75,8 +75,8 @@ function harness(
|
|||||||
const MIN = 60_000;
|
const MIN = 60_000;
|
||||||
const threeHealthy = () => [
|
const threeHealthy = () => [
|
||||||
row('a1', 1.1, false),
|
row('a1', 1.1, false),
|
||||||
row('a2', 1.2, false),
|
row('a2', 1.12, false),
|
||||||
row('a3', 1.3, false),
|
row('a3', 1.14, false),
|
||||||
];
|
];
|
||||||
|
|
||||||
const flush = () => new Promise((resolve) => setImmediate(resolve));
|
const flush = () => new Promise((resolve) => setImmediate(resolve));
|
||||||
@@ -216,21 +216,25 @@ test('an enabled refresh bins the snapshot into coloured ground cells', async ()
|
|||||||
assert.equal(sources[0].show, true);
|
assert.equal(sources[0].show, true);
|
||||||
assert.equal(await layer.update(), true);
|
assert.equal(await layer.update(), true);
|
||||||
const entities = sources[0].get(0).geometryInstances;
|
const entities = sources[0].get(0).geometryInstances;
|
||||||
assert.equal(entities.length, 1, 'the one-aircraft cell is withheld');
|
assert.equal(entities.length, 2, 'a one-aircraft cell is shown too');
|
||||||
assert.equal(entities[0].id, 'gnss-integrity:280:420');
|
assert.deepEqual(
|
||||||
assert.ok(entities[0].geometry instanceof Cesium.RectangleGeometry);
|
entities.map(({ id }) => id),
|
||||||
|
['gnss-integrity:841e631ffffffff', 'gnss-integrity:841f6b3ffffffff'],
|
||||||
|
);
|
||||||
|
for (const { geometry } of entities)
|
||||||
|
assert.ok(geometry instanceof Cesium.PolygonGeometry);
|
||||||
assert.equal(sources[0].get(0).allowPicking, false);
|
assert.equal(sources[0].get(0).allowPicking, false);
|
||||||
const stats = layer.getStats();
|
const stats = layer.getStats();
|
||||||
assert.equal(stats.count, 1);
|
assert.equal(stats.count, 2);
|
||||||
assert.equal(stats.error, null);
|
assert.equal(stats.error, null);
|
||||||
assert.equal(stats.fallback, false);
|
assert.equal(stats.fallback, false);
|
||||||
const { legend } = layer.getRowControls();
|
const { legend } = layer.getRowControls();
|
||||||
assert.deepEqual(
|
assert.deepEqual(
|
||||||
legend.map(({ count }) => count),
|
legend.map(({ count }) => count),
|
||||||
[1, 0, 0],
|
[1, 0, 1],
|
||||||
);
|
);
|
||||||
assert.match(legend[0].blurb, /not a detection/);
|
assert.match(legend[0].blurb, /not a detection/);
|
||||||
assert.match(legend[0].blurb, /need 3 aircraft/);
|
assert.doesNotMatch(legend[0].blurb, /need \d+ aircraft/);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('the visible layer leads with low navigation accuracy and exposes its provenance', async () => {
|
test('the visible layer leads with low navigation accuracy and exposes its provenance', async () => {
|
||||||
@@ -262,10 +266,10 @@ test('the visible layer leads with low navigation accuracy and exposes its prove
|
|||||||
assert.deepEqual(layer.provenance.window, {
|
assert.deepEqual(layer.provenance.window, {
|
||||||
minutes: 30,
|
minutes: 30,
|
||||||
scope: 'visited-view',
|
scope: 'visited-view',
|
||||||
cellDeg: 0.5,
|
|
||||||
minAircraft: 3,
|
|
||||||
definedBy: 'GEV',
|
definedBy: 'GEV',
|
||||||
});
|
});
|
||||||
|
assert.equal(layer.provenance.aggregation.grid, 'h3');
|
||||||
|
assert.equal(layer.provenance.aggregation.h3Resolution, 4);
|
||||||
assert.equal(layer.provenance.interpretation.validated, false);
|
assert.equal(layer.provenance.interpretation.validated, false);
|
||||||
assert.equal(layer.getStats().provenance, layer.provenance);
|
assert.equal(layer.getStats().provenance, layer.provenance);
|
||||||
});
|
});
|
||||||
@@ -277,8 +281,8 @@ test('a failed refresh keeps the last cells and reports the error', async () =>
|
|||||||
return {
|
return {
|
||||||
rows: [
|
rows: [
|
||||||
row('a1', 1.1, false),
|
row('a1', 1.1, false),
|
||||||
row('a2', 1.2, false),
|
row('a2', 1.12, false),
|
||||||
row('a3', 1.3, false),
|
row('a3', 1.14, false),
|
||||||
],
|
],
|
||||||
stale: true,
|
stale: true,
|
||||||
};
|
};
|
||||||
@@ -305,7 +309,11 @@ test('observations expire with the window, and disable aborts the request in fli
|
|||||||
layer.enable();
|
layer.enable();
|
||||||
let result = layer.update();
|
let result = layer.update();
|
||||||
pending.resolve({
|
pending.resolve({
|
||||||
rows: [row('a1', 1.1, false), row('a2', 1.2, false), row('a3', 1.3, false)],
|
rows: [
|
||||||
|
row('a1', 1.1, false),
|
||||||
|
row('a2', 1.12, false),
|
||||||
|
row('a3', 1.14, false),
|
||||||
|
],
|
||||||
});
|
});
|
||||||
assert.equal(await result, true);
|
assert.equal(await result, true);
|
||||||
assert.equal(layer.getStats().count, 1);
|
assert.equal(layer.getStats().count, 1);
|
||||||
|
|||||||
+48
-34
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Low navigation accuracy reported by ADS-B aircraft, binned into cells.
|
* Low navigation accuracy reported by ADS-B aircraft, binned into H3 cells.
|
||||||
*
|
*
|
||||||
* Aircraft broadcasting DO-260 version 1/2 ADS-B report how much they trust
|
* Aircraft broadcasting DO-260 version 1/2 ADS-B report how much they trust
|
||||||
* their own position: NIC (integrity containment radius) and NACp (position
|
* their own position: NIC (integrity containment radius) and NACp (position
|
||||||
@@ -16,9 +16,12 @@
|
|||||||
* from the US 14 CFR 91.227(c) ADS-B Out performance minima, which are not
|
* from the US 14 CFR 91.227(c) ADS-B Out performance minima, which are not
|
||||||
* a published interference classifier) or the readsb/tar1090 `gpsOkBefore`
|
* a published interference classifier) or the readsb/tar1090 `gpsOkBefore`
|
||||||
* flag. gpsjam.org does not publish its per-aircraft threshold.
|
* flag. gpsjam.org does not publish its per-aircraft threshold.
|
||||||
* - Cell aggregation: gpsjam.org's published formula and 2% / 10% bands.
|
* - Cell aggregation: gpsjam.org's published formula, 2% / 10% bands and
|
||||||
|
* hex grid (H3 resolution 4). Every cell with an aircraft is shown, as on
|
||||||
|
* gpsjam.org; the one-aircraft discount is the only small-sample guard.
|
||||||
* - Window: a GEV-defined rolling 30 minutes over the views the user visits.
|
* - Window: a GEV-defined rolling 30 minutes over the views the user visits.
|
||||||
*/
|
*/
|
||||||
|
import { cellToBoundary, cellToLatLng, latLngToCell } from 'h3-js';
|
||||||
|
|
||||||
/** Position source can switch to MLAT after GPS loss; quality must remain aircraft-reported. */
|
/** Position source can switch to MLAT after GPS loss; quality must remain aircraft-reported. */
|
||||||
const QUALIFYING_TYPES = new Set(['adsb_icao', 'mlat']);
|
const QUALIFYING_TYPES = new Set(['adsb_icao', 'mlat']);
|
||||||
@@ -30,10 +33,8 @@ export const GNSS_NIC_THRESHOLD = 7;
|
|||||||
export const GNSS_NACP_THRESHOLD = 8;
|
export const GNSS_NACP_THRESHOLD = 8;
|
||||||
/** Positions older than this are not current evidence of the local sky. */
|
/** Positions older than this are not current evidence of the local sky. */
|
||||||
const MAX_POSITION_AGE_S = 60;
|
const MAX_POSITION_AGE_S = 60;
|
||||||
/** Cell edge in degrees: roughly 55 km north-south, similar in area to an H3 res-4 cell. */
|
/** H3 resolution of the cells, gpsjam.org's grid: hexagons of about 1,770 km² (22.6 km edge). */
|
||||||
export const GNSS_CELL_DEG = 0.5;
|
export const GNSS_H3_RESOLUTION = 4;
|
||||||
/** Hide sparse one- and two-aircraft cells; the aggregation separately discounts one bad report. */
|
|
||||||
export const GNSS_MIN_AIRCRAFT = 3;
|
|
||||||
/** Rolling window over which aircraft seen in a cell are counted. */
|
/** Rolling window over which aircraft seen in a cell are counted. */
|
||||||
export const GNSS_WINDOW_MS = 30 * 60_000;
|
export const GNSS_WINDOW_MS = 30 * 60_000;
|
||||||
/** gpsjam.org band edges, in percent of aircraft (after discounting one). */
|
/** gpsjam.org band edges, in percent of aircraft (after discounting one). */
|
||||||
@@ -68,14 +69,14 @@ export function gnssProvenance({ windowMs = GNSS_WINDOW_MS } = {}) {
|
|||||||
id: 'gpsjam-cell-bands',
|
id: 'gpsjam-cell-bands',
|
||||||
formula: '100 * max(0, bad - 1) / total',
|
formula: '100 * max(0, bad - 1) / total',
|
||||||
bands: Object.freeze([GNSS_MEDIUM_PERCENT, GNSS_HIGH_PERCENT]),
|
bands: Object.freeze([GNSS_MEDIUM_PERCENT, GNSS_HIGH_PERCENT]),
|
||||||
|
grid: 'h3',
|
||||||
|
h3Resolution: GNSS_H3_RESOLUTION,
|
||||||
source: 'https://gpsjam.org/faq',
|
source: 'https://gpsjam.org/faq',
|
||||||
definedBy: 'gpsjam.org',
|
definedBy: 'gpsjam.org',
|
||||||
}),
|
}),
|
||||||
window: Object.freeze({
|
window: Object.freeze({
|
||||||
minutes: windowMs / 60_000,
|
minutes: windowMs / 60_000,
|
||||||
scope: 'visited-view',
|
scope: 'visited-view',
|
||||||
cellDeg: GNSS_CELL_DEG,
|
|
||||||
minAircraft: GNSS_MIN_AIRCRAFT,
|
|
||||||
definedBy: 'GEV',
|
definedBy: 'GEV',
|
||||||
}),
|
}),
|
||||||
state: Object.freeze({
|
state: Object.freeze({
|
||||||
@@ -161,11 +162,30 @@ export function normalizeGnssAircraft(payload) {
|
|||||||
return rows;
|
return rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Stable key of the cell containing a position. */
|
/** Stable key of the cell containing a position: its H3 index. */
|
||||||
export function gnssCellKey(lat, lon, cellDeg = GNSS_CELL_DEG) {
|
export function gnssCellKey(lat, lon, resolution = GNSS_H3_RESOLUTION) {
|
||||||
const row = Math.floor((Math.min(lat, 89.999999) + 90) / cellDeg);
|
return latLngToCell(lat, lon, resolution);
|
||||||
const col = Math.floor((Math.min(lon, 179.999999) + 180) / cellDeg);
|
}
|
||||||
return `${row}:${col}`;
|
|
||||||
|
/**
|
||||||
|
* The ring to draw for a cell, as flat `[lon, lat, lon, lat, ...]` degrees.
|
||||||
|
* Longitudes are unwrapped to within 180° of the cell centre, so a cell
|
||||||
|
* across the antimeridian stays one narrow polygon (some longitudes then lie
|
||||||
|
* just outside ±180°) instead of spanning the globe. A cell around a pole
|
||||||
|
* keeps its full turn of longitudes; drawn on the globe it is still small.
|
||||||
|
*
|
||||||
|
* @param {{lat: number, lon: number, boundary: {lat: number, lon: number}[]}} cell
|
||||||
|
* @returns {number[]}
|
||||||
|
*/
|
||||||
|
export function gnssCellRing(cell) {
|
||||||
|
const ring = [];
|
||||||
|
for (const { lat, lon } of cell.boundary) {
|
||||||
|
let unwrapped = lon;
|
||||||
|
while (unwrapped - cell.lon > 180) unwrapped -= 360;
|
||||||
|
while (unwrapped - cell.lon < -180) unwrapped += 360;
|
||||||
|
ring.push(unwrapped, lat);
|
||||||
|
}
|
||||||
|
return ring;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -183,7 +203,7 @@ export function gnssCellKey(lat, lon, cellDeg = GNSS_CELL_DEG) {
|
|||||||
* @param {Map<string, {cell: string, seenAt: number, degradedAt: number|null}>} store
|
* @param {Map<string, {cell: string, seenAt: number, degradedAt: number|null}>} store
|
||||||
* @param {ReturnType<typeof normalizeGnssAircraft>} rows
|
* @param {ReturnType<typeof normalizeGnssAircraft>} rows
|
||||||
* @param {number} nowMs
|
* @param {number} nowMs
|
||||||
* @param {{windowMs?: number, cellDeg?: number, observedAt?: number}} [options]
|
* @param {{windowMs?: number, resolution?: number, observedAt?: number}} [options]
|
||||||
* `observedAt` is the snapshot's observation time (defaults to `nowMs`;
|
* `observedAt` is the snapshot's observation time (defaults to `nowMs`;
|
||||||
* a future time is clamped to `nowMs`, a non-finite one adds nothing).
|
* a future time is clamped to `nowMs`, a non-finite one adds nothing).
|
||||||
* @returns {Map} The same store, pruned to the window.
|
* @returns {Map} The same store, pruned to the window.
|
||||||
@@ -194,7 +214,7 @@ export function accumulateGnssObservations(
|
|||||||
nowMs,
|
nowMs,
|
||||||
{
|
{
|
||||||
windowMs = GNSS_WINDOW_MS,
|
windowMs = GNSS_WINDOW_MS,
|
||||||
cellDeg = GNSS_CELL_DEG,
|
resolution = GNSS_H3_RESOLUTION,
|
||||||
observedAt = nowMs,
|
observedAt = nowMs,
|
||||||
} = {},
|
} = {},
|
||||||
) {
|
) {
|
||||||
@@ -202,7 +222,7 @@ export function accumulateGnssObservations(
|
|||||||
if (Number.isFinite(at) && nowMs - at <= windowMs) {
|
if (Number.isFinite(at) && nowMs - at <= windowMs) {
|
||||||
for (const row of rows || []) {
|
for (const row of rows || []) {
|
||||||
if (!Number.isFinite(row?.lat) || !Number.isFinite(row?.lon)) continue;
|
if (!Number.isFinite(row?.lat) || !Number.isFinite(row?.lon)) continue;
|
||||||
const cell = gnssCellKey(row.lat, row.lon, cellDeg);
|
const cell = gnssCellKey(row.lat, row.lon, resolution);
|
||||||
const key = `${row.hex}|${cell}`;
|
const key = `${row.hex}|${cell}`;
|
||||||
const previous = store.get(key);
|
const previous = store.get(key);
|
||||||
const previousDegradedAt = previous?.degradedAt ?? null;
|
const previousDegradedAt = previous?.degradedAt ?? null;
|
||||||
@@ -264,16 +284,16 @@ export function gnssIntegrityLevel(total, degraded) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Aggregate the observation store into displayable cells. Expects a store
|
* Aggregate the observation store into displayable cells, one per H3 cell
|
||||||
* already pruned to the window by `accumulateGnssObservations` or
|
* with at least one aircraft (gpsjam.org has no minimum count). Expects a
|
||||||
* `pruneGnssObservations`.
|
* store already pruned to the window by `accumulateGnssObservations` or
|
||||||
|
* `pruneGnssObservations`. `lat`/`lon` is the cell centre and `boundary` its
|
||||||
|
* vertices in order (six for a hexagon, five for a pentagon), with
|
||||||
|
* longitudes in -180..180; `gnssCellRing` gives the ring to draw.
|
||||||
*
|
*
|
||||||
* @returns {{id: string, south: number, west: number, north: number, east: number, lat: number, lon: number, aircraft: number, degraded: number, percentDegraded: number, level: 'low'|'medium'|'high', state: string, interpretation: string|null}[]}
|
* @returns {{id: string, lat: number, lon: number, boundary: {lat: number, lon: number}[], aircraft: number, degraded: number, percentDegraded: number, level: 'low'|'medium'|'high', state: string, interpretation: string|null}[]}
|
||||||
*/
|
*/
|
||||||
export function binGnssCells(
|
export function binGnssCells(store) {
|
||||||
store,
|
|
||||||
{ cellDeg = GNSS_CELL_DEG, minAircraft = GNSS_MIN_AIRCRAFT } = {},
|
|
||||||
) {
|
|
||||||
const tallies = new Map();
|
const tallies = new Map();
|
||||||
for (const { cell, degradedAt } of store.values()) {
|
for (const { cell, degradedAt } of store.values()) {
|
||||||
const tally = tallies.get(cell) || { aircraft: 0, degraded: 0 };
|
const tally = tallies.get(cell) || { aircraft: 0, degraded: 0 };
|
||||||
@@ -283,22 +303,16 @@ export function binGnssCells(
|
|||||||
}
|
}
|
||||||
const cells = [];
|
const cells = [];
|
||||||
for (const [id, { aircraft, degraded }] of tallies) {
|
for (const [id, { aircraft, degraded }] of tallies) {
|
||||||
if (aircraft < minAircraft) continue;
|
const [lat, lon] = cellToLatLng(id);
|
||||||
const [row, col] = id.split(':').map(Number);
|
|
||||||
const south = row * cellDeg - 90;
|
|
||||||
const west = col * cellDeg - 180;
|
|
||||||
const { percent, level, state, interpretation } = gnssIntegrityLevel(
|
const { percent, level, state, interpretation } = gnssIntegrityLevel(
|
||||||
aircraft,
|
aircraft,
|
||||||
degraded,
|
degraded,
|
||||||
);
|
);
|
||||||
cells.push({
|
cells.push({
|
||||||
id,
|
id,
|
||||||
south,
|
lat,
|
||||||
west,
|
lon,
|
||||||
north: south + cellDeg,
|
boundary: cellToBoundary(id).map(([lat, lon]) => ({ lat, lon })),
|
||||||
east: west + cellDeg,
|
|
||||||
lat: south + cellDeg / 2,
|
|
||||||
lon: west + cellDeg / 2,
|
|
||||||
aircraft,
|
aircraft,
|
||||||
degraded,
|
degraded,
|
||||||
percentDegraded: Math.round(percent * 10) / 10,
|
percentDegraded: Math.round(percent * 10) / 10,
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
import assert from 'node:assert/strict';
|
import assert from 'node:assert/strict';
|
||||||
import test from 'node:test';
|
import test from 'node:test';
|
||||||
|
import { getResolution, isPentagon, isValidCell } from 'h3-js';
|
||||||
import {
|
import {
|
||||||
accumulateGnssObservations,
|
accumulateGnssObservations,
|
||||||
binGnssCells,
|
binGnssCells,
|
||||||
GNSS_CLASSIFIER,
|
GNSS_CLASSIFIER,
|
||||||
|
GNSS_H3_RESOLUTION,
|
||||||
|
GNSS_HIGH_PERCENT,
|
||||||
|
GNSS_MEDIUM_PERCENT,
|
||||||
GNSS_PROVENANCE,
|
GNSS_PROVENANCE,
|
||||||
GNSS_WINDOW_MS,
|
GNSS_WINDOW_MS,
|
||||||
gnssCellKey,
|
gnssCellKey,
|
||||||
|
gnssCellRing,
|
||||||
gnssIntegrityLevel,
|
gnssIntegrityLevel,
|
||||||
gnssProvenance,
|
gnssProvenance,
|
||||||
normalizeGnssAircraft,
|
normalizeGnssAircraft,
|
||||||
@@ -117,13 +122,87 @@ test('low NIC, low NACp or a readsb GPS-loss flag each mark an aircraft degraded
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('cell keys are stable half-degree bins, clamped at the poles and antimeridian', () => {
|
test('cell keys are the H3 resolution-4 cells gpsjam.org uses', () => {
|
||||||
assert.equal(gnssCellKey(50.1, 19.9), gnssCellKey(50.4, 19.6));
|
assert.equal(GNSS_H3_RESOLUTION, 4);
|
||||||
assert.notEqual(gnssCellKey(50.1, 19.9), gnssCellKey(50.6, 19.9));
|
// Kraków: a known lat/lon lands in its known res-4 hexagon.
|
||||||
assert.equal(gnssCellKey(90, 180), gnssCellKey(89.9, 179.9));
|
assert.equal(gnssCellKey(50.1, 19.9), '841e2e7ffffffff');
|
||||||
assert.equal(gnssCellKey(-90, -180), '0:0');
|
assert.equal(getResolution(gnssCellKey(50.1, 19.9)), 4);
|
||||||
// Just south-west of the origin falls in the last cell before 0°, not cell 0.
|
// Nearby points share the hexagon; a point ~50 km north does not.
|
||||||
assert.equal(gnssCellKey(-0.1, -0.1), '179:359');
|
assert.equal(gnssCellKey(50.1, 19.9), gnssCellKey(50.12, 19.95));
|
||||||
|
assert.notEqual(gnssCellKey(50.1, 19.9), gnssCellKey(50.55, 19.9));
|
||||||
|
// The poles and both sides of the antimeridian still key valid cells.
|
||||||
|
for (const [lat, lon] of [
|
||||||
|
[90, 180],
|
||||||
|
[-90, -180],
|
||||||
|
[0, 179.99],
|
||||||
|
[0, -179.99],
|
||||||
|
]) {
|
||||||
|
const key = gnssCellKey(lat, lon);
|
||||||
|
assert.ok(isValidCell(key), `${lat},${lon} → ${key}`);
|
||||||
|
assert.equal(getResolution(key), 4);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const cellAt = (lat, lon) => {
|
||||||
|
const store = new Map();
|
||||||
|
accumulateGnssObservations(
|
||||||
|
store,
|
||||||
|
[{ hex: 'c1', lat, lon, degraded: false }],
|
||||||
|
0,
|
||||||
|
);
|
||||||
|
return binGnssCells(store)[0];
|
||||||
|
};
|
||||||
|
|
||||||
|
test('a cell carries its H3 centre and hexagon boundary', () => {
|
||||||
|
const cell = cellAt(50.1, 19.9);
|
||||||
|
assert.equal(cell.id, '841e2e7ffffffff');
|
||||||
|
assert.ok(Math.abs(cell.lat - 50.17184) < 1e-4);
|
||||||
|
assert.ok(Math.abs(cell.lon - 20.12566) < 1e-4);
|
||||||
|
assert.equal(cell.boundary.length, 6);
|
||||||
|
for (const { lat, lon } of cell.boundary) {
|
||||||
|
// Res-4 hexagons are about 45 km across.
|
||||||
|
assert.ok(Math.abs(lat - cell.lat) < 0.4, `lat ${lat}`);
|
||||||
|
assert.ok(Math.abs(lon - cell.lon) < 0.6, `lon ${lon}`);
|
||||||
|
}
|
||||||
|
for (const key of ['south', 'west', 'north', 'east'])
|
||||||
|
assert.equal(key in cell, false, `no rectangle field ${key}`);
|
||||||
|
assert.deepEqual(
|
||||||
|
gnssCellRing(cell),
|
||||||
|
cell.boundary.flatMap(({ lat, lon }) => [lon, lat]),
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('a cell across the antimeridian is drawn as one narrow polygon', () => {
|
||||||
|
for (const lon of [179.99, -179.99]) {
|
||||||
|
const cell = cellAt(0, lon);
|
||||||
|
const lons = cell.boundary.map((vertex) => vertex.lon);
|
||||||
|
assert.ok(
|
||||||
|
Math.max(...lons) - Math.min(...lons) > 300,
|
||||||
|
'the raw boundary straddles ±180°',
|
||||||
|
);
|
||||||
|
const drawn = gnssCellRing(cell).filter((_, index) => index % 2 === 0);
|
||||||
|
const width = Math.max(...drawn) - Math.min(...drawn);
|
||||||
|
assert.ok(width < 1, `drawn width ${width}° stays narrow`);
|
||||||
|
for (const value of drawn) assert.ok(Math.abs(value - cell.lon) < 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
test('pentagon and polar cells give closed rings', () => {
|
||||||
|
// 8408001ffffffff is one of the twelve res-4 pentagons.
|
||||||
|
const pentagon = cellAt(64.7, 10.5);
|
||||||
|
assert.ok(isPentagon(pentagon.id));
|
||||||
|
assert.equal(pentagon.boundary.length, 5);
|
||||||
|
assert.equal(gnssCellRing(pentagon).length, 10);
|
||||||
|
for (const lat of [89.99, -89.99]) {
|
||||||
|
const polar = cellAt(lat, 10);
|
||||||
|
assert.ok(polar.boundary.length >= 6);
|
||||||
|
for (const vertex of polar.boundary)
|
||||||
|
assert.ok(Math.abs(vertex.lat) > 89 && Math.abs(vertex.lat) <= 90);
|
||||||
|
// Unwrapped longitudes stay within half a turn of the centre.
|
||||||
|
gnssCellRing(polar)
|
||||||
|
.filter((_, index) => index % 2 === 0)
|
||||||
|
.forEach((value) => assert.ok(Math.abs(value - polar.lon) <= 180));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('integrity level follows the gpsjam.org published cell formula and bands', () => {
|
test('integrity level follows the gpsjam.org published cell formula and bands', () => {
|
||||||
@@ -156,8 +235,8 @@ test('the primary state is a navigation-integrity anomaly; interference is only
|
|||||||
store,
|
store,
|
||||||
[
|
[
|
||||||
{ hex: 'h1', lat: 10.1, lon: 10.1, degraded: true },
|
{ hex: 'h1', lat: 10.1, lon: 10.1, degraded: true },
|
||||||
{ hex: 'h2', lat: 10.2, lon: 10.2, degraded: true },
|
{ hex: 'h2', lat: 10.11, lon: 10.11, degraded: true },
|
||||||
{ hex: 'h3', lat: 10.3, lon: 10.3, degraded: false },
|
{ hex: 'h3', lat: 10.12, lon: 10.12, degraded: false },
|
||||||
],
|
],
|
||||||
0,
|
0,
|
||||||
);
|
);
|
||||||
@@ -182,14 +261,14 @@ test('provenance separates the GEV classifier from the gpsjam aggregation and th
|
|||||||
id: 'gpsjam-cell-bands',
|
id: 'gpsjam-cell-bands',
|
||||||
formula: '100 * max(0, bad - 1) / total',
|
formula: '100 * max(0, bad - 1) / total',
|
||||||
bands: [2, 10],
|
bands: [2, 10],
|
||||||
|
grid: 'h3',
|
||||||
|
h3Resolution: 4,
|
||||||
source: 'https://gpsjam.org/faq',
|
source: 'https://gpsjam.org/faq',
|
||||||
definedBy: 'gpsjam.org',
|
definedBy: 'gpsjam.org',
|
||||||
});
|
});
|
||||||
assert.deepEqual(GNSS_PROVENANCE.window, {
|
assert.deepEqual(GNSS_PROVENANCE.window, {
|
||||||
minutes: 30,
|
minutes: 30,
|
||||||
scope: 'visited-view',
|
scope: 'visited-view',
|
||||||
cellDeg: 0.5,
|
|
||||||
minAircraft: 3,
|
|
||||||
definedBy: 'GEV',
|
definedBy: 'GEV',
|
||||||
});
|
});
|
||||||
assert.equal(GNSS_PROVENANCE.state.id, 'navigation-integrity-anomaly');
|
assert.equal(GNSS_PROVENANCE.state.id, 'navigation-integrity-anomaly');
|
||||||
@@ -225,14 +304,13 @@ test('observations count each aircraft once per cell and expire after the window
|
|||||||
assert.equal(cell.aircraft, 3);
|
assert.equal(cell.aircraft, 3);
|
||||||
assert.equal(cell.degraded, 1);
|
assert.equal(cell.degraded, 1);
|
||||||
assert.equal(cell.level, 'low');
|
assert.equal(cell.level, 'low');
|
||||||
assert.deepEqual(
|
assert.equal(cell.id, gnssCellKey(50.2, 20.1));
|
||||||
[cell.south, cell.west, cell.north, cell.east],
|
|
||||||
[50, 20, 50.5, 20.5],
|
|
||||||
);
|
|
||||||
|
|
||||||
accumulateGnssObservations(store, [], 1200, { windowMs: 1000 });
|
accumulateGnssObservations(store, [], 1200, { windowMs: 1000 });
|
||||||
assert.equal(store.size, 1);
|
assert.equal(store.size, 1);
|
||||||
assert.deepEqual(binGnssCells(store), []);
|
[cell] = binGnssCells(store);
|
||||||
|
assert.equal(cell.aircraft, 1, 'only a1, seen inside the window, remains');
|
||||||
|
assert.equal(cell.degraded, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
const MIN = 60_000;
|
const MIN = 60_000;
|
||||||
@@ -396,22 +474,66 @@ test('rows without finite coordinates never key a cell', () => {
|
|||||||
assert.equal(store.size, 0);
|
assert.equal(store.size, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('cells below the minimum aircraft count are withheld', () => {
|
test('every cell with an aircraft is shown, as on gpsjam.org; only the bad − 1 discount guards small samples', () => {
|
||||||
const store = new Map();
|
const store = new Map();
|
||||||
accumulateGnssObservations(
|
accumulateGnssObservations(
|
||||||
store,
|
store,
|
||||||
[
|
[{ hex: 'b1', lat: 10.1, lon: 10.1, degraded: true }],
|
||||||
{ hex: 'b1', lat: 10.1, lon: 10.1, degraded: true },
|
|
||||||
{ hex: 'b2', lat: 10.2, lon: 10.2, degraded: true },
|
|
||||||
],
|
|
||||||
0,
|
0,
|
||||||
);
|
);
|
||||||
assert.deepEqual(binGnssCells(store), []);
|
let [cell] = binGnssCells(store);
|
||||||
const [cell] = binGnssCells(store, { minAircraft: 2 });
|
assert.equal(cell.aircraft, 1);
|
||||||
|
assert.equal(cell.level, 'low', 'one bad aircraft is discounted');
|
||||||
|
assert.equal(cell.percentDegraded, 0);
|
||||||
|
accumulateGnssObservations(
|
||||||
|
store,
|
||||||
|
[{ hex: 'b2', lat: 10.12, lon: 10.12, degraded: true }],
|
||||||
|
0,
|
||||||
|
);
|
||||||
|
[cell] = binGnssCells(store);
|
||||||
|
assert.equal(cell.aircraft, 2);
|
||||||
assert.equal(cell.level, 'high');
|
assert.equal(cell.level, 'high');
|
||||||
assert.equal(cell.percentDegraded, 50);
|
assert.equal(cell.percentDegraded, 50);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('the gpsjam bands are unchanged by the hex grid', () => {
|
||||||
|
assert.equal(GNSS_MEDIUM_PERCENT, 2);
|
||||||
|
assert.equal(GNSS_HIGH_PERCENT, 10);
|
||||||
|
// [total, bad] → level, at and either side of both band edges.
|
||||||
|
for (const [total, bad, level] of [
|
||||||
|
[100, 0, 'low'],
|
||||||
|
[100, 1, 'low'],
|
||||||
|
[100, 2, 'low'],
|
||||||
|
[100, 3, 'medium'],
|
||||||
|
[50, 2, 'medium'],
|
||||||
|
[100, 11, 'medium'],
|
||||||
|
[100, 12, 'high'],
|
||||||
|
[10, 2, 'medium'],
|
||||||
|
[10, 3, 'high'],
|
||||||
|
])
|
||||||
|
assert.equal(
|
||||||
|
gnssIntegrityLevel(total, bad).level,
|
||||||
|
level,
|
||||||
|
`${bad}/${total}`,
|
||||||
|
);
|
||||||
|
// Binned cells band the same way: 3 bad of 10 in one hexagon is high.
|
||||||
|
const store = new Map();
|
||||||
|
accumulateGnssObservations(
|
||||||
|
store,
|
||||||
|
Array.from({ length: 10 }, (_, index) => ({
|
||||||
|
hex: `h${index}`,
|
||||||
|
lat: 50.1,
|
||||||
|
lon: 19.9,
|
||||||
|
degraded: index < 3,
|
||||||
|
})),
|
||||||
|
0,
|
||||||
|
);
|
||||||
|
const [cell] = binGnssCells(store);
|
||||||
|
assert.equal(cell.id, '841e2e7ffffffff');
|
||||||
|
assert.equal(cell.level, 'high');
|
||||||
|
assert.equal(cell.percentDegraded, 20);
|
||||||
|
});
|
||||||
|
|
||||||
test('MLAT GPS-loss evidence uses the last good GNSS location and ignores MLAT NIC', () => {
|
test('MLAT GPS-loss evidence uses the last good GNSS location and ignores MLAT NIC', () => {
|
||||||
const [row] = normalizeGnssAircraft({
|
const [row] = normalizeGnssAircraft({
|
||||||
ac: [
|
ac: [
|
||||||
|
|||||||
Reference in new issue
Block a user