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
5f3a234e
Commit
5f3a234e
authored
9 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Route/Part: document current_notes and update regular_notes documentation
parent
d5573d1d
No related branches found
Branches containing commit
Tags
2.9.13
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Travel/Routing/DE/EFA/Route/Part.pm
+20
-5
20 additions, 5 deletions
lib/Travel/Routing/DE/EFA/Route/Part.pm
with
20 additions
and
5 deletions
lib/Travel/Routing/DE/EFA/Route/Part.pm
+
20
−
5
View file @
5f3a234e
...
...
@@ -126,8 +126,11 @@ points, without interchanges
for my $part ( $route->parts ) {
if ( $part->extra ) {
say join( "\n", $part->extra );
if ( $part->regular_notes ) {
say join( "\n", $part->regular_notes );
}
if ( $part->current_notes ) {
say join( "\n", map [ $_->{summary} ] $part->current_notes );
}
printf(
...
...
@@ -199,6 +202,18 @@ station, usually outlining how to transfer from this train to the next one
List of URLs, may be empty. Each URL points to an HTML map of the arrival
station.
=item $part->current_notes
(NOT STABLE YET - return value may be changed without notice)
Remarks about unscheduled changes to the line serving this connaction part,
such as cancelled stops. Most times, the EFA service does not include this
information in its route calculations.
Returns a list of hashes. Each hash has the keys
summary, subject, subtitle and content. The former three return text strings,
while content returns HTML (also as a string).
=item $part->delay
delay in minutes, 0 if unknown
...
...
@@ -242,10 +257,10 @@ departure station, usually outlining how to transfer from thep previous train
List of URLs, may be empty. Each URL poinst to an HTML map of the departure
station.
=item $part->
extra
=item $part->
regular_notes
Additional information about the
conn
e
ction
.
Returns a list of
newline-terminated
strings
Remarks about the line serving this
conn
a
ction
part.
Returns a list of
strings
.
=item $part->train_destination
...
...
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