From 57971059390f3465f767ff9ff9a9291c9b9bcf95 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 28 Apr 2022 11:51:56 +0200 Subject: [PATCH] =?UTF-8?q?BVG:=20remove=20vbb-stations=20=F0=9F=92=A5?= =?UTF-8?q?=E2=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- p/bvg/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/p/bvg/index.js b/p/bvg/index.js index 87e7e90c..c40043e3 100644 --- a/p/bvg/index.js +++ b/p/bvg/index.js @@ -1,7 +1,6 @@ 'use strict' const shorten = require('vbb-short-station-name') -const getStations = require('vbb-stations') const {parseHook} = require('../../lib/profile-hooks') const parseAndAddLocationDHID = require('../vbb/parse-loc-dhid') @@ -44,10 +43,6 @@ const journeyLegOccupancyCodes = new Map([ const parseLocation = ({parsed}, l) => { if ((parsed.type === 'stop' || parsed.type === 'station') && parsed.id[0] === '9') { parsed.name = shorten(parsed.name) - if (!parsed.location.latitude || !parsed.location.longitude) { - const [s] = getStations(parsed.id) - if (s) Object.assign(parsed.location, s.location) - } } parseAndAddLocationDHID(parsed, l)