From 1927f9890664e043c43298373e82d93c446c1cef Mon Sep 17 00:00:00 2001 From: Traines Date: Fri, 14 Mar 2025 17:19:48 +0000 Subject: [PATCH] fix station enrichment --- parse/location.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/parse/location.js b/parse/location.js index 8fc167cf..66d8d702 100644 --- a/parse/location.js +++ b/parse/location.js @@ -7,7 +7,7 @@ const ADDRESS = 'ADR'; const leadingZeros = /^0+/; const parseLocation = (ctx, l) => { - const {profile, common} = ctx; + const {profile} = ctx; if (!l) { return null; @@ -53,16 +53,6 @@ const parseLocation = (ctx, l) => { return stop; } - if (name && common?.locations?.[name] && res.id === null) { - delete res.type; - delete res.id; - - return { - ...common.locations[name], - ...res, - }; - } - res.name = name; res = profile.enrichStation(ctx, res); @@ -87,6 +77,7 @@ const enrichStation = (ctx, stop, locations) => { ...rich, ...stop, }; + delete stop.lines; } return stop; };