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

+13
View File
@@ -165,3 +165,16 @@ export function normalizeAircraftTrack(
];
});
}
/** Known source identities are useful for classification even without positions. */
export function readsbIdentities(payload) {
const admitted = admitRecords(
payload?.ac,
(row) => {
const id = cleanText(row?.hex).toLowerCase();
return id ? { id } : null;
},
'aircraft identities',
);
return admitted.records.map((record) => record.id);
}