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

This commit is contained in:
Daniel Friesel 2022-11-24 21:26:45 +01:00
parent 4b4c975978
commit 3851f05518
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -957,6 +957,16 @@ sub get_travel_distance {
my $route_ref = $journey->{route}; my $route_ref = $journey->{route};
my $polyline_ref = $journey->{polyline}; 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_polyline = 0;
my $distance_intermediate = 0; my $distance_intermediate = 0;
my $distance_beeline = 0; my $distance_beeline = 0;