TheTransitClock / transitime

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

Remove timed out vehicles from VehicleDataCache (configurable) #139

Closed nselikoff closed 5 years ago

nselikoff commented 5 years ago

Add a configuration option (transitclock.timeout.removeTimedOutVehiclesFromVehicleDataCache) and supporting methods to the TimeoutHandlerModule that allows timed out vehicles to be removed from the VehicleDataCache.

Retains existing behavior by default (timed out vehicles will still appear in the map views in the webapp and in feeds like the GTFS Realtime Vehicle Positions feed).

Set transitclock.timeout.removeTimedOutVehiclesFromVehicleDataCache to true to remove timed out vehicles from the cache, so they won't show up in the GTFS Realtime feeds or on the map.