~derf / projects / Travel::Routing::DE::DBRIS v0.05

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. Features include

  • configurable modes of transit (e.g. no ICE or IC/EC services),
  • price information for configurable passengers and discounts,
  • and compatibility with dbris-m for connection segment details.

See the dbris manual for a detailed feature list and usage instructions. Refer to the README for installation instructions.

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.05.tar.gz (signature)

  • dbris: Bump dependency version to really fix --json
  • dbris: Handle segments without duration

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

  • Connection, Segment: TO_JSON: convert DateTime and Duration objects
  • dbris: Fix --json
  • dbris: Add -a / --arrival option
  • dbris: Add -o / --with-offers option (work in progress)
  • dbris: Add --with-upsell-offers option

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

  • Connection: Add is_cancelled, is_unscheduled, is_unlikely accessors
  • Segment: Add is_unlikely and transfer_duration accessors
  • Parse and expose messages related to connections and connection segments
  • dbris: Indicate connections that include cancelled segments or segments that will likely not be reached due to insufficient layover time
  • dbris: add -j / --with-jid option
  • dbris: add -v / --verbose option

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