bliksemlabs / rrrr

RRRR rapid real-time routing
BSD 2-Clause "Simplified" License
164 stars 32 forks source link

Direction_id is exported in GTFSdb.py instead of route_type #195

Closed skinkie closed 8 years ago

skinkie commented 9 years ago

https://github.com/bliksemlabs/rrrr/blob/tdata4/rrtimetable/rrtimetable/gtfsdb.py#L360

Shows that direction_id is exported as third argument. While it is suggested later that the third return value is route_type.

https://github.com/bliksemlabs/rrrr/blob/tdata4/rrtimetable/rrtimetable/gtfs2rrrr.py#L94

Is there any rationale to use the direction_id here? If it is an artifact, the only occurance of gtfsdb.routes() requests route_type, which fails now and results into a timetable full of tram and subway.

skinkie commented 8 years ago

(don't commit anything plz)