mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
Preserve positionless aircraft identities for classification
This commit is contained in:
1 parent
1edebcb6f8
commit
22138212b9
8 files changed
+99
-4
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user