summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-13 12:00:31 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-03-13 12:00:31 +0100
commit2ccac68c6be4c2003168c6e552c6f2bd402626d1 (patch)
tree05fe94a58efdf2f3b5c651a89ce40e7c7c6534e0 /bin/efa-m
parentba3d72eb472fa92ee8382b7c07adb3ffc1c0fcc4 (diff)
show occupancy data if available
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-xbin/efa-m14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 326d2cb..e30a6fb 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -296,6 +296,20 @@ sub show_results {
$output_line[3]
= join( q{ }, map { $_->name_suf } $d->route_interesting );
}
+ elsif ( $d->occupancy ) {
+ if ( $d->occupancy eq 'MANY_SEATS' ) {
+ $output_line[3] = '_';
+ }
+ elsif ( $d->occupancy eq 'FEW_SEATS' ) {
+ $output_line[3] = '*';
+ }
+ elsif ( $d->occupancy eq 'STANDING_ONLY' ) {
+ $output_line[3] = '!';
+ }
+ else {
+ $output_line[3] = '?';
+ }
+ }
if ( $edata{fullroute} ) {
$output_line[6]