Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Travel-Status-DE-HAFAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
Travel-Status-DE-HAFAS
Commits
bda00799
Unverified
Commit
bda00799
authored
2 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
station board: allow users to override maxjny and duration
parent
882a68c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Travel/Status/DE/HAFAS.pm
+17
-2
17 additions, 2 deletions
lib/Travel/Status/DE/HAFAS.pm
with
17 additions
and
2 deletions
lib/Travel/Status/DE/HAFAS.pm
+
17
−
2
View file @
bda00799
...
...
@@ -270,6 +270,9 @@ sub new {
}
}
my
$maxjny
=
$conf
{
results
}
//
30
;
my
$duration
=
$conf
{
lookahead
}
//
-
1
;
$req
=
{
svcReqL
=>
[
{
...
...
@@ -278,10 +281,10 @@ sub new {
type
=>
(
$conf
{
arrivals
}
?
'
ARR
'
:
'
DEP
'
),
stbLoc
=>
{
lid
=>
$lid
},
dirLoc
=>
undef
,
maxJny
=>
30
,
maxJny
=>
$maxjny
,
date
=>
$date
,
time
=>
$time
,
dur
=>
-
1
,
dur
=>
$duration
,
jnyFltrL
=>
[
{
type
=>
"
PROD
",
...
...
@@ -808,11 +811,23 @@ I<mot2>, ... will be returned. The supported modes depend on B<service>, use
B<get_services> or B<get_service> to get the supported values.
Only relevant in station board mode.
=item B<lookahead> => I<int>
Request arrivals/departures that occur up to I<int> minutes after the specified datetime.
Default: -1 (do not limit results by time).
Only relevant in station board mode.
=item B<lwp_options> => I<\%hashref>
Passed on to C<< LWP::UserAgent->new >>. Defaults to C<< { timeout => 10 } >>,
pass an empty hashref to call the LWP::UserAgent constructor without arguments.
=item B<results> => I<count>
Request up to I<count> results.
Default: 30.
Only relevant in station board mode.
=item B<service> => I<service>
Request results from I<service>, defaults to "DB".
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment