What steps will reproduce the problem? 1. loader = transitfeed.Loader(path, memory_db=False)
self.schedule = loader.Load()
self.schedule.GetRouteList() # list by definition has a certain order of elements What is the expected output? What do you see instead? The result of Schedule.GetRouteList() is a list of routes in random order. It would be nice, if this routine returned the routes in the order defined by the GTFS publisher. What version of the product are you using? On what operating system? transitfeed-1.2.12 Please provide any additional information below. Schedule.routes is a regular dictionary. A possible solution would be, to change it to collections.OrderedDict
From powc...@gmail.com on March 02, 2013 07:37:23
What steps will reproduce the problem? 1. loader = transitfeed.Loader(path, memory_db=False)
Original issue: http://code.google.com/p/googletransitdatafeed/issues/detail?id=360