Unverified Commit 968a83de authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

journey: destination => direction

parent 834ceb92
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ sub new {

	my $date = $journey->{date};

	my $destination  = $journey->{dirTxt};
	my $direction    = $journey->{dirTxt};
	my $is_cancelled = $journey->{isCncl};
	my $jid          = $journey->{jid};

@@ -126,7 +126,7 @@ sub new {
		is_cancelled => $is_cancelled,
		train        => $train,
		operator     => $operator,
		destination  => $destination,
		direction    => $direction,
		route_end    => $stops[-1]{name},
		messages     => \@messages,
		route        => \@stops,
@@ -140,6 +140,9 @@ sub new {
			$ref->{destination} = $ref->{route_end};
		}
	}
	else {
		$ref->{route_start} = $stops[0]{name};
	}

	bless( $ref, $obj );