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

follow-up of ff2b6778
This commit is contained in:
Jannis R 2022-02-23 17:14:33 +01:00
parent 119d291d10
commit f8ca2d5d17
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -57,7 +57,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) {