NAME
dbris - Interface to bahn.de public transit routing service
SYNOPSIS
dbris [-d DD.MM.YYYY] [-t HH:MM] [...] from-stop to-stop
VERSION
version 0.01
DESCRIPTION
dbris is an interface to the public transport routing service available on bahn.de. It requests connections between two stops and prints the results.
OPTIONS
- -d, --date dd.mm.[yyyy]
-
Request connections for a specific day. Default: today.
- -f, --full-route
-
Show intermediate stops rather than just start/end of connection legs.
- --json
-
Print result(s) as JSON and exit. This is a dump of internal data structures and not guaranteed to remain stable between minor versions. Please use the Travel::Routing::DE::DBRIS(3pm) module if you need a proper API.
- -l, --language lang
-
Tell bahn.de to provide messages in lang (ISO 639-1 language code). Known supported languages are: cs da de en es fr it nl pl. Default: de.
- -m, --modes-of-transit mot1[,mot2,...]
-
Only show connections with the specified modes of transit. Supported modes of transit are: ICE, EC_IC, IR, REGIONAL, SBAHN, BUS, SCHIFF, UBAHN, TRAM, ANRUFPFLICHTIG. Default: all modes.
- --no-cache
-
By default, if the Cache::File module is available, server replies are cached for 90 seconds in ~/.cache/Travel-Routing-DE-DBRIS (or a path relative to
$XDG_CACHE_HOME
, if set). Use this option to disable caching. You can use --cache to re-enable it. - --raw-json
-
Print unprocessed API response as JSON and exit. Useful for debugging and development purposes.
- -t, --time HH:MM
-
Request connections on or after HH:MM. Default: now.
- -V, --version
-
Show version information and exit.
EXIT STATUS
0 upon success, 1 upon internal error, 2 upon backend error.
CONFIGURATION
None.
DEPENDENCIES
Class::Accessor(3pm)
DateTime(3pm)
LWP::UserAgent(3pm)
Travel::Routing::DE::DBRIS(3pm)
Travel::Status::DE::DBRIS(3pm)
BUGS AND LIMITATIONS
This module is very much work-in-progress
AUTHOR
Copyright (C) 2025 Birte Kristina Friesel <derf@finalrewind.org>
LICENSE
This program is licensed under the same terms as Perl itself.