gtfs-sqljs
    Preparing search index...

    Interface ResolveRealtimeOptions

    interface ResolveRealtimeOptions {
        displayMode?: "departure" | "arrival";
        now?: number;
        serviceDate: string;
        stalenessThreshold?: number;
        timezone: string;
    }
    Index

    Properties

    displayMode?: "departure" | "arrival"

    Which event display_epoch prefers. 'departure' (default): departure everywhere, arrival at the last stop. 'arrival': arrival everywhere, departure at the first stop.

    now?: number

    Reference "current time" in unix seconds for staleness checks. Defaults to the system clock.

    serviceDate: string

    Service date of the trip in YYYYMMDD format.

    stalenessThreshold?: number

    When set, updates whose rt_last_updated is older than now minus this many seconds are ignored. Updates without rt_last_updated are always kept.

    timezone: string

    IANA timezone of the agency (stop_times.txt is always in agency time).