Switch to transport.rest v5 for polyline requests

This commit is contained in:
Daniel Friesel 2020-10-11 11:34:39 +02:00
parent 4575beb6ff
commit fffe8dcdfa

View file

@ -28,7 +28,7 @@ sub get_polyline_p {
my $line = $train->line // 0; my $line = $train->line // 0;
my $url 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 $cache = $self->{main_cache};
my $promise = Mojo::Promise->new; my $promise = Mojo::Promise->new;
my $version = $self->{version}; my $version = $self->{version};