Norway Open Data SDK
    Preparing search index...

    Type Alias HazardWarning

    A normalized warning from NVE's Varsom forecast APIs.

    type HazardWarning = {
        coordinates?: { latitude?: number; longitude?: number };
        counties?: { code?: string; name: string }[];
        description?: string;
        forecastRegion?: { id?: string; name?: string };
        id?: string;
        level?: string;
        municipalities?: { code?: string; name: string }[];
        regions?: string[];
        title?: string;
        type: "flood" | "avalanche" | "landslide" | "other";
        validFrom?: string;
        validTo?: string;
    }
    Index
    coordinates?: { latitude?: number; longitude?: number }
    counties?: { code?: string; name: string }[]

    Counties attached by NVE; these can be parent context when municipalities are present.

    description?: string
    forecastRegion?: { id?: string; name?: string }

    The provider's forecast region. Context only; not an administrative-area match.

    id?: string
    level?: string
    municipalities?: { code?: string; name: string }[]

    Official municipalities explicitly attached to the warning by NVE.

    regions?: string[]

    Flattened forecast-region and administrative-area names.

    Retained for backwards compatibility. Use counties and municipalities when deciding whether a warning applies to an administrative area.

    title?: string
    type: "flood" | "avalanche" | "landslide" | "other"
    validFrom?: string
    validTo?: string