Unverified Commit 6af85253 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

EFA: request full routes; include route_pre / route_post

parent 91948c70
Loading
Loading
Loading
Loading
+17 −16
Original line number Diff line number Diff line
@@ -364,6 +364,7 @@ sub get_results_p {
		return Travel::Status::DE::EFA->new_p(
			service     => $service,
			name        => $station,
			full_routes => 1,
			cache       => $opt{cache_iris_rt},
			lwp_options => {
				timeout => 10,
@@ -1535,7 +1536,7 @@ sub handle_efa {
				train_type   => q{},
				train_line   => $result->line,
				train_no     => $result->train_no,
				via             => [],
				via          => [ map { $_->name } $result->route_interesting ],
				origin       => $result->origin,
				destination  => $result->destination,
				platform     => $result->platform,
@@ -1545,8 +1546,8 @@ sub handle_efa {
				occupancy    => $result->occupancy,
				replaced_by  => [],
				replacement_for => [],
				route_pre       => [],
				route_post      => [],
				route_pre       => [ map { $_->full_name } $result->route_pre ],
				route_post => [ map { $_->full_name } $result->route_post ],
				wr_dt      => undef,
			}
		);