Loading lib/Travel/Status/DE/VRR.pm +9 −2 Original line number Diff line number Diff line Loading @@ -300,6 +300,7 @@ sub results { my $info = $e_info->textContent; my $countdown = $e->getAttribute('countdown'); my $delay = $e_info->getAttribute('delay') // 0; my $type = $e_info->getAttribute('name'); my $platform_is_db = 0; Loading @@ -326,6 +327,7 @@ sub results { delay => $delay, sched_date => $date, sched_time => $time, type => $type, ) ); } Loading Loading @@ -404,8 +406,13 @@ address / poi / stop name to list departures for. =item $status->errstr In case of an error in the HTTP requests, returns a string describing it. If no error occured, returns undef. In case of en HTTP request or EFA error, returns a string describing it. If none occured, returns undef. =item $status->lines Returns a list of Travel::Status::DE::VRR::Line(3pm) objects, each one describing one line servicing the selected station. =item $status->results Loading lib/Travel/Status/DE/VRR/Result.pm +34 −4 Original line number Diff line number Diff line Loading @@ -83,7 +83,8 @@ Destination name. Additional information related to the departure (string). If departures for an address were requested, this is the stop name, otherwise it may be recent news related to the line's schedule. news related to the line's schedule. If no information is available, returns an empty string. =item $departure->line Loading Loading @@ -120,8 +121,8 @@ Actual departure time (HH:MM). =item $departure->type Type of the departing train, values observed so far are "StraE<szlig>enbahn", "Bus", "NE", "S-Bahn" and "U-Bahn". Type of the departure. Note that efa.vrr.de sometimes puts bogus data in this field. See L</DEPARTURE TYPES>. =back Loading @@ -136,6 +137,34 @@ call this. =back =head1 DEPARTURE TYPES The following are known so far: =over =item * Abellio-Zug =item * Eurocity =item * Intercity-Express =item * NE (NachtExpress / night bus) =item * Niederflurbus =item * R-Bahn (RE / RegionalExpress) =item * S-Bahn =item * SB (Schnellbus) =item * Straßenbahn =item * U-Bahn =back =head1 DIAGNOSTICS None. Loading @@ -150,7 +179,8 @@ None. =head1 BUGS AND LIMITATIONS Not all possible B<type> values are documented yet. C<< $result->type >> may contain bogus data. This comes from the efa.vrr.de interface. =head1 SEE ALSO Loading Loading
lib/Travel/Status/DE/VRR.pm +9 −2 Original line number Diff line number Diff line Loading @@ -300,6 +300,7 @@ sub results { my $info = $e_info->textContent; my $countdown = $e->getAttribute('countdown'); my $delay = $e_info->getAttribute('delay') // 0; my $type = $e_info->getAttribute('name'); my $platform_is_db = 0; Loading @@ -326,6 +327,7 @@ sub results { delay => $delay, sched_date => $date, sched_time => $time, type => $type, ) ); } Loading Loading @@ -404,8 +406,13 @@ address / poi / stop name to list departures for. =item $status->errstr In case of an error in the HTTP requests, returns a string describing it. If no error occured, returns undef. In case of en HTTP request or EFA error, returns a string describing it. If none occured, returns undef. =item $status->lines Returns a list of Travel::Status::DE::VRR::Line(3pm) objects, each one describing one line servicing the selected station. =item $status->results Loading
lib/Travel/Status/DE/VRR/Result.pm +34 −4 Original line number Diff line number Diff line Loading @@ -83,7 +83,8 @@ Destination name. Additional information related to the departure (string). If departures for an address were requested, this is the stop name, otherwise it may be recent news related to the line's schedule. news related to the line's schedule. If no information is available, returns an empty string. =item $departure->line Loading Loading @@ -120,8 +121,8 @@ Actual departure time (HH:MM). =item $departure->type Type of the departing train, values observed so far are "StraE<szlig>enbahn", "Bus", "NE", "S-Bahn" and "U-Bahn". Type of the departure. Note that efa.vrr.de sometimes puts bogus data in this field. See L</DEPARTURE TYPES>. =back Loading @@ -136,6 +137,34 @@ call this. =back =head1 DEPARTURE TYPES The following are known so far: =over =item * Abellio-Zug =item * Eurocity =item * Intercity-Express =item * NE (NachtExpress / night bus) =item * Niederflurbus =item * R-Bahn (RE / RegionalExpress) =item * S-Bahn =item * SB (Schnellbus) =item * Straßenbahn =item * U-Bahn =back =head1 DIAGNOSTICS None. Loading @@ -150,7 +179,8 @@ None. =head1 BUGS AND LIMITATIONS Not all possible B<type> values are documented yet. C<< $result->type >> may contain bogus data. This comes from the efa.vrr.de interface. =head1 SEE ALSO Loading