diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-13 12:00:31 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-13 12:00:31 +0100 |
commit | 2ccac68c6be4c2003168c6e552c6f2bd402626d1 (patch) | |
tree | 05fe94a58efdf2f3b5c651a89ce40e7c7c6534e0 /bin/efa-m | |
parent | ba3d72eb472fa92ee8382b7c07adb3ffc1c0fcc4 (diff) |
show occupancy data if available
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-x | bin/efa-m | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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] |