Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Travel-Routing-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-Routing-DE-HAFAS
Commits
f4b94cd6
Unverified
Commit
f4b94cd6
authored
3 months ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
DB HAFAS is no more; service is now a mandatory argument
parent
1616bad4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/hafas
+12
-0
12 additions, 0 deletions
bin/hafas
lib/Travel/Routing/DE/HAFAS.pm
+3
-3
3 additions, 3 deletions
lib/Travel/Routing/DE/HAFAS.pm
with
15 additions
and
3 deletions
bin/hafas
+
12
−
0
View file @
f4b94cd6
...
...
@@ -81,6 +81,18 @@ if ($list_services) {
exit
0
;
}
if
(
not
$service
)
{
say
STDERR
'
Note: You have called hafas without specifying a service.
';
say
STDERR
q{}
;
say
STDERR
'
Unfortunately, the previous default service (DB HAFAS)
';
say
STDERR
'
is no more, and there is no generic replacement available.
';
say
STDERR
q{}
;
say
STDERR
'
Please use "hafas --list" to list supported services,
';
say
STDERR
'
and then select one via -s <service>.
';
say
STDERR
'
Falling back to ÖBB for now.
';
$service
=
'
ÖBB
';
}
parse_mot_options
();
my
(
$from_stop
,
@via_stops
)
=
@ARGV
;
...
...
This diff is collapsed.
Click to expand it.
lib/Travel/Routing/DE/HAFAS.pm
+
3
−
3
View file @
f4b94cd6
...
...
@@ -46,7 +46,7 @@ sub new {
}
if
(
not
defined
$service
)
{
$service
=
$conf
{
service
}
=
'
DB
'
;
confess
("
The service option is mandatory
")
;
}
if
(
defined
$service
and
not
exists
$hafas_instance
{
$service
}
)
{
...
...
@@ -639,9 +639,9 @@ Request connections with scheduled changeover durations of at least I<minutes>.
Note that this does not account for real-time data: the backend may return
delayed connections that violate the specified changeover duration.
=item B<service> => I<service>
=item B<service> => I<service>
(mandatory)
Request results from I<service>
, defaults to "DB"
.
Request results from I<service>.
See B<get_services> (and C<< hafas-m --list >>) for a list of supported
services.
...
...
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