Travel::Routing::DE::EFA::Route::Message(3pm) | User Contributed Perl Documentation | Travel::Routing::DE::EFA::Route::Message(3pm) |
Travel::Routing::DE::EFA::Route::Message - contains a message related to a route or route part.
for my $m ($routepart->regular_notes, $routepart->current_notes) { if ($m->is_detailed) { printf("%s: %s\n", $m->subtitle, $m->subject); } else { say $m->summary; } }
version 2.19
Travel::Routing::DE::EFA::Route::Message contains information about a specific route or route part, such as wheelchair accessibility, unscheduled route diversions and cancelled stops. Often, this information is not used in the backend's route calculation, so a message may invalidate a certain route or route part.
There are two types of messages provided by the backend: oneliners and detailed messages. There is no known distinction regarding their type or content. Also, there are some other backend-provided fields not yet covered by this module, so expect changes in future releases.
A oneline message consists of a single string which can be accesed using subject or summary and its is_detailed accessor returns false.
A detailed message has a subject, subtitle, summary and detailed HTML content.
None.
None.
This module does not yet provide access to all data provided by the backend. Most notably, raw_content is not properly parsed yet.
Travel::Routing::DE::EFA(3pm), Travel::Routing::DE::EFA::Route::Part(3pm).
Copyright (C) 2015 by Daniel Friesel <derf@finalrewind.org>
This program is licensed under the same terms as Perl itself.
2020-05-03 | perl v5.30.0 |