gtfs-sqljs
    Preparing search index...

    Function resolveRealtime

    • Merge scheduled stop times of a single trip with its GTFS-RT data into fully resolved, display-ready stop times.

      Extra properties on the input stop times (e.g. a joined stop_name) are preserved on the output objects.

      Type Parameters

      Parameters

      • stopTimes: T[]

        Stop times of one trip (any order; sorted by stop_sequence internally)

      • stopTimeUpdates: StopTimeUpdate[]

        GTFS-RT stop time updates for the same trip (empty array if none)

      • tripUpdate: Pick<TripUpdate, "delay" | "schedule_relationship"> | null | undefined

        Trip-level update for delay fallback and cancellation, if any

      • options: ResolveRealtimeOptions

        Service date, timezone and display options

      Returns (T & ResolvedStopTimeFields)[]