VBB: only expand 9* stop IDs to 12 digits 🐛

This broke stop IDs like 8080560 (Halle Dessauer Brücke) before.
This commit is contained in:
Jannis R 2020-03-07 00:49:31 +01:00
parent 1b03b2eb0f
commit ff2b677812
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -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) {