From 5df8c3a2f084b709373de16b0ab67b64242b4ef5 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 7 Mar 2024 10:55:52 +0100 Subject: [PATCH] add VBB production system --- mapping.py | 5 ++++- node.json | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mapping.py b/mapping.py index a6dc056..370f123 100644 --- a/mapping.py +++ b/mapping.py @@ -3,11 +3,13 @@ COLOUR_MAPPING = { "rmv": MAPPING_RMV, + "vbb": MAPPING_VBB, "vbb-test": MAPPING_VBB, } API_MAPPING = { "rmv": "https://www.rmv.de/hapi/{endpoint}?id={stop}&duration={minutes}&format=json&accessId={key}", + "vbb": "https://fahrinfo.vbb.de/fahrinfo/restproxy/2.32/{endpoint}?id={stop}&duration={minutes}&format=json&accessId={key}", "vbb-test": "https://vbb.demo.hafas.de/fahrinfo/restproxy/2.32/{endpoint}?id={stop}&duration={minutes}&format=json&accessId={key}", } @@ -21,7 +23,7 @@ "5": "tram", "6": "bus", }, - "vbb-test": { + "vbb": { "0": "s_bahn", "1": "u_bahn", "2": "tram", @@ -30,6 +32,7 @@ "6": "low_speed_rail", }, } +CATEGORY_MAPPING["vbb-test"] = CATEGORY_MAPPING["vbb"] OPERATOR_LABEL_MAPPING = { "rmv": { diff --git a/node.json b/node.json index 4cc6dc4..37f4d9a 100644 --- a/node.json +++ b/node.json @@ -13,7 +13,8 @@ "type": "select", "default": "vbb-test", "options": [ - ["vbb-test", "VBB test (Verkehrsverbund Berlin-Brandenburg)"], + ["vbb", "VBB Produktivsystem (Verkehrsverbund Berlin-Brandenburg)"], + ["vbb-test", "VBB Testsystem (Verkehrsverbund Berlin-Brandenburg)"], ["rmv", "RMV (Rhein-Main-Verkehrsverbund)"] ] }, {