summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-16 22:29:56 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-16 22:29:56 +0200
commitda949651df5e187248067b1c58a778506083a502 (patch)
tree9c7dc8a9710544ce4a64c6c1a06bda80e4cba762
parent4239add446bf42fa5503a321943bb29ceee93920 (diff)
journey: parse lon/lat
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm
index c14a53e..006edd9 100644
--- a/lib/Travel/Status/DE/HAFAS/Journey.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -102,6 +102,8 @@ sub new {
{
name => $loc->{name},
eva => $loc->{extId} + 0,
+ lon => $loc->{crd}{x} * 1e-6,
+ lat => $loc->{crd}{y} * 1e-6,
sched_arr => $sched_arr,
rt_arr => $rt_arr,
sched_dep => $sched_dep,