tonny2v / googletransitdatafeed

Automatically exported from code.google.com/p/googletransitdatafeed
0 stars 0 forks source link

Preserver the routes order from routes.txt #360

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. loader = transitfeed.Loader(path, memory_db=False)
2. self.schedule = loader.Load()
3. 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

Original issue reported on code.google.com by powc...@gmail.com on 2 Mar 2013 at 3:37

GoogleCodeExporter commented 8 years ago

Original comment by bdfer...@google.com on 26 Sep 2014 at 4:51

GoogleCodeExporter commented 8 years ago
Moved to https://github.com/google/transitfeed/issues/360

Original comment by bdfer...@google.com on 7 Oct 2014 at 7:42