From fffe8dcdfa0f5110b0b279e6d9989fbcea853cad Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 11 Oct 2020 11:34:39 +0200 Subject: [PATCH] Switch to transport.rest v5 for polyline requests --- lib/Travelynx/Helper/HAFAS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm index b763960..fbca740 100644 --- a/lib/Travelynx/Helper/HAFAS.pm +++ b/lib/Travelynx/Helper/HAFAS.pm @@ -28,7 +28,7 @@ sub get_polyline_p { my $line = $train->line // 0; my $url - = "https://2.db.transport.rest/trips/${trip_id}?lineName=${line}&polyline=true"; + = "https://v5.db.transport.rest/trips/${trip_id}?lineName=${line}&polyline=true"; my $cache = $self->{main_cache}; my $promise = Mojo::Promise->new; my $version = $self->{version};