Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Travel-Routing-DE-EFA
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-EFA
Commits
133ccd4b
Commit
133ccd4b
authored
10 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
add efa -l / --list option
parent
eae082a2
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
bin/efa
+15
-0
15 additions, 0 deletions
bin/efa
with
15 additions
and
0 deletions
bin/efa
+
15
−
0
View file @
133ccd4b
...
...
@@ -169,6 +169,7 @@ GetOptions(
full-route|f
help|h
ignore-info|I:s
list|l
maps|M
max-change|m=i
num-connections|n=i
...
...
@@ -184,6 +185,15 @@ GetOptions(
}
,
)
or
show_help
(
1
);
#>>>
if
(
$opt
->
{
list
}
)
{
printf
(
"
%-40s %-14s %s
\n\n
",
'
service
',
'
abbr. (efa -s)
',
'
url (efa -u)
'
);
for
my
$service
(
Travel::Routing::DE::EFA::
get_efa_urls
()
)
{
printf
(
"
%-40s %-14s %s
\n
",
@
{
$service
}{
qw(name shortname url)
}
);
}
exit
0
;
}
if
(
not
(
@from
and
@to
)
)
{
if
(
@ARGV
==
4
)
{
(
@from
[
0
,
1
],
@to
[
0
,
1
]
)
=
@ARGV
;
...
...
@@ -423,6 +433,11 @@ Display duration, ticket class and price for each route (if available)
Display intermediate stops (with time and platform) of each train. Note that
these are not always available.
=item B<-l>|B<--list>
List suddorted EFA services wit their URLs (see B<-u>) and abbreviations
(see B<-s>).
=item B<-m>|B<--max-change> I<number>
Print connections with at most I<number> interchanges
...
...
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