Loading Build.PL +2 −2 Original line number Diff line number Diff line Loading @@ -30,8 +30,8 @@ Module::Build->new( 'List::Util' => 0, 'LWP::UserAgent' => 0, 'LWP::Protocol::https' => 0, 'Travel::Status::DE::DBRIS' => '0.02', 'Travel::Status::DE::DBRIS::Location' => '0.02', 'Travel::Status::DE::DBRIS' => '0.04', 'Travel::Status::DE::DBRIS::Location' => '0.04', }, script_files => 'bin/', sign => 1, Loading Changelog +11 −0 Original line number Diff line number Diff line Travel::Routing::DE::DBRIS 0.03 - Sun Feb 02 2025 * 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 - Tue Jan 28 2025 * Add support for up to two stopovers Loading bin/dbris +27 −2 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ use strict; use warnings; use 5.020; our $VERSION = '0.02'; our $VERSION = '0.03'; use utf8; use DateTime; Loading Loading @@ -484,7 +484,7 @@ B<dbris> [B<-d> I<DD.MM.YYYY>] [B<-t> I<HH:MM>] [...] I<from-stop> =head1 VERSION version 0.02 version 0.03 =head1 DESCRIPTION Loading @@ -506,6 +506,11 @@ Default: today. Show intermediate stops rather than just start/end of connection legs. =item B<--first-class> Request first class offers. Only useful when combined with B<--passengers>. =item B<-j>, B<--with-jid> Show JourneyID for each connection segment. Loading Loading @@ -537,6 +542,21 @@ for 90 seconds in F<~/.cache/Travel-Routing-DE-DBRIS> (or a path relative to C<$XDG_CACHE_HOME>, if set). Use this option to disable caching. You can use B<--cache> to re-enable it. =item B<-p>, B<--passengers> I<type>[:I<discounts>,...][B<;>I<type>[:I<discounts>,...]B<;>...] Use the specified passenger information to request ticket offers and show the corresponding price for each connection. I<type> must be adult, junior, or senior. I<discounts> can be one or more of bc25, bc50, bc100, bc25-first, bc50-first, bc100-first. See also B<--first-class>. Note that B<dbris> only has access to a single offer per connection. It is typically the cheapest, but there is no information about what kind of ticket it is. Lack of a listed price either means that ticket offers are not available or (for bc100) that the connection does not require a ticket. There is no way to distinguish between these two cases. B<dbris> does not guarantee accuracy of the provided information and must not be relied upon to determine whether a given connection is free or not. =item B<--raw-json> Print unprocessed API response as JSON and exit. Loading @@ -547,6 +567,11 @@ Useful for debugging and development purposes. Request connections on or after I<HH:MM>. Default: now. =item B<-v>, B<--verbose> Include free-text messages related to delays, platform changes, and other quality of service issues or announcements. =item B<-V>, B<--version> Show version information and exit. Loading lib/Travel/Routing/DE/DBRIS.pm +2 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ use LWP::UserAgent; use Travel::Status::DE::DBRIS; use Travel::Routing::DE::DBRIS::Connection; our $VERSION = '0.02'; our $VERSION = '0.03'; Travel::Routing::DE::DBRIS->mk_ro_accessors(qw(earlier later)); Loading Loading @@ -352,7 +352,7 @@ Travel::Routing::DE::DBRIS - Interface to the bahn.de itinerary service =head1 VERSION version 0.02 version 0.03 =head1 DESCRIPTION Loading lib/Travel/Routing/DE/DBRIS/Connection.pm +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ use parent 'Class::Accessor'; use DateTime::Duration; use Travel::Routing::DE::DBRIS::Connection::Segment; our $VERSION = '0.02'; our $VERSION = '0.03'; Travel::Routing::DE::DBRIS::Connection->mk_ro_accessors( qw(changes feasibility is_cancelled is_unscheduled is_unlikely Loading Loading
Build.PL +2 −2 Original line number Diff line number Diff line Loading @@ -30,8 +30,8 @@ Module::Build->new( 'List::Util' => 0, 'LWP::UserAgent' => 0, 'LWP::Protocol::https' => 0, 'Travel::Status::DE::DBRIS' => '0.02', 'Travel::Status::DE::DBRIS::Location' => '0.02', 'Travel::Status::DE::DBRIS' => '0.04', 'Travel::Status::DE::DBRIS::Location' => '0.04', }, script_files => 'bin/', sign => 1, Loading
Changelog +11 −0 Original line number Diff line number Diff line Travel::Routing::DE::DBRIS 0.03 - Sun Feb 02 2025 * 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 - Tue Jan 28 2025 * Add support for up to two stopovers Loading
bin/dbris +27 −2 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ use strict; use warnings; use 5.020; our $VERSION = '0.02'; our $VERSION = '0.03'; use utf8; use DateTime; Loading Loading @@ -484,7 +484,7 @@ B<dbris> [B<-d> I<DD.MM.YYYY>] [B<-t> I<HH:MM>] [...] I<from-stop> =head1 VERSION version 0.02 version 0.03 =head1 DESCRIPTION Loading @@ -506,6 +506,11 @@ Default: today. Show intermediate stops rather than just start/end of connection legs. =item B<--first-class> Request first class offers. Only useful when combined with B<--passengers>. =item B<-j>, B<--with-jid> Show JourneyID for each connection segment. Loading Loading @@ -537,6 +542,21 @@ for 90 seconds in F<~/.cache/Travel-Routing-DE-DBRIS> (or a path relative to C<$XDG_CACHE_HOME>, if set). Use this option to disable caching. You can use B<--cache> to re-enable it. =item B<-p>, B<--passengers> I<type>[:I<discounts>,...][B<;>I<type>[:I<discounts>,...]B<;>...] Use the specified passenger information to request ticket offers and show the corresponding price for each connection. I<type> must be adult, junior, or senior. I<discounts> can be one or more of bc25, bc50, bc100, bc25-first, bc50-first, bc100-first. See also B<--first-class>. Note that B<dbris> only has access to a single offer per connection. It is typically the cheapest, but there is no information about what kind of ticket it is. Lack of a listed price either means that ticket offers are not available or (for bc100) that the connection does not require a ticket. There is no way to distinguish between these two cases. B<dbris> does not guarantee accuracy of the provided information and must not be relied upon to determine whether a given connection is free or not. =item B<--raw-json> Print unprocessed API response as JSON and exit. Loading @@ -547,6 +567,11 @@ Useful for debugging and development purposes. Request connections on or after I<HH:MM>. Default: now. =item B<-v>, B<--verbose> Include free-text messages related to delays, platform changes, and other quality of service issues or announcements. =item B<-V>, B<--version> Show version information and exit. Loading
lib/Travel/Routing/DE/DBRIS.pm +2 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ use LWP::UserAgent; use Travel::Status::DE::DBRIS; use Travel::Routing::DE::DBRIS::Connection; our $VERSION = '0.02'; our $VERSION = '0.03'; Travel::Routing::DE::DBRIS->mk_ro_accessors(qw(earlier later)); Loading Loading @@ -352,7 +352,7 @@ Travel::Routing::DE::DBRIS - Interface to the bahn.de itinerary service =head1 VERSION version 0.02 version 0.03 =head1 DESCRIPTION Loading
lib/Travel/Routing/DE/DBRIS/Connection.pm +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ use parent 'Class::Accessor'; use DateTime::Duration; use Travel::Routing::DE::DBRIS::Connection::Segment; our $VERSION = '0.02'; our $VERSION = '0.03'; Travel::Routing::DE::DBRIS::Connection->mk_ro_accessors( qw(changes feasibility is_cancelled is_unscheduled is_unlikely Loading