summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-09-18 19:01:18 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-09-18 19:01:31 +0200
commitfbc21f45c86704eda8de21ad62b63e935d702d93 (patch)
tree4ae4c86fc0d690b071dbf2955eb8b0221257c8c1
parent02555f5c2f4614c554e28d90955fb389170b1ed3 (diff)
API: Add departure and arrival platform2.8.39
Closes #164
-rwxr-xr-xlib/Travelynx.pm2
-rw-r--r--templates/api_documentation.html.ep2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 846e865..f8ace80 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -1902,6 +1902,7 @@ sub startup {
uic => $status->{dep_eva},
longitude => $status->{dep_lon},
latitude => $status->{dep_lat},
+ platform => $status->{dep_platform},
scheduledTime => $status->{sched_departure}
? $status->{sched_departure}->epoch
: undef,
@@ -1915,6 +1916,7 @@ sub startup {
uic => $status->{arr_eva},
longitude => $status->{arr_lon},
latitude => $status->{arr_lat},
+ platform => $status->{arr_platform},
scheduledTime => $status->{sched_arrival}
? $status->{sched_arrival}->epoch
: undef,
diff --git a/templates/api_documentation.html.ep b/templates/api_documentation.html.ep
index d8fc66f..4453286 100644
--- a/templates/api_documentation.html.ep
+++ b/templates/api_documentation.html.ep
@@ -41,6 +41,7 @@
"uic" : 8000098,<br/>
"latitude" : 51.451355,<br/>
"longitude" : 7.014793,<br/>
+ "platform" : "12", (ggf. null)<br/>
"scheduledTime": 1556083680,<br/>
"realTime": 1556083680<br/>
},<br/>
@@ -50,6 +51,7 @@
"uic" : 8001896,<br/>
"latitude" : 51.422853,<br/>
"longitude" : 7.023296,<br/>
+ "platform" : "2", (ggf. null)<br/>
"scheduledTime": 1556083980, (ggf. null)<br/>
"realTime": 1556083980 (ggf. null)<br/>
},<br/>