diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-07-08 21:05:21 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-07-08 21:05:21 +0200 |
commit | 07ab3f4e9b010a241e9e6091c2b5478e19f752d9 (patch) | |
tree | 5ac3a8ef590fb647b56d6e846c25cb9205897036 /lib/Travelynx/Helper | |
parent | 9e4a6e5ce61a611d711ecb3fcb4d37fe45cf8bbe (diff) |
store lat/lon along with route2.7.8
This increases resilience against EVA ID reuse
Diffstat (limited to 'lib/Travelynx/Helper')
-rw-r--r-- | lib/Travelynx/Helper/HAFAS.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm index 538c8ea..2095fb7 100644 --- a/lib/Travelynx/Helper/HAFAS.pm +++ b/lib/Travelynx/Helper/HAFAS.pm @@ -233,7 +233,9 @@ sub get_route_p { rt_dep => _epoch( $stop->rt_dep ), arr_delay => $stop->arr_delay, dep_delay => $stop->dep_delay, - load => $stop->load + load => $stop->load, + lat => $stop->loc->lat, + lon => $stop->loc->lon, }; if ( $stop->tz_offset ) { $entry->{tz_offset} = $stop->tz_offset; |