mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
Reject out-of-range observation epochs before display
This commit is contained in:
1 parent
0007ace064
commit
ebebf69564
3 files changed
+18
-2
No files matched your search
@@ -141,7 +141,8 @@ export function normalizeAircraftTrack(
|
||||
const latitude = finite(row[1]),
|
||||
longitude = finite(row[2]);
|
||||
const offset = finite(row[0]);
|
||||
const observedAtMs = offset == null ? null : baseTimeMs + offset * 1000;
|
||||
const observedAtMs =
|
||||
offset == null ? null : epoch(baseTimeMs + offset * 1000);
|
||||
if (
|
||||
!coordinates(latitude, longitude) ||
|
||||
observedAtMs == null ||
|
||||
|
||||
Reference in new issue
Block a user