diff options
author | stuebinm | 2022-12-03 12:21:35 +0100 |
---|---|---|
committer | stuebinm | 2022-12-03 12:21:35 +0100 |
commit | a9a13ca492ab3b8f8357cbe8fdec8a4052da913e (patch) | |
tree | feb059c7c89a80d53efd135d71e3c70c90c60e8f /lib | |
parent | 2cc78ad6afd731923229f590549ed0619c5f60e9 (diff) |
set uncertainty in gtfs-rt
Diffstat (limited to '')
-rw-r--r-- | lib/Server/GTFS_RT.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Server/GTFS_RT.hs b/lib/Server/GTFS_RT.hs index f317f7c..20e6fa7 100644 --- a/lib/Server/GTFS_RT.hs +++ b/lib/Server/GTFS_RT.hs @@ -171,9 +171,9 @@ gtfsRealtimeServer gtfs@GTFS{..} dbpool = handleServiceAlerts :<|> handleTripUpd { STU.stop_sequence = Just (fromIntegral stopSequence) , STU.stop_id = Just (toUtf8 $ stationId stopStation) , STU.arrival = Just ( - defaultValue { STE.delay = Just $ fromIntegral $ unSeconds $ trainAnchorDelay }) + defaultValue { STE.delay = Just $ fromIntegral $ unSeconds $ trainAnchorDelay, STE.uncertainty = Just 60 }) , STU.departure = Just ( - defaultValue { STE.delay = Just $ fromIntegral $ unSeconds $ trainAnchorDelay }) + defaultValue { STE.delay = Just $ fromIntegral $ unSeconds $ trainAnchorDelay, STE.uncertainty = Just 60 }) , STU.departure_occupancy_status = Nothing , STU.schedule_relationship = Just SR.SCHEDULED , STU.stop_time_properties = Nothing |