diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-01-13 19:00:33 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-01-13 19:00:33 +0100 |
commit | c280291a0b7150c902e9dae5f4f670148307bdf3 (patch) | |
tree | c1e7ce8e04cf7e43ce9f3b90577b01c16dba240b /bin/ura-m | |
parent | 5874d734a0d851369a45f2ad869be03a8699162d (diff) |
initial support for stop messages (todo: documentation) (closes #6)
Diffstat (limited to 'bin/ura-m')
-rwxr-xr-x | bin/ura-m | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -93,6 +93,7 @@ my $status = Travel::Status::DE::URA->new( developer_mode => $developer_mode, ura_base => $ura_base, ura_version => $ura_version, + with_messages => 1, ); sub show_help { @@ -211,6 +212,10 @@ sub show_results { my $dt_format = DateTime::Format::Duration->new( pattern => $strfrel_format ); + for my $m ( $status->messages_by_stop_name($stop_name) ) { + printf( "# %s\n", $m ); + } + for my $d ( $status->results( calculate_routes => $calculate_routes, |