summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-01-26 23:04:27 +0100
committerDaniel Friesel <derf@finalrewind.org>2012-01-26 23:04:27 +0100
commit8f79386e9dc37f893d1c1e01741b7ab4a6f68b2c (patch)
treef609c5279016b1d4dce24d5323e7fa661be76f51
parentab6e2009243e2ea00cb3b34587df2460a0b59e57 (diff)
Route/Part.pm: Fix departure_stop_and_platform (closes github #3)
-rw-r--r--Changelog5
-rw-r--r--lib/Travel/Routing/DE/VRR/Route/Part.pm2
2 files changed, 6 insertions, 1 deletions
diff --git a/Changelog b/Changelog
index b7c7971..5a09a5b 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,8 @@
+git HEAD
+
+ * Fix bug in departure_stop_and_platform where the arrival_stop was used
+ in case of unknown platforms
+
Travel::Routing::DE::VRR 2.00 - Sun Dec 11 2011
* Now uses the efa.vrr.de XML interface
diff --git a/lib/Travel/Routing/DE/VRR/Route/Part.pm b/lib/Travel/Routing/DE/VRR/Route/Part.pm
index 4bfd96d..e938b56 100644
--- a/lib/Travel/Routing/DE/VRR/Route/Part.pm
+++ b/lib/Travel/Routing/DE/VRR/Route/Part.pm
@@ -44,7 +44,7 @@ sub departure_stop_and_platform {
sprintf( '%s: %s',
$self->get(qw(departure_stop departure_platform)) );
}
- return $self->arrival_stop;
+ return $self->departure_stop;
}
sub extra {