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
fd3c07f3
Commit
fd3c07f3
authored
11 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
efa: add -m, --maps option
parent
9f27ebcb
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
Changelog
+1
-0
1 addition, 0 deletions
Changelog
bin/efa
+23
-3
23 additions, 3 deletions
bin/efa
with
24 additions
and
3 deletions
Changelog
+
1
−
0
View file @
fd3c07f3
git HEAD
* Route::Part: Add {arrival,departure}_{route,station}maps accessors
* efa: Add -m, --maps option
Travel::Routing::DE::VRR 2.05 - Mon Mar 03 2014
...
...
This diff is collapsed.
Click to expand it.
bin/efa
+
23
−
3
View file @
fd3c07f3
...
...
@@ -125,6 +125,12 @@ sub display_connection {
}
}
if
(
$opt
->
{
maps
}
)
{
for
my
$m
(
$c
->
departure_routemaps
,
$c
->
departure_stationmaps
)
{
say
"
#
$m
";
}
}
printf
(
"
%-5s ab %-30s %-20s %s
\n
",
$c
->
departure_time
,
$c
->
departure_stop_and_platform
,
...
...
@@ -138,9 +144,8 @@ sub display_connection {
}
}
printf
(
"
%-5s an %s
\n\n
",
$c
->
arrival_time
,
$c
->
arrival_stop_and_platform
,
);
printf
(
"
%-5s an %s
\n
",
$c
->
arrival_time
,
$c
->
arrival_stop_and_platform
,
);
print
"
\n
";
return
;
}
...
...
@@ -162,6 +167,7 @@ GetOptions(
full-route|f
help|h
ignore-info|I:s
maps|M
max-change|m=i
num-connections|n=i
prefer|P=s
...
...
@@ -257,6 +263,15 @@ for my $i ( 0 .. $#routes ) {
for
my
$c
(
$route
->
parts
)
{
display_connection
(
$c
);
}
# last one needs to be shown separately
if
(
$opt
->
{
maps
}
)
{
my
$c
=
(
$route
->
parts
)[
-
1
];
for
my
$m
(
$c
->
arrival_routemaps
,
$c
->
arrival_stationmaps
)
{
say
"
#
$m
";
}
}
if
(
$i
!=
$#routes
)
{
print
"
---------
\n\n
";
}
...
...
@@ -345,6 +360,11 @@ these are not always available.
Print connections with at most I<number> interchanges
=item B<-M>|B<--maps>
Output links to maps of transfer paths and transfer stations where
available.
=item B<-n>|B<--num-connections> I<number>
Return up to I<number> connections. If unset, the default of the respective
...
...
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