Skip to content

Commit

Permalink
add VBB production system
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Mar 7, 2024
1 parent 6fb59a4 commit 5df8c3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
}

Expand All @@ -21,7 +23,7 @@
"5": "tram",
"6": "bus",
},
"vbb-test": {
"vbb": {
"0": "s_bahn",
"1": "u_bahn",
"2": "tram",
Expand All @@ -30,6 +32,7 @@
"6": "low_speed_rail",
},
}
CATEGORY_MAPPING["vbb-test"] = CATEGORY_MAPPING["vbb"]

OPERATOR_LABEL_MAPPING = {
"rmv": {
Expand Down
3 changes: 2 additions & 1 deletion node.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)"]
]
}, {
Expand Down

0 comments on commit 5df8c3a

Please sign in to comment.