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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel
2023-03-21 13:57:01 -07:00
parent 166e03c604
commit ef3d383a30

View File

@@ -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}`;
}
}
}
})