HSLdevcom / transitdata

transitdata publishes GTFS Realtime interfaces
European Union Public License 1.2
10 stars 3 forks source link

Filter delayed vehicles from GTFS-RT VP feed #258

Closed mjaakko closed 1 year ago

mjaakko commented 1 year ago

Vehicles that are significantly delayed should be filtered by hsldevcom/transitdata-vehicleposition-processor so that they don't get published in GTFS-RT feeds. Vehicles that are significantly delayed (HFP dl field) are used for practicing etc i.e. they cannot be boarded by passengers and thus they should be filtered from passenger information.

This should be done by adding a configuration option to vehicleposition-processor for maximum allowed delay and filtering vehicle positions based on that. Default value for maximum delay could be 3 hours

mjaakko commented 1 year ago

dl field might be unreliable, other option would be using combination of oday + start and comparing it to the current time

LofhJann commented 1 year ago

Deployed to dev for testing