@maschinenlesbar.org/autobahn-cli
    Preparing search index...

    Interface RoadCheck

    The answer of checkRoad.

    interface RoadCheck {
        blocking: CheckedItem[];
        counts: {
            closures: number;
            planned: number;
            rampClosures: number;
            roadworks: number;
            warnings: number;
        };
        hazards: CheckedItem[];
        notes: string[];
        roadId: string;
        worstDelays: CheckedItem[];
    }
    Index
    blocking: CheckedItem[]

    Not planned, and the road is shut or blocked: every carriageway closure (CLOSURE, whatever words its description uses: real ones name the cause, "Ersatzneubau …", or say "Sperrung"), an item the API marks isBlocked, and a roadworks item whose description says the road is shut (Vollsperrung, the carriageway closed; not a lane, a car park or a rest area). Its window may still lie ahead (a long roadworks phase often names a closure on later days): the description says when.

    counts: {
        closures: number;
        planned: number;
        rampClosures: number;
        roadworks: number;
        warnings: number;
    }

    Type Declaration

    • closures: number

      Carriageway closures (CLOSURE), from the closures and the warnings listings, each once.

    • planned: number

      Items the API marks as planned (future: true).

    • rampClosures: number

      Closures of a junction's on- or off-ramp only (CLOSURE_ENTRY_EXIT): not the road.

    • roadworks: number
    • warnings: number
    hazards: CheckedItem[]

    Warnings about an accident, a wrong-way driver or a hazard, whatever their delay.

    notes: string[]

    What the data can't say, for the reader.

    roadId: string
    worstDelays: CheckedItem[]

    The other warnings with a delay, the longest first (at most 5).