Skip to content

Commit

Permalink
API: Add departure and arrival platform
Browse files Browse the repository at this point in the history
Closes #164
  • Loading branch information
derf committed Sep 18, 2024
1 parent 02555f5 commit fbc21f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Travelynx.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions templates/api_documentation.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -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/>
Expand All @@ -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/>
Expand Down

0 comments on commit fbc21f4

Please sign in to comment.