aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2022-12-03 20:45:28 +0100
committerstuebinm2022-12-03 20:45:28 +0100
commitd2dd305fca568c149b2ced71bc9a6b7bec7cfd1e (patch)
treed805acdbc039654bac1d7ee1e228ad8816e64e42
parente84f2967a3252f474d9618fb19df6f571c3bc762 (diff)
gtfs-rt: set trip_descriptor.schedule_relationship
(hardcoded for now, since we don't have new trips)
-rw-r--r--lib/Server/GTFS_RT.hs3
1 files changed, 2 insertions, 1 deletions
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
}