summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r--lib/DBInfoscreen/Helper/HAFAS.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm
index 8c11412..a421c38 100644
--- a/lib/DBInfoscreen/Helper/HAFAS.pm
+++ b/lib/DBInfoscreen/Helper/HAFAS.pm
@@ -379,8 +379,8 @@ sub get_route_timestamps_p {
sub get_polyline_p {
my ( $self, $trip_id, $line ) = @_;
- my $url
- = "https://v5.db.transport.rest/trips/${trip_id}?lineName=${line}&polyline=true";
+ my $api = $self->{api};
+ my $url = "${api}/trips/${trip_id}?lineName=${line}&polyline=true";
my $cache = $self->{realtime_cache};
my $promise = Mojo::Promise->new;