mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
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:
parent
1b03b2eb0f
commit
ff2b677812
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue