API: Add departure and arrival platform

Closes #164
This commit is contained in:
Birte Kristina Friesel 2024-09-18 19:01:18 +02:00
parent 02555f5c2f
commit fbc21f45c8
No known key found for this signature in database
GPG key ID: B63118F7196EA660
2 changed files with 4 additions and 0 deletions

View file

@ -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,

View file

@ -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/>