From 6a1bf5e3b132a8ffdd6b419b94808b3bfad0fa87 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 18 Jun 2025 21:35:55 +0200 Subject: Trip details: The endpoint has a time parameter. Using it is a good idea. This fixes trip detail requests occasionally returning data for yesterday, and should also fix trip detail requests failing entirely. Note that this breaks compatibility with trip IDs obtained from earlier efa-m versions. --- bin/efa-m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/efa-m b/bin/efa-m index 3e84e6a..5f69844 100755 --- a/bin/efa-m +++ b/bin/efa-m @@ -99,12 +99,15 @@ if ($use_cache) { my ( $place, $input, $coord, $stopseq, $stopfinder ); if ( @ARGV == 1 ) { - if ( $ARGV[0] =~ m{ ^ ([^@]*) @ ([^@]*) [(] ([^)]*) [)] (.*) $ }x ) { + if ( $ARGV[0] + =~ m{ ^ ([^@]*) @ ([^@]*) [(] ([^T]*) T ([^)]*) [)] (.*) $ }x ) + { $stopseq = { stateless => $1, stop_id => $2, date => $3, - key => $4 + time => $4, + key => $5 }; } elsif ( $ARGV[0] =~ m{ ^ [?] (? .*) $ }x ) { -- cgit v1.2.3