def init_routes_from_file(self, path="gtfs"): path += "/routes.txt" issue = Other.read_csv(path, self.add_route) if issue: print("The file routes.txt was not found") print(str(self.count) + " routes were imported") self.count = 0
def init_stops_from_file(self, path="gtfs"): path += "/stops.txt" issue = Other.read_csv(path, self.add_stop) if issue: print("No stop.txt file") print(str(self.count) + " stops have been imported from the file") self.count = 0
def init_stop_times(self, path="gtfs"): path += "/stop_times.txt" Other.read_csv(path, self.add_stop_time)
def init_trips_from_file(self, path="gtfs"): path += "/trips.txt" Other.read_csv(path, self.add_trip)
def init_from_file(self, path="gtfs"): path += "/agency.txt" issue = Other.read_csv(path, self.init_from_line) if issue: print("No file found, please answer the following questions: ") self.init_from_line(["", "", "", "", "", "", "", "", "", ""])