summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-28 17:27:11 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-28 17:27:11 +0200
commit03fe2757f36618737a557bd7b4cfdfe3dd367829 (patch)
treef2307f4e5ded42880b682d9fbef0fa1ef9b81e9f /lib/Travelynx.pm
parent5192d997ded949df5fd81ff40f9a193ba806dc3b (diff)
Replace ice_names.json with Travel::Status::DE::DBWagenreihung built-in list
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 6ee21b3..846e865 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -181,8 +181,10 @@ sub startup {
# via https://github.com/marudor/bahn.expert/blob/main/src/server/coachSequence/TrainNames.ts
$self->attr(
ice_name => sub {
- my $id_to_name = JSON->new->utf8->decode(
- scalar read_file('share/ice_names.json') );
+ state $id_to_name = {
+ Travel::Status::DE::DBWagenreihung::Group::name_to_designation(
+ )
+ };
return $id_to_name;
}
);