diff options
Diffstat (limited to 'lib/DBInfoscreen/Controller/Map.pm')
-rw-r--r-- | lib/DBInfoscreen/Controller/Map.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Controller/Map.pm b/lib/DBInfoscreen/Controller/Map.pm index df749bf..81c3b20 100644 --- a/lib/DBInfoscreen/Controller/Map.pm +++ b/lib/DBInfoscreen/Controller/Map.pm @@ -21,8 +21,8 @@ sub get_hafas_polyline { #say $url; my $res = $ua->get( -"https://2.db.transport.rest/trips/${trip_id}?lineName=${line}&polyline=true" - => { 'User-Agent' => "dbf.finalrewind.org/${dbf_version}" } )->result; + $url => { 'User-Agent' => "dbf.finalrewind.org/${dbf_version}" } ) + ->result; if ( $res->is_error ) { return; } |