~derf / projects / Travel::Routing::DE::DBRIS v0.02
dark mode

dbris provides a commandline client and Perl module for the bahn.de public transit routing interface. It requests connections between two stops and prints the results as text or JSON.

Example Output

> dbris 'Eichlinghofen H-Bahn, Dortmund' 'Dortmund Hbf'

19.01. 16:51  (00:21)  17:12   .  Bus  S

Bus 440 → Oespel S-Bahnhof, Dortmund
16:51 (+1)  ab  Eichlinghofen H-Bahn, Dortmund
16:56 (+1)  an  Oespel S-Bahnhof, Dortmund

Fußweg 46m  (≈ 3 min.)
S 1 → Dortmund Hbf   .
17:01 (+5)  ab  Dortmund-Oespel  2
17:12 (+2)  an  Dortmund Hbf  7

---------------------------------------

19.01. 16:51  (00:26)  17:17      Bus  U  U

Bus 440 → Brünninghausen Betriebshof, Dortmund
16:51       ab  Eichlinghofen H-Bahn, Dortmund
16:56       an  Barop Parkhaus, Dortmund

Fußweg 27m  (≈ 2 min.)
U 42 → Grevel, Dortmund    
17:02       ab  Barop Parkhaus, Dortmund
17:11       an  Stadtgarten, Dortmund

Fußweg 11m  (≈ 1 min.)
U 41 → Brambauer Verkehrshof, Lünen
17:14 (+2)  ab  Stadtgarten, Dortmund
17:17 (+2)  an  Hauptbahnhof, Dortmund

Travel-Routing-DE-DBRIS-0.02.tar.gz (signature)

  • Add support for up to two stopovers
  • Add first class option (--first-class / first_class)
  • Add detailed passenger specification for price calculation (--passengers / passengers)

Travel-Routing-DE-DBRIS-0.01.tar.gz (signature)

  • Initial release
  • Supports requesting itineraries from bahn.de with user-specified departure date/time and modes of transport
  • Features that are not implemented yet include proper pricing / passenger specification, Deutschlandticket, bike carriage, and reservation only