From 8f79386e9dc37f893d1c1e01741b7ab4a6f68b2c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 26 Jan 2012 23:04:27 +0100 Subject: Route/Part.pm: Fix departure_stop_and_platform (closes github #3) --- Changelog | 5 +++++ lib/Travel/Routing/DE/VRR/Route/Part.pm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3