I built an Azure Data Factory workflow that downloads the VBB timetable and a Berlin weather forecast, stores the original files in Azure Data Lake Storage Gen2, and extracts the timetable for analysis. A local Python notebook turns the timetable into an hourly departure chart.

View the MetroPulse Berlin repository

From public feeds to staged files

Project architecture from the VBB and Open-Meteo feeds through ADF and Azure storage to the local Python chart

VBB publishes the timetable as a ZIP archive. Open-Meteo provides the forecast as JSON. I stored the endpoints and destination paths in a CSV configuration file, then used ADF Lookup and ForEach activities to pass each source to the same ingestion pipeline.

The parent pipeline passes the ingestion date and run ID to both ingestion and extraction. Extraction starts after ingestion succeeds and reads the archive from that specific run. It writes the individual timetable files to staging and keeps the source ZIP in raw.

After extraction succeeds, an ADF Mapping Data Flow checks the staged stops.txt. It writes records with a populated stop ID to an accepted CSV and sends records with a missing or blank ID to quarantine with a rejection reason.

The three successful steps in the MetroPulse parent pipeline

See the five pipelines and the validation flow.

A Saturday at Berlin Hauptbahnhof

A bar chart of scheduled boarding departures by hour, with the busiest hours around late morning through evening

The notebook counted 2,096 scheduled boarding departures for the 28 November 2026 service day. It applied calendar exceptions, selected child stops and platforms under Berlin Hauptbahnhof, and kept after-midnight departures with the Saturday service day where the timetable specifies them. The chart shows planned service. The weather data remains available in raw storage for separate analysis.

Failure, recovery, and alerting

I completed a recovery drill that isolated each run’s outputs, triggered a missing-file failure, and reran validation after uploading the fixture. The drill also tested Azure Monitor email notifications for pipeline failures. See the recovery test steps.

Data sources: VBB GTFS datasets and Open-Meteo forecast API.