Issue 360 in googletransitdatafeed: Preserver the routes order from routes.txt

8 views
Skip to first unread message

googletran...@googlecode.com

unread,
Mar 2, 2013, 10:37:32 AM3/2/13
to googletran...@googlegroups.com
Status: New
Owner: ----

New issue 360 by powc...@gmail.com: Preserver the routes order from
routes.txt
http://code.google.com/p/googletransitdatafeed/issues/detail?id=360

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

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages