summaryrefslogtreecommitdiff
path: root/bin/ura-m
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-01-13 19:00:33 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-01-13 19:00:33 +0100
commitc280291a0b7150c902e9dae5f4f670148307bdf3 (patch)
treec1e7ce8e04cf7e43ce9f3b90577b01c16dba240b /bin/ura-m
parent5874d734a0d851369a45f2ad869be03a8699162d (diff)
initial support for stop messages (todo: documentation) (closes #6)
Diffstat (limited to 'bin/ura-m')
-rwxr-xr-xbin/ura-m5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ura-m b/bin/ura-m
index 7ff4c65..3111cda 100755
--- a/bin/ura-m
+++ b/bin/ura-m
@@ -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,