summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-10-18 19:30:45 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-10-18 19:30:45 +0200
commit07092047dda2e1bd4ed7e9f6aaa50d9e222a0f0c (patch)
tree9485c05d330d56b6ecb82adae4b3bd37c5af9d50 /lib
parent0ebb16bb9220d22bedc7151720e77d2b5097fe5a (diff)
stations_by_coordinates: fix efa
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 653c914..6204591 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -2296,10 +2296,10 @@ sub handle_result {
sub stations_by_coordinates {
my $self = shift;
- my $lon = $self->param('lon');
- my $lat = $self->param('lat');
- my $efa = $self->param('efa');
- my $hafas = $self->param('hafas');
+ my $lon = $self->param('lon');
+ my $lat = $self->param('lat');
+ my $efa_service = $self->param('efa');
+ my $hafas = $self->param('hafas');
if ( not $lon or not $lat ) {
$self->render( json => { error => 'Invalid lon/lat received' } );
@@ -2316,11 +2316,11 @@ sub stations_by_coordinates {
$self->render_later;
- if ($efa) {
+ if ($efa_service) {
Travel::Status::DE::EFA->new_p(
promise => 'Mojo::Promise',
user_agent => $self->ua,
- service => $efa,
+ service => $efa_service,
coord => {
lat => $lat,
lon => $lon
@@ -2333,7 +2333,7 @@ sub stations_by_coordinates {
name => $_->full_name,
eva => $_->id,
distance => $_->distance_m / 1000,
- efa => $efa,
+ efa => $efa_service,
}
} $efa->results;
$self->render(