From 3255187b3aaf18dc1ce114e3b913f4aaf63fdf6e Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 22 Jun 2020 21:08:02 +0000
Subject: [PATCH] Remap tram number 312 to 316 (error in GTFS feed)
---
lib/TramTypes.php | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/lib/TramTypes.php b/lib/TramTypes.php
index 11b8044..e19f7ed 100644
--- a/lib/TramTypes.php
+++ b/lib/TramTypes.php
@@ -21,14 +21,16 @@
156 158 HW E1 0
159 159 RW E1 0
160 174 HW E1 0
-201 245 RZ 105N 0
+201 206 RZ 105N 0
+207 208 HZ 105N 0
+209 245 RZ 105N 0
246 299 HZ 105N 0
301 306 RF GT8S 0
307 309 RF GT8N 1
310 311 RF GT8C 1
312 312 RF GT8N 1
313 313 RF GT8C 1
-314 328 RF GT8N 1
+314 329 RF GT8N 1
401 440 HL EU8N 1
451 456 HK N8C-NF 1
457 461 HK N8S-NF 1
@@ -46,4 +48,11 @@
END;
parent::__construct($data);
}
+
+ public function getByNumber($id) {
+ if($id == 312) {
+ $id = 316;
+ }
+ return parent::getByNumber($id);
+ }
}
--
Gitblit v1.10.0