summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller/Map.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-01-04 23:33:11 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-01-04 23:33:11 +0100
commit8053eb8835a0fec2171d153a4a99db72156c34aa (patch)
treeb3194ce32f4689d8e63fccde4a2ae676d393dc5b /lib/DBInfoscreen/Controller/Map.pm
parent45f4e39216d05217de9341bd991860d1cc95a3d5 (diff)
Use correct Trip ID request for arrival-only trains2.5.1
Diffstat (limited to 'lib/DBInfoscreen/Controller/Map.pm')
-rw-r--r--lib/DBInfoscreen/Controller/Map.pm4
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;
}