From ff2b677812027773531b845c5b1290ca06d508f8 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sat, 7 Mar 2020 00:49:31 +0100 Subject: [PATCH] VBB: only expand 9* stop IDs to 12 digits :bug: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This broke stop IDs like 8080560 (Halle Dessauer Brücke) before. --- p/vbb/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p/vbb/index.js b/p/vbb/index.js index e426ff23..20c38f6d 100644 --- a/p/vbb/index.js +++ b/p/vbb/index.js @@ -37,7 +37,7 @@ const parseLineWithMoreDetails = ({parsed}, p) => { } const parseLocation = ({parsed}, l) => { - if (parsed.type === 'stop' || parsed.type === 'station') { + if ((parsed.type === 'stop' || parsed.type === 'station') && parsed.id[0] === '9') { parsed.name = shorten(parsed.name) parsed.id = to12Digit(parsed.id) if (!parsed.location.latitude || !parsed.location.longitude) {