mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
DB: stop.facilities.raw as non-enumerable property
This commit is contained in:
parent
240df85bf6
commit
322004bdcd
3 changed files with 3 additions and 21 deletions
|
@ -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)
|
||||||
|
|
20
test/fixtures/db-stop.js
vendored
20
test/fixtures/db-stop.js
vendored
|
@ -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
1
test/fixtures/hvv-stop.json
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue