0.1.5 Recorded call :) now to json

This commit is contained in:
Peder Vatn Austad
2024-05-20 19:31:31 +02:00
parent 7ef3118545
commit 28d9652352

23
main.go
View File

@@ -305,8 +305,31 @@ func printData(data *Data) {
for _, call := range recordedCall.RecordedCall { for _, call := range recordedCall.RecordedCall {
if call.StopPointRef != "" { if call.StopPointRef != "" {
fmt.Println("RecordedCall StopPointRef:", call.StopPointRef) fmt.Println("RecordedCall StopPointRef:", call.StopPointRef)
}
if call.Order != "" {
fmt.Println("RecordedCall Order:", call.Order) fmt.Println("RecordedCall Order:", call.Order)
} }
if call.Cancellation != "" {
fmt.Println("RecordedCall Cancellation:", call.Cancellation)
}
if call.AimedDepartureTime != "" {
fmt.Println("RecordedCall AimedDepartureTime:", call.AimedDepartureTime)
}
if call.ActualDepartureTime != "" {
fmt.Println("RecordedCall ActualDepartureTime:", call.ActualDepartureTime)
}
if call.AimedArrivalTime != "" {
fmt.Println("RecordedCall AimedArrivalTime:", call.AimedArrivalTime)
}
if call.ActualArrivalTime != "" {
fmt.Println("RecordedCall ActualArrivalTime:", call.ActualArrivalTime)
}
if call.ExpectedArrivalTime != "" {
fmt.Println("RecordedCall ExpectedArrivalTime:", call.ExpectedArrivalTime)
}
if call.ExpectedDepartureTime != "" {
fmt.Println("RecordedCall ExpectedDepartureTime:", call.ExpectedDepartureTime)
}
} }
} }
for _, estimatedCall := range journey.EstimatedCalls { for _, estimatedCall := range journey.EstimatedCalls {