/* Returns the other direction of a given line, depending on whether the line is outbound only (circular) */ func getReverseBound(line, bound string) string { isOutboundOnly := selectdb.SelectIsOutboundOnly(line) if !isOutboundOnly && bound == "outbound" { return "inbound" } return "outbound" }
func UpdateTimetable(line string) { updateTimetable(line, "outbound") // Skip for outbound only routes (i.e. circular routes) if !selectdb.SelectIsOutboundOnly(line) { updateTimetable(line, "inbound") } }