summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Model
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-07-08 21:05:21 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-07-08 21:05:21 +0200
commit07ab3f4e9b010a241e9e6091c2b5478e19f752d9 (patch)
tree5ac3a8ef590fb647b56d6e846c25cb9205897036 /lib/Travelynx/Model
parent9e4a6e5ce61a611d711ecb3fcb4d37fe45cf8bbe (diff)
store lat/lon along with route2.7.8
This increases resilience against EVA ID reuse
Diffstat (limited to 'lib/Travelynx/Model')
-rw-r--r--lib/Travelynx/Model/InTransit.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Travelynx/Model/InTransit.pm b/lib/Travelynx/Model/InTransit.pm
index 6bafd93..f5a1f6d 100644
--- a/lib/Travelynx/Model/InTransit.pm
+++ b/lib/Travelynx/Model/InTransit.pm
@@ -160,7 +160,9 @@ sub add {
rt_dep => _epoch( $j_stop->rt_dep ),
arr_delay => $j_stop->arr_delay,
dep_delay => $j_stop->dep_delay,
- load => $j_stop->load
+ load => $j_stop->load,
+ lat => $j_stop->loc->lat,
+ lon => $j_stop->loc->lon,
}
]
);
@@ -832,7 +834,9 @@ sub update_arrival_hafas {
rt_dep => _epoch( $j_stop->rt_dep ),
arr_delay => $j_stop->arr_delay,
dep_delay => $j_stop->dep_delay,
- load => $j_stop->load
+ load => $j_stop->load,
+ lat => $j_stop->loc->lat,
+ lon => $j_stop->loc->lon,
}
]
);