Skip to content

Commit 6667480

Browse files
committed
bg: Script for BDZ trip display names
1 parent fb44366 commit 6667480

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

feeds/bg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
"name": "bdz",
8383
"type": "http",
8484
"url": "https://gtfs.livetransport.eu/gtfs/bdz.zip",
85+
"script": "bg-bdz.lua",
8586
"license": {
8687
"spdx-identifier": "CC0-1.0"
8788
}

scripts/bg-bdz.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- SPDX-FileCopyrightText: Transitous Contributors
2+
-- SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
function process_trip(trip)
5+
trip:set_display_name(trip:get_route():get_short_name() .. " " .. trip:get_short_name())
6+
end

0 commit comments

Comments
 (0)