lib/ratis/timetable.rb in ratis-2.5.2.6 vs lib/ratis/timetable.rb in ratis-2.5.2.7
- old
+ new
@@ -29,10 +29,10 @@
timetable.service_type = headway[:servicetype]
timetable.operator = headway[:operator]
timetable.effective = headway[:effective]
timepoints_array = []
- headway[:timepoints][:stop].each_with_index{|tp, i| timepoints_array.push(Timetable::Stop.new(i, tp[:stopid], tp[:description], tp[:area]) )} rescue []
+ headway[:timepoints][:stop].each_with_index{|tp, i| timepoints_array.push(Timetable::Stop.new(i, tp[:atisstopid], tp[:stopid], tp[:description], tp[:area]) )} rescue []
timetable.timepoints = timepoints_array
trips_array = []
headway[:times][:trip].each_with_index{|t,i| trips_array.push(Timetable::Trip.new(i, t[:time], t[:comment]))} rescue []
timetable.trips = trips_array