netzgrafik-editor-frontend icon indicating copy to clipboard operation
netzgrafik-editor-frontend copied to clipboard

[WIP]: Export raw trainruns data

Open aiAdrian opened this issue 4 months ago • 1 comments

Description

This Pull Request introduces a function that exports raw trainrun data. The data is structured in a CSV format, capturing information about the name, frequency, direction, and travel time and stop information of the trains as PathTime. The PathTime data is a array and each element consists of the following elements:

  • Node: Name of the place or city.
  • ArrivalTime: Consecutive arrival time at the node: The time in minutes at which the train arrives at the node.
  • DepartureTime: Consecutive departure time at the node: The time in minutes at which the train leaves the node.
  • Stop: True if the train stops to allow passengers to board or alight and possibly take a connecting journey at the same node. False if the train does not stop, and passengers cannot board or alight.
  • ArrivalMinute: Arrival time at the node: The time in minutes at which the train arrives at the node - just the minute - 0..60.
  • DepartureMinute: Departure time at the node: The time in minutes at which the train leaves the node - just the minute - 0..60.

The implementation iterates through all available trainruns, filters them, and creates a corresponding CSV representation.

Issues / Dependancy

Once the one-way trainrun gets merged this export must be extend to one-way trainrun! https://github.com/SchweizerischeBundesbahnen/netzgrafik-editor-frontend/pull/477

Checklist

  • [x] This PR contains a description of the changes I'm making
  • [x] I've read the Contribution Guidelines
  • [x] I've added tests for changes or features I've introduced
  • [x] I documented any high-level concepts I'm introducing in documentation/
  • [x] CI is currently green and this is ready for review

aiAdrian avatar Jul 16 '25 20:07 aiAdrian

This PR allows experimental work with LLM - see comment (promp example)

aiAdrian avatar Jul 16 '25 20:07 aiAdrian