Microproduct Data GuideBeginner

NDW Road Events and Closures

Dutch compressed road-closure and safety-message records for building a dated traffic-disruption map.

Report a Problem

At a Glance

Difficulty
Beginner — comfortable for a first prototype
Size
Tiny · ≤0.005 GB
Formats
XML
Access
Download
API Key
Not Required
Provider
Nationaal Dataportaal Wegverkeer
Updates
Near Real Time
Last Verified
Sep 28, 2026
Source Type
Government Source
  • Python Syntax Checked
  • Runnable Notebook

From Source to Product Signal

Test a Product Idea in Four Steps

The official NDW index publishes separate closure and safety-message DATEX files. Start with two Dutch closure records; a listed restriction is not a complete route planner or safety instruction.

1

Check the Setup

  • Python 3.10 or newer
  • An internet connection
  • The requests Python package
2

Access the Data

  1. 1.Read the official data documentation and reuse terms.
  2. 2.Fetch the small official feed and inspect two records.
  3. 3.Preserve source timestamps and locations before mapping results.
Open Official Source
3

Run the Python Example

Install the packages, then run the notebook cell.

python -m pip install requests

import gzip
import io
import itertools
import requests
from xml.etree import ElementTree as ET

url = "https://opendata.ndw.nu/tijdelijke_verkeersmaatregelen_afsluitingen.xml.gz"
response = requests.get(url, timeout=20)
response.raise_for_status()
assert len(response.content) < 1_000_000
xml = gzip.decompress(response.content)
assert len(xml) < 5_000_000
records = (element for _, element in ET.iterparse(io.BytesIO(xml), events=("end",))
           if element.tag.endswith("}situationRecord"))
for record in itertools.islice(records, 2):
    print(record.get("id"), record.get("version"))
4

Inspect Dated Local Conditions

Inspect two Dutch closure records with source timestamps.

  1. 01Fetch the official source and retain its update time.
  2. 02Show two records with their station or notice identifiers.
  3. 03Explain why these records are context rather than complete hazard coverage.

Dataset Details

Nationaal Dataportaal Wegverkeer is a government source. Last verified 2026-09-28. Temporal coverage: current observations or notices.

Geography

Formats

Provider

Nationaal Dataportaal Wegverkeer

Data Terms

NDW open-data content is CC0 unless a specific file states otherwise.

Send Feedback