TheTransitClock / transitime

TheTransitClock real-time transit information system
GNU General Public License v3.0
78 stars 29 forks source link

ScheduleAdherence for stops with different arrival/departure times #266

Open wkulesza opened 1 year ago

wkulesza commented 1 year ago

SchAdh value is calculated as a simple value indicating late/early/on-time based on the stop time. We have noticed, that if there's a stop with dwell time (departure time is different than arrival time), when bus arrives on time, SchAdh would show early instead of on-time or dwell, with decreasing value of early as the time passes until the scheduled departure - then SchAdh will show finally on-time. Is there a setting for TC, where departure time could be used rather than arrival time to calculate that value for stops with dwell time?

changtung commented 1 year ago

Screenshots from api in this case and drop from database yesterday and today in this stop. Screenshot from 2023-04-18 14-37-29 scr5 scr4 scr3 scr2 scr1

Bus has arrival time and in same time transitclock registers it as departure ( so there are 2 entries for stop SD02-1

changtung commented 1 year ago

times There are also no entries for timepointstop and waitstop in Stops database for this stop. Also there are no arrival times for this stop despite the fact that was generated for gtfs in Datatools.

wkulesza commented 1 year ago

We have also noticed that for this stop TC doesn't provide atStop=true value even though bus is at this stop. Another bus that stands at this stop provides atStop=true and only difference is that that stop is last or first stop on this trip. In our case it's a stop on the way.

changtung commented 1 year ago

Screenshot from 2023-04-24 13-17-11 When we changed afterStop and beforeStop to 150 then it looks like there is couple minutes difference between arrival and departure.