From ef3d383a30d051ec99e5a4a573344db44fac6c19 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 21 Mar 2023 13:57:01 -0700 Subject: [PATCH] show implausible routes Feedback was to show routes that seem implausible and simply clearly mark them. Hopefully two leading questionmarks is sufficient. I haven't figured out how to add a link to a page where people could suggest an update for the data. Signed-off-by: Dirk Hohndel --- html/planeObject.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/html/planeObject.js b/html/planeObject.js index c838c28..bff0003 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -2933,8 +2933,12 @@ PlaneObject.prototype.setFlight = function(flight) { } console.log(logText); } - if (route.airport_codes != 'unknown' && route.plausible == true) { - g.route_cache[route.callsign] = route._airport_codes_iata; + if (route.airport_codes != 'unknown') { + if (route.plausible == true) { + g.route_cache[route.callsign] = route._airport_codes_iata; + } else { + g.route_cache[route.callsign] = `?? ${route._airport_codes_iata}`; + } } } })