timetable-extension #1
@ -30,6 +30,11 @@ func convertCifType(in *upstreamApi.VSTPSchedule) (error, *upstreamApi.JsonSched
|
||||
log.Warn("More than one element in schedule segment")
|
||||
}
|
||||
out.ScheduleSegment = convertSchedule(&in.ScheduleSegment[0])
|
||||
if trim(in.ScheduleSegment[0].AtocCode) != "" {
|
||||
out.AtocCode = in.ScheduleSegment[0].AtocCode
|
||||
} else {
|
||||
out.AtocCode = "UK"
|
||||
}
|
||||
return nil, out
|
||||
} else {
|
||||
log.Warn("VSTP Schedule Segment empty")
|
||||
|
Loading…
Reference in New Issue
Block a user