Unverified Commit 3851f055 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

get_travel_distance: warn about removed stations (TODO: re-add them)

parent 4b4c9759
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -957,6 +957,16 @@ sub get_travel_distance {
	my $route_ref    = $journey->{route};
	my $polyline_ref = $journey->{polyline};

	if ( not $to ) {
		$self->{log}
		  ->warn("Journey $journey->{id} has no to_name for EVA $to_eva");
	}

	if ( not $from ) {
		$self->{log}
		  ->warn("Journey $journey->{id} has no from_name for EVA $from_eva");
	}

	my $distance_polyline     = 0;
	my $distance_intermediate = 0;
	my $distance_beeline      = 0;