Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Mit Google anmelden, um Bewertungen zu schreiben.Prototyp · alle 30 Min. aktualisiert
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

Lombardia Trains

von DenisRaimondiVersion 0.1.1i★ 0iLäuft auf deinem ComputerRepository ↗
Name in der Registryio.github.DenisRaimondi/lombardia-trains

So installierst du es

What it does

Live Lombardy train boards, delays, platforms, and journey planning. No API key.

  • Connects Läuft auf deinem Computer
  • Account or key No key needed
  • Category Sonstiges

Warum es hier steht

Listen sind nach einem Nutzungswert (von 100) aus diesen Teilen sortiert

Beliebtheit0/80GitHub-Sterne oder wöchentliche Downloads: der größere Wert zählt 60, der kleinere 20
Aktualität7/12Volle Punkte für Release oder Codeänderung in 30 Tagen
Antwortet noch0/8Der Cloud-Endpoint antwortete bei der letzten Prüfung
Nutzungswert7/100

Qualität: 3/3 Basisprüfungen bestanden (angezeigt, nicht zur Sortierung) · Schwung: Noch keine Daten (Nur im Tab Im Trend verwendet)

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

Mit einem Satz von deiner KI installieren lassen

Installiere bitte Lombardia Trains. Folge https://mcp.popnx.com/i/denisraimondi-lombardia-trains.md, zeig mir die Befehle und warte auf mein OK, bevor du sie ausführst.

Füge ihn in eine KI ein, die auf deinem Rechner arbeitet (z. B. Claude Code oder Cursor). Sie liest unsere Schritte, zeigt dir die Befehle und wartet auf dein OK. Kein Schlüssel, keine Anmeldung. · Vollständigen Text ansehen

3/3 Prüfungen bestanden · Läuft auf deinem Computer · ✓ Befehle geprüft am 14. Nov. 2026

Zuerst: Welche KI nutzt du?

Wähle deine App, dann erscheinen die Schritte unten.

Klappt mit Claude, aber erst etwas vorbereiten

Kein Schlüssel, nichts zu installieren · Nur in der Claude-App für den Computer (Windows oder Mac), nicht im Web oder auf dem Handy

Von der KI installieren lassen

Kopiere diese Nachricht in einen Claude-Chat. Die KI prüft deinen Rechner, sagt dir, welche Datei sie ändert, und wartet jedes Mal auf dein OK.

Installiere bitte den MCP server Lombardia Trains für Claude auf diesem Rechner, in dieser Reihenfolge: 1) 2) Verwende nur diese Konfiguration (von PopNx MCP geprüft): { "mcpServers": { "lombardia-trains": { "command": "dnx", "args": [ "LombardiaTrains.Mcp", "--yes" ] } } } 3) Nenne mir den vollständigen Pfad der Datei, die du änderst, oder den Befehl, den du ausführst, und warte auf mein OK. 4) Kein Schlüssel nötig. 5) Führe das Vereinbarte aus und prüfe, dass die Tools von Lombardia Trains wirklich erscheinen.

Diese Nachricht enthält keinen Schlüssel. Wird einer gebraucht, bittet dich die KI, ihn selbst in die Datei oder das Feld der App einzufügen.

  1. Einstellungsdatei der Claude-Desktop-App öffnen

    SettingsDeveloperEdit Config

  2. Diese Einstellungen einfügen und speichern

    {
      "mcpServers": {
        "lombardia-trains": {
          "command": "dnx",
          "args": [
            "LombardiaTrains.Mcp",
            "--yes"
          ]
        }
      }
    }
  3. Claude beenden und neu öffnen

  4. Ausprobieren

    Nutze Lombardia Trains und sag mir, was du für mich tun kannst; zeig mir dann eine Sache

    ✓ Wenn Claude sagt, dass es Lombardia Trains nutzt, oder ein Werkzeug von Lombardia Trains in der Antwort zeigt, bist du verbunden

Menünamen am 11. Nov. 2026 mit der Hilfe von Anthropic abgeglichen · dein Bildschirm kann je nach App-Version leicht abweichen

ChatGPT kann Lombardia Trains noch nicht verbinden

Lombardia Trains läuft auf deinem Computer, aber ChatGPT verbindet nur Server, die im Web laufen

Das kannst du stattdessen tun

A · Eine App nutzen, die Lombardia Trains verbinden kann

  • Kein Schlüssel, nichts zu installieren · Nur in der Claude-App für den Computer (Windows oder Mac), nicht im Web oder auf dem Handy
  • Kein Schlüssel, nichts zu installieren
  • Kein Schlüssel, nichts zu installieren
  • Kein Schlüssel, nichts zu installieren

B · Andere in Sonstiges, die mit ChatGPT funktionieren

Aus den meistgenutzten derselben Kategorie, nur solche, die per Adresse ohne Schlüssel verbinden

Klappt mit Claude Code, aber erst etwas vorbereiten

Kein Schlüssel, nichts zu installieren

Von der KI installieren lassen

Kopiere diese Nachricht in einen Claude Code-Chat. Die KI prüft deinen Rechner, sagt dir, welche Datei sie ändert, und wartet jedes Mal auf dein OK.

Installiere bitte den MCP server Lombardia Trains für Claude Code auf diesem Rechner, in dieser Reihenfolge: 1) 2) Verwende nur diese Konfiguration (von PopNx MCP geprüft): claude mcp add --scope user lombardia-trains -- dnx LombardiaTrains.Mcp --yes 3) Nenne mir den vollständigen Pfad der Datei, die du änderst, oder den Befehl, den du ausführst, und warte auf mein OK. 4) Kein Schlüssel nötig. 5) Führe das Vereinbarte aus und prüfe, dass die Tools von Lombardia Trains wirklich erscheinen.

Diese Nachricht enthält keinen Schlüssel. Wird einer gebraucht, bittet dich die KI, ihn selbst in die Datei oder das Feld der App einzufügen.

  1. Terminal öffnen

    Mac: Command+Leertaste drücken und Terminal tippen · Windows: PowerShell öffnen

  2. Diesen Befehl einfügen und Enter drücken

    claude mcp add --scope user lombardia-trains -- dnx LombardiaTrains.Mcp --yes
  3. /mcp in Claude Code eingeben

    Lombardia Trains sollte in der Liste als verbunden erscheinen

  4. Ausprobieren

    Nutze Lombardia Trains und sag mir, was du für mich tun kannst; zeig mir dann eine Sache

    ✓ Wenn Claude Code sagt, dass es Lombardia Trains nutzt, oder ein Werkzeug von Lombardia Trains in der Antwort zeigt, bist du verbunden

Menünamen am 11. Nov. 2026 mit der Hilfe von Anthropic abgeglichen · dein Bildschirm kann je nach App-Version leicht abweichen

Klappt mit Cursor, aber erst etwas vorbereiten

Kein Schlüssel, nichts zu installieren

Von der KI installieren lassen

Kopiere diese Nachricht in einen Cursor-Chat. Die KI prüft deinen Rechner, sagt dir, welche Datei sie ändert, und wartet jedes Mal auf dein OK.

Installiere bitte den MCP server Lombardia Trains für Cursor auf diesem Rechner, in dieser Reihenfolge: 1) 2) Verwende nur diese Konfiguration (von PopNx MCP geprüft): { "mcpServers": { "lombardia-trains": { "command": "dnx", "args": [ "LombardiaTrains.Mcp", "--yes" ] } } } 3) Nenne mir den vollständigen Pfad der Datei, die du änderst, oder den Befehl, den du ausführst, und warte auf mein OK. 4) Kein Schlüssel nötig. 5) Führe das Vereinbarte aus und prüfe, dass die Tools von Lombardia Trains wirklich erscheinen.

Diese Nachricht enthält keinen Schlüssel. Wird einer gebraucht, bittet dich die KI, ihn selbst in die Datei oder das Feld der App einzufügen.

  1. Mit diesem Button Cursor öffnen

    In Cursor öffnen

    Cursor fragt nach einer Bestätigung; klicke Install

  2. KI-Chat in Cursor im Agent-Modus öffnen

  3. Ausprobieren

    Nutze Lombardia Trains und sag mir, was du für mich tun kannst; zeig mir dann eine Sache

    ✓ Wenn Cursor sagt, dass es Lombardia Trains nutzt, oder ein Werkzeug von Lombardia Trains in der Antwort zeigt, bist du verbunden

Menünamen am 11. Nov. 2026 mit der Hilfe von Cursor abgeglichen · dein Bildschirm kann je nach App-Version leicht abweichen

Klappt mit VS Code, aber erst etwas vorbereiten

Kein Schlüssel, nichts zu installieren

Von der KI installieren lassen

Kopiere diese Nachricht in einen VS Code-Chat. Die KI prüft deinen Rechner, sagt dir, welche Datei sie ändert, und wartet jedes Mal auf dein OK.

Installiere bitte den MCP server Lombardia Trains für VS Code auf diesem Rechner, in dieser Reihenfolge: 1) 2) Verwende nur diese Konfiguration (von PopNx MCP geprüft): { "servers": { "lombardia-trains": { "type": "stdio", "command": "dnx", "args": [ "LombardiaTrains.Mcp", "--yes" ] } } } 3) Nenne mir den vollständigen Pfad der Datei, die du änderst, oder den Befehl, den du ausführst, und warte auf mein OK. 4) Kein Schlüssel nötig. 5) Führe das Vereinbarte aus und prüfe, dass die Tools von Lombardia Trains wirklich erscheinen.

Diese Nachricht enthält keinen Schlüssel. Wird einer gebraucht, bittet dich die KI, ihn selbst in die Datei oder das Feld der App einzufügen.

  1. Mit diesem Button VS Code öffnen

    In VS Code öffnen

    VS Code fragt nach einer Bestätigung; klicke Install

  2. KI-Chat in VS Code im Agent-Modus öffnen

  3. Ausprobieren

    Nutze Lombardia Trains und sag mir, was du für mich tun kannst; zeig mir dann eine Sache

    ✓ Wenn VS Code sagt, dass es Lombardia Trains nutzt, oder ein Werkzeug von Lombardia Trains in der Antwort zeigt, bist du verbunden

Menünamen am 11. Nov. 2026 mit der Hilfe von VS Code abgeglichen · dein Bildschirm kann je nach App-Version leicht abweichen

Andere Apps mit MCP, etwa Windsurf, Zed oder Gemini CLI, fügen Server unterschiedlich hinzu. Sieh in der App-Liste nach

Alle Apps mit MCP ansehen →

JSON-Einstellungen stehen unten unter „Für Entwickler“

Hängst du fest? Frag Leute, die Lombardia Trains nutzen💬 Diskussion →
Für Entwickler: Terminal-Befehle und JSON-Einstellungen

Auf deinem Computer installiert

Claude Code

claude mcp add --scope user lombardia-trains -- dnx LombardiaTrains.Mcp --yes

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "lombardia-trains": {
      "command": "dnx",
      "args": [
        "LombardiaTrains.Mcp",
        "--yes"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "lombardia-trains": {
      "command": "dnx",
      "args": [
        "LombardiaTrains.Mcp",
        "--yes"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "lombardia-trains": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "LombardiaTrains.Mcp",
        "--yes"
      ]
    }
  }
}

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Auf einen Blick

Downloads pro Wochei
Nicht auf npm/PyPI
Verbindung
Läuft auf deinem Computer
Neueste Versioni
0.1.1
Kategoriei
Sonstiges
In der Registry veröffentlichti
24. Aug. 2026
Code zuletzt geänderti
6. Sept. 2026
Entwickler
DenisRaimondi
Pakete
nuget: LombardiaTrains.Mcp
Website
github.com
Registry-Status
Aktiv

Welche Apps ihn nutzen können

Basierend darauf, wie sich dieser Server verbindet, und auf der eigenen Doku jeder App, geprüft am 10. Nov. 2026.

Laufen auf deinem Computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

Alle Apps, mit Vor- und Nachteilen →

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 19. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde mit dem GitHub-Konto DenisRaimondi bestätigt, dem das Repo gehört

  • ✓ Bestanden

    Wird noch gepflegt

    Code zuletzt geändert: vor 2 Monaten

  • ✓ Bestanden

    Hat eine Lizenz

    Nutzt MIT

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Veröffentlichte Schwachstellen (OSV.dev)

Nicht geprüft: nur npm- und PyPI-Pakete mit Version lassen sich prüfen

Was wir prüfen → · JSON

Entwickler: neue Prüfung anfordern oder falsche Angaben melden
Für Anbieter: Badge ins README

Wenn du das gebaut hast, füge diesen Code in dein README ein. Das Badge verlinkt auf diese Seite.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/denisraimondi-lombardia-trains.svg)](https://mcp.popnx.com/en/servers/denisraimondi-lombardia-trains)

Diskussion

Fragen, Tipps teilen oder melden, dass etwas nicht geht. Sortiert nach „hilfreich“.

Noch keine Beiträge. Stell die erste Frage oder teile einen Tipp.

Beiträge hier stammen von Nutzern, nicht vom PopNx-Team.

Anmelden, um zu posten

Nutzerbewertungen

Noch keine Bewertungen

Anmelden, um eine Bewertung zu schreiben

Im Vergleich mit anderen in Sonstigesi

  • Mehr Sterne als 0 % der anderen 20749 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 24 % der anderen 20749 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 99 % der anderen 20749 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist Lombardia Trains sicher?

Er hat 3 von 3 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Die Registry nennt keinen erforderlichen Schlüssel, manche Server bitten dich aber bei der ersten Nutzung, dich anzumelden.

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt vor 2 Monaten geändert, und die neueste Version (0.1.1) kam vor 3 Monaten in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du .NET auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

Ähnliche Alternativen

Gleiche Kategorie, andere Entwickler, Befehle bereits geprüft. Offizielle zuerst, dann nach Sternen.

So liest du eine Karte:↓ Downloads pro Wochei★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

von koala73Weit verbreitet★ 90.934Aktualisiert vor 3 Tagen

Läuft in der Cloud✓ vom Dienst · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

von openstatusHQWeit verbreitet★ 9274Aktualisiert vor 2 Monaten

Läuft in der Cloud✓ vom Dienst · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

von JanDeDobbeleerWeit verbreitet★ 23.770 Sterne des ganzen ReposAktualisiert vor 30 Tagen

Läuft in der Cloud✓ vom Dienst · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

von Klavis-AIWachsend★ 5824Aktualisiert vor 14 Monaten

Läuft in der CloudRepo archiviert✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

von jitsucomWeit verbreitet★ 5136Aktualisiert vor 4 Monaten

Läuft in der Cloud✓ vom Dienst · jitsu.com
Im Vergleich mit ähnlichen
Dieser
Lombardia Trains
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
Läuft woWird auf deinem Rechner installiertLäuft in der Cloud, keine InstallationLäuft in der Cloud, keine InstallationLäuft in der Cloud, keine InstallationLäuft in der Cloud, keine InstallationLäuft in der Cloud, keine Installation
Braucht SchlüsselNeinNeinNeinNeinNeinNein
Mit + in Claude hinzufügenNeinNeinNeinNeinNeinNein
Basisprüfungen3/34/44/44/41/44/4
LizenzMITAGPL-3.0AGPL-3.0MITApache-2.0MIT
PreisKeine Kosten im RegisterKeine Kosten im RegisterKeine Kosten im RegisterKeine Kosten im RegisterKeine Kosten im RegisterKeine Kosten im Register

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

Lombardia Trains MCP

An MCP server that answers questions about Lombardy trains: departure and arrival boards, live delays, platforms, stop-by-stop progress, cancellations and crowding — and plans journeys with a change, from the regional timetable Regione Lombardia publishes as open data. It reads the public ViaggiaTreno (RFI/Trenitalia) and Trenord APIs. No API key, no account, no scraping.

> is the next train to Malpensa on time?

Departures — MILANO CADORNA (S01066), 21:29 21:23 REG787 SEVESO +2' platform 9 21:26 REG387 MALPENSA AEROPORTO TERMINA -2' platform 1 21:32 REG887 SARONNO 0' platform 6

Install

dotnet tool install -g LombardiaTrains.Mcp

Then register it with your MCP client. For Claude Desktop, in claude_desktop_config.json:

{

"mcpServers": { "lombardia-trains": { "command": "lombardia-trains-mcp" } } }

For Claude Code:

claude mcp add lombardia-trains -- lombardia-trains-mcp

Tools

ToolWhat it answers
now"what time and day is it in Italy?"
search_station"what is the station code for Milano Centrale?"
get_departures"what is leaving Milano Cadorna on Saturday morning?"
get_arrivals"when does the train from Varese get in?"
find_connection"which direct trains go from Milano Cadorna to Como?"
find_journey"how do I get from Castellanza to Como Lago on Monday morning?"
get_train"where is train 4307 right now, and how late is it?"

Station arguments take either a code (S01700) or a name (milano centrale), and times take either HH:mm for today or ISO 2026-08-29T09:00 for another day.

Three behaviours exist because the caller is a language model rather than a person, and each of them prevents a confident wrong answer:

  • `now` exists at all because a model has no reliable idea of the date in Rome, and every relative question — "tonight", "Saturday" — needs one before any other tool can be called.
  • Ambiguous names are never resolved silently. "Milano" matches twenty-six stations, and many towns have both a national station and a separate "Nord" one served by entirely different trains. The tools return the list and ask, rather than picking the first and sounding certain.
  • Unknown places say where coverage ends. Asking for Lugano returns an explanation of what the service covers, so the model can decline instead of inventing a train to Switzerland.

find_connection finds direct trains only, and says so. It reads live departure boards and each candidate train's stop list rather than a timetable, so it carries delays and platforms but cannot compose a change.

find_journey composes one. It plans from the regional timetable, falls back to Swiss open data for anywhere that timetable does not reach, and returns scheduled times with no delays in them — the two tools answer different halves of the same question and are meant to be used together.

Journeys are ranked by arrival, not departure. Someone asking how to get somewhere wants to be there soonest, and ranking by departure puts a train that leaves four minutes earlier and arrives forty minutes later at the top of the list.

Only one change is searched for. Two multiply both the search space and the ways to be quietly wrong, and on this network almost everything worth reaching is reachable with one — so the limit is stated rather than hidden behind an incomplete search.

The part worth reading

Both upstream APIs are public, undocumented and a little hostile. Most of the work in this repository is not calling them, it is surviving them. Each of the following is enforced in code and covered by a test.

Trenord wants two headers, not one

Trenord answers 403 Forbidden unless the request carries both an Accept header and a User-Agent:

RequestResult
no headers403
Accept: */* only403
User-Agent only403
both200

This is easy to get half right. Probing the endpoint with curl or Python suggests that Accept alone is enough, because both send a User-Agent of their own without being asked. .NET's HttpClient sends neither header unless told to — so a client that sets only Accept keeps getting 403, and finds out in production rather than on the machine where the call was first tried by hand.

That is the whole reason TrenordClient sets both in its constructor.

Optional fields are absent, not null

average_crowding, average_crowding_label, suppression_type and alerts do not appear in the Trenord payload at all when there is nothing to report. They are not null: the properties are missing.

Verified against five regular services (S5, S11, RE_5, R27): none of them carried any of the four. Code that assumes these fields exist therefore works on the trains that have problems and crashes on the ones that do not, which is the worst possible way round.

Timestamps come in three different shapes
  • Trenord dep_time / arr_time — local time, "HH:MM:SS". Safe to display.
  • Trenord dep_date_time / arr_date_time — ISO 8601 in UTC, with the Z. Convenient for date arithmetic, wrong if you show it as it is.
  • ViaggiaTreno — epoch milliseconds, always to be converted declaring Europe/Rome explicitly. Converting with the machine's local time gives the right answer on an Italian laptop and the wrong one on a UTC server.
ViaggiaTreno wants JavaScript's idea of a date

Board endpoints take the timestamp spelled the way Date.toString() spells it:

Mon Aug 10 2026 20:20:00 GMT+0200

Day and month names must be English. They are built from fixed arrays on purpose: formatting them through the machine's culture produces lun ago on an Italian system and the endpoint silently returns nothing.

Two more small ones
  • ViaggiaTreno's train lookup answers with plain text, not JSON — one line per run, with the fields needed by the live-progress endpoint after a |.
  • It also returns an empty body instead of an empty array when there is nothing to report, which makes a naive deserializer throw.
  • train_operator uses $:$ as its separator, literally.
Read the operator's file, not the portal's copy of it

Trenord publishes this timetable as a GTFS zip under CC0, and the same portal also serves it exploded into one queryable table per file. The tables look like the easier option — paged JSON, filterable, no zip to unpack — and they are a lossy copy. Measured against the file they are built from:

the zipthe tables
stop times90,55368,952
trips8,4706,265

A quarter of the timetable does not survive the import, and it does not go missing tidily: trips arrive truncated. Train 11827 runs Varese to Milano and on; in the tables it stops at Porta Garibaldi, so everything reachable by staying on it is invisible, and Varese to Bergamo came back an hour worse than the published answer. Reading the zip, it matches to the minute.

Three more things the import breaks, each of which costs real code to work around and none of which is wrong in the file:

  • Times land inside a placeholder date. GTFS writes a service past midnight as 24:05; a datetime cannot hold that, so it becomes 00:05 and the train arrives eighteen hours before it left. The file says 24:05.
  • Service ids are rewritten with a hash and no longer match the ones in calendar_dates, so the two files cannot be joined on the key they share. Cutting both back to the number before the hyphen makes them join again — and merges every seasonal variant of a train into one, leaving nothing to say which of them runs today. In the file, trips and calendar_dates both write 1001A-2025-12-14-2026-12-12. The join is exact and the ambiguity does not exist.
  • `trip_short_name` is dropped entirely. That is the train number — the one field that connects a planned leg to the live data.

The decimal point also goes missing from coordinates, and route_type differs: the tables call R23 and RE4 trains, the file calls them buses.

Ask the operator, then say so

The file is not the operator's own answer either, and it is worth being precise about the size of the gap. Checked against 28 journeys published by the operator's own planner, on the same day:

  • Milano Centrale to Bergamo: the feed times train 2217 at 48 minutes, the operator at 52.
  • Pavia to Mortara: train 10668 arrives 09:28 in the feed, 09:23 in the answer.
  • Lecco to Bergamo: train 10719 reaches Ponte S.Pietro at 08:52 in the feed and its connecting coach leaves at 08:51 — a change the feed itself makes impossible and the operator has working with five minutes to spare.

The operator runs HAFAS over an internal timetable with real-time folded in. A GTFS export of it is not it. But the live sources here are the operator's own, and the file carries the train number, so every leg can simply be looked up and asked. Where it answers, its times are the ones shown, the timetable's are kept in brackets beside them, and platforms, delays and cancellations come with them.

Against those same 28 journeys that takes exact agreement from 22 to 27.

The one that remains is the shape of what this cannot do. Lecco to Bergamo is still answered with the 09:01 coach rather than the 08:51 one, because the feed said the train arrived at 08:52 and the search discarded that connection before anything was checked. Correcting after the planning fixes what is shown; it does not recover what the wrong data excluded. Live data is asked for today and tomorrow only — beyond that there is nothing live to ask.

The planner behind the border does not know it is lost

Where the regional timetable does not reach, journeys fall back to Swiss open data. That planner covers Switzerland and reaches into Italy near the border. It does not cover the rest of the country — and asked about it, it does not say so. It matches the name against its own index and answers about whatever it found.

Asked to plan Milano Centrale to Roma Termini, it returned a confident, correctly formatted, two-hour itinerary to *LaCLINIQUE of Switzerland, Locarno, Via Bossi 2*. Roma Termini to Napoli Centrale became a four-change, four-hour journey ending at a street address in Lucens, canton Vaud.

Nationality is not the test that catches this: the Swiss index holds Zurich, and ViaggiaTreno holds Zurich Altstetten, so "are both stations Italian" rejects a real journey to Zurich while letting the clinic through. The test that works is whether the answer is about the places that were asked for — one substantial word in common, accents folded, so *Zurich* matches *Zürich HB* and *Roma Termini* matches nothing in Locarno. An answer that fails it is discarded rather than passed on, and the reply names the live tools, which do work for those stations.

How accurate this is, and how that was measured

Twenty-eight journeys published by the operator's own planner were compared against what this returns — same day, same times, thirteen routes across the region — and where the two disagreed, the live train data was asked to settle it. Twenty-seven of the twenty-eight match to the minute.

That is a measurement of two things at once, and they are worth separating. The routing was never really the hard part on a network this size: what the number mostly measures is how faithfully open timetable data reproduces the timetable the operator actually runs. The answer is: closely, and not exactly.

An open feed is an export. The operator plans on an internal system with real-time folded into it and publishes a snapshot of that system as GTFS, on its own schedule. A snapshot trails the thing it is a snapshot of — that is what a snapshot is, not a defect of

Nur der Anfang wird gezeigt; den Rest findest du im Repo