Preserve positionless aircraft identities for classification

This commit is contained in:
Sameh Khamis committed 2026-09-13 10:28:10 -07:00
1 parent 1edebcb6f8
commit 22138212b9
8 files changed
+99 -4

No files matched your search

+11
View File
@@ -9,6 +9,7 @@ import {
normalizeAircraftTrack,
openSkySnapshot,
readsbSnapshot,
readsbIdentities,
} from './aircraft.js';
import { normalizeVesselTrack, vesselSnapshot } from './vessels.js';
@@ -113,6 +114,16 @@ export function createAdsbLolSource({
} = {}) {
return {
label: 'adsb.lol',
async getIdentities(_query = {}, { signal } = {}) {
const { response, payload } = await readResponse(
fetchImpl,
'/api/adsblol/mil',
{ signal },
'adsb.lol',
);
if (!response.ok) throw httpError(response, 'adsb.lol');
return readsbIdentities(payload);
},
async getSnapshot(_query = {}, { signal } = {}) {
const { response, payload } = await readResponse(
fetchImpl,