~derf / projects / Travel::Routing::DE::HAFAS v0.07
dark mode

hafas is a commandline client and Perl module for HAFAS public transit routing interfaces such as the one operated by Deutsche Bahn. It can request itineraries for train/tram/bus/ferry connections throughout Germany and parts of Europe.

Example Output:

> hafas 'Eichlinghofen H-Bahn, Dortmund' 'Dortmund Hbf'
00:25        Bus 440  (0:06)  U 42  (0:02)  U 41

Bus 440 → Aplerbeck, Dortmund
21:36         ab  Eichlinghofen H-Bahn, Dortmund
21:41         an  Barop Parkhaus, Dortmund

Walk 27m  (approx. 2 minutes)
U 42 → Grevel, Dortmund
21:47 (  +1)  ab  Barop Parkhaus, Dortmund
21:56 (  +1)  an  Stadtgarten, Dortmund

Walk 11m  (approx. 1 minutes)
U 41 → Brechten Zentrum, Dortmund
21:58 (  +1)  ab  Stadtgarten, Dortmund
22:01 (  +1)  an  Hauptbahnhof, Dortmund


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

00:15        Schw-B HB5  (0:03)  S 1

Schw-B HB5 → Universität S-Bahnhof, Dortmund
21:51  ab  Eichlinghofen H-Bahn, Dortmund
21:55  an  Universität S-Bahnhof, Dortmund

Walk 37m  (approx. 3 minutes)
S 1 → Dortmund Hbf
21:58  ab  Dortmund Universität: 2
22:06  an  Dortmund Hbf: 4

Travel-Routing-DE-HAFAS-0.07.tar.gz (signature)

  • Replace built-in HAFAS service list with the one provided by Travel::Status::DE::HAFAS
  • Convert non-local time stamps to backend-specific time zone
  • hafas: Add -x / --exclude-infeasible and -j / --with-jid options
  • HAFAS::Connection::Section: Support unspecified local transit (TRSF)

Travel-Routing-DE-HAFAS-0.06.tar.gz (signature)

  • hafas: Add -C / --change-time option
  • HAFAS: Add min_change_time option

Travel-Routing-DE-HAFAS-0.05.tar.gz (signature)

  • hafas: Add -c / --max-change option
  • hafas: Add optional via arguments
  • HAFAS: Add max_change option
  • HAFAS: Add via_stops option

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

  • hafas: Add --raw-json option
  • Handle undefined occupancy and partial cancellations
  • Update ÖBB modes of transport (mot list)

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

  • hafas: Add --depart and -a / --arrive options
  • HAFAS->new: Add arrival option

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

  • hafas: Add -f / --full-route option
  • hafas: Fix -vv / -vvv support
  • Use Travel::Status::DE::HAFAS::Location for location data
  • Remove Travel::Routing::DE::HAFAS::Location
  • Use Travel::Status::DE::HAFAS::Journey for journey data
  • Section: add load accessor
  • Section: add journey accessor
  • Section: remove operator, id, name, category, category_long, class, number, line, line_no, delay, direction accessors. Use journey->operator, journey->id, etc. instead.

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

  • Initial release
  • Supports itinerary queries using Deutschen Bahn's mgate.exe interface
  • No stable API yet