DB: stop.facilities.raw as non-enumerable property

This commit is contained in:
Jannis R 2020-05-21 17:55:01 +02:00
parent 240df85bf6
commit 322004bdcd
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
3 changed files with 3 additions and 21 deletions

View file

@ -76,7 +76,8 @@ const parseAusstattungGrid = (g) => {
// filter duplicate hint rows // filter duplicate hint rows
const rows = uniqBy(g.rows, ([key, val]) => key + ':' + val) const rows = uniqBy(g.rows, ([key, val]) => key + ':' + val)
const res = {raw: rows} const res = {}
Object.defineProperty(res, 'raw', {value: rows})
for (let [key, val] of rows) { for (let [key, val] of rows) {
key = ausstattungKeys[slugg(key)] key = ausstattungKeys[slugg(key)]
if (key) res[key] = parseAusstattungVal(val) if (key) res[key] = parseAusstattungVal(val)

View file

@ -11,26 +11,6 @@ const facilities = {
stepFreeAccess: true, stepFreeAccess: true,
boardingAid: 'ja, um voranmeldung unter 01806 512 512* wird gebeten', boardingAid: 'ja, um voranmeldung unter 01806 512 512* wird gebeten',
taxis: true, taxis: true,
raw: [
['DB Information', '06:00 - 22:30'],
['3-S-Zentrale', '030/2971055'],
['Parkplätze', 'Ja'],
['Fahrrad-Stellplätze', 'Ja'],
['ÖPNV-Anbindung', 'Ja'],
['WC', 'Ja'],
['Schließfächer', 'Ja'],
['Reisebedarf', 'Nein'],
['Stufenfreier Zugang', 'Ja'],
[
'Ein-/ Umsteigehilfe',
'Ja, um Voranmeldung unter 01806 512 512* wird gebeten'
],
['Taxi am Bahnhof', 'Ja'],
[
'Hinweis',
'*20 ct/Anruf aus dem Festnetz, Tarif bei Mobilfunk max. 60 ct/Anruf, täglich von 6:00 bis 22:00 Uhr für Sie erreichbar.'
]
],
} }
const reisezentrumOpeningHours = { const reisezentrumOpeningHours = {

1
test/fixtures/hvv-stop.json vendored Normal file

File diff suppressed because one or more lines are too long