diff --git a/src/utils/translators/ldb/staffStation.ts b/src/utils/translators/ldb/staffStation.ts index 39db26d..3e3b5df 100644 --- a/src/utils/translators/ldb/staffStation.ts +++ b/src/utils/translators/ldb/staffStation.ts @@ -68,6 +68,7 @@ function transformTrainServices(input: any): TrainServices[] { serviceIsSupressed: service?.serviceIsSupressed, origin: transformLocation(service?.origin), destination: transformLocation(service?.destination), + length: calculateLength(service), isCancelled: service?.isCancelled, cancelReason: service?.cancelReason, delayReason: service?.delayReason, @@ -103,6 +104,11 @@ function transformLocation(input: any): ServiceLocation[] { return output } +function calculateLength(input: TrainServices): number | undefined { + console.log(input); + return undefined +} + function transformUnspecifiedDateTime(input: string): Date | undefined { console.debug(`staffStation.transformUnspecifiedDateTime running`) if (!input) {