Travel...essage(3pm)
β¨ NAME β¨
okay so bestie, welcome to Travel::Routing::DE::EFA::Route::Message (it's a Perl module, it lives in Travel...essage(3pm) land) β she's the lil cutie that holds a message related to a route or route part. that's the whole job. π
πΈ SYNOPSIS πΈ
here's how you actually use her, fr fr:
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 π
version 2.24 β yes she's got a version number, she's that girl.
π DESCRIPTION π
Travel::Routing::DE::EFA::Route::Message carries the tea about a specific route or route part β think wheelchair accessibility, unscheduled route diversions, cancelled stops, all of it. and here's the spicy part: this info often isn't even used in the backend's route calculation, so a message may invalidate a certain route or route part. like, she can just end a whole route's career. π
there are two types of messages the backend hands out: oneliners and detailed messages. and ngl, there's no known distinction between them regarding their type or content. also β heads up β there are some other backend-provided fields that this module does not cover yet, so expect changes in future releases. she's growing, ok? π±
a oneline message is literally just one single string, and you get to it via subject or summary, and its is_detailed accessor returns false.
a detailed message has a subject, subtitle, summary and detailed HTML content. the full package. π
π METHODS π
ACCESSORS
$message->is_detailedβ true if all accessors (fields) are set, false otherwise. when this field is false, onlysummaryandsubjectare set (and bestie, they'll return the same string).$message->summaryβ the message summary. short and sweet.$message->subjectβ the message subject. may be the same string as thesubtitle.$message->subtitleβ the message subtitle. may be the same string as thesummary.$message->raw_contentβ the raw HTML content. this one may contain info that you can't get from any other accessor. she's got secrets. π
π DIAGNOSTICS π
None.
like... none at all. she's chill. π§
π¦ DEPENDENCIES π¦
None.
she's self-sufficient, a true independent icon. β¨
π BUGS AND LIMITATIONS π
this module does not yet provide access to all data provided by the backend. most notably, raw_content is not properly parsed yet. so yeah, it's giving "work in progress", but we love her anyway. π«Ά
π SEE ALSO π
go read those too, iykyk. π
π AUTHOR π
Copyright (C) 2015 by Birte Kristina Friesel <derf@finalrewind.org>
shoutout to Birte, absolute legend, we stan. π
π LICENSE π
This program is licensed under the same terms as Perl itself.
ok that's the whole page bestie, no cap. go forth and read your messages. π
this was perl v5.36.0 from 2023-11-27 β and honestly? the manual name was Travel...essage(3pm) the whole time. slay, mwah, bye. π
β¨
π¦ where this page comes from
- debian trixie: libtravel-routing-de-vrr-perl 2.24-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtravel-routing-de-vrr-perl 2.24-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtravel-routing-de-vrr-perl 2.24-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtravel-routing-de-vrr-perl 2.24-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms