Add Platform, Pass, Arrline, and depline to stopDetail

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2024-04-17 13:17:25 +01:00
parent 1f0a39adc6
commit f02ae3c7cd
2 changed files with 1064 additions and 1048 deletions

2096
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -74,6 +74,22 @@ function formatStopTimes(stop: Stop): OB_TrainTT_stopDetail {
if (stop.wttDeparture) { if (stop.wttDeparture) {
formattedStop.wttDeparture = stop.wttDeparture; formattedStop.wttDeparture = stop.wttDeparture;
} }
if (stop.platform) {
formattedStop.platform = stop.platform;
}
if (stop.pass) {
formattedStop.pass = stop.pass;
}
if (stop.arrLine) {
formattedStop.arrLine = stop.arrLine;
}
if (stop.depLine) {
formattedStop.depLine = stop.depLine;
}
return formattedStop; return formattedStop;
} }