Documents
README
Changelog
hafas(1)
Travel-Routing-DE-HAFAS(3)
Downloads Travel-Routing-DE-HAFAS 0.09 Debian
Mirrors finalrewind Chaosdorf GitHub
See Also CPAN GitHub Issues Docker Image
Downloads Travel-Routing-DE-HAFAS 0.09 Debian
Mirrors finalrewind Chaosdorf GitHub
See Also CPAN GitHub Issues Docker Image
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
2024-11-20
Travel::Routing::DE::HAFAS v0.09
Travel-Routing-DE-HAFAS-0.09.tar.gz (signature)
- Improve handling of backend messages and errors
2024-06-11
Travel::Routing::DE::HAFAS v0.08
Travel-Routing-DE-HAFAS-0.08.tar.gz (signature)
- Adjust walking connection segment handling for DB HAFAS update on Sun Jun 09 (ignore walking segments without a duration)
2024-04-13
Travel::Routing::DE::HAFAS v0.07
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)
2024-03-28
Travel::Routing::DE::HAFAS v0.06
Travel-Routing-DE-HAFAS-0.06.tar.gz (signature)
- hafas: Add
-C
/--change-time
option - HAFAS: Add
min_change_time
option
2024-03-24
Travel::Routing::DE::HAFAS v0.05
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
2024-02-26
Travel::Routing::DE::HAFAS v0.04
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)
2023-12-10
Travel::Routing::DE::HAFAS v0.03
Travel-Routing-DE-HAFAS-0.03.tar.gz (signature)
- hafas: Add
--depart
and-a
/--arrive
options HAFAS->new
: Addarrival
option
2023-11-25
Travel::Routing::DE::HAFAS v0.02
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. Usejourney->operator
,journey->id
, etc. instead.
2023-11-16
Travel::Routing::DE::HAFAS v0.01
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