From d2dd305fca568c149b2ced71bc9a6b7bec7cfd1e Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sat, 3 Dec 2022 20:45:28 +0100 Subject: gtfs-rt: set trip_descriptor.schedule_relationship (hardcoded for now, since we don't have new trips) --- lib/Server/GTFS_RT.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Server/GTFS_RT.hs b/lib/Server/GTFS_RT.hs index 9da9be9..d1e4f93 100644 --- a/lib/Server/GTFS_RT.hs +++ b/lib/Server/GTFS_RT.hs @@ -66,6 +66,7 @@ import GTFS.Realtime.TripUpdate as import GTFS.Realtime.TripUpdate.StopTimeEvent as STE (StopTimeEvent (..)) import GTFS.Realtime.TripUpdate.StopTimeUpdate as STU (StopTimeUpdate (..)) import qualified GTFS.Realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship as SR +import qualified GTFS.Realtime.TripDescriptor.ScheduleRelationship as TSR import GTFS.Realtime.VehicleDescriptor as VD (VehicleDescriptor (..)) import GTFS.Realtime.VehiclePosition as VP (VehiclePosition (..)) import Persist (Announcement (..), @@ -278,6 +279,6 @@ dTripDescriptor tripID day starttime = TripDescriptor , direction_id = Nothing , start_time = starttime , start_date = fmap toStupidDate day - , schedule_relationship = Nothing + , schedule_relationship = Just TSR.SCHEDULED , TD.ext'field = defaultValue } -- cgit v1.2.3