mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-05-05 22:19:59 +03:00
minor changes & fixes
This commit is contained in:
parent
73c419fadb
commit
a10e9487bd
3 changed files with 1 additions and 4 deletions
|
@ -67,10 +67,8 @@ const insaProfile = {
|
||||||
locale: 'de-DE',
|
locale: 'de-DE',
|
||||||
timezone: 'Europe/Berlin',
|
timezone: 'Europe/Berlin',
|
||||||
endpoint: 'http://reiseauskunft.insa.de/bin/mgate.exe',
|
endpoint: 'http://reiseauskunft.insa.de/bin/mgate.exe',
|
||||||
products: products.allProducts,
|
|
||||||
transformReqBody,
|
transformReqBody,
|
||||||
|
|
||||||
defaultProducts,
|
|
||||||
parseProducts: createParseBitmask(products.allProducts, defaultProducts),
|
parseProducts: createParseBitmask(products.allProducts, defaultProducts),
|
||||||
formatProducts,
|
formatProducts,
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ HAFAS endpoint | wrapper library? | docs | example code | source code
|
||||||
[Deutsche Bahn](https://en.wikipedia.org/wiki/Deutsche_Bahn) | [`db-hafas`](https://github.com/derhuerst/db-hafas), which has additional features | [docs](p/db/readme.md) | [example code](p/db/example.js) | [src](p/db/index.js)
|
[Deutsche Bahn](https://en.wikipedia.org/wiki/Deutsche_Bahn) | [`db-hafas`](https://github.com/derhuerst/db-hafas), which has additional features | [docs](p/db/readme.md) | [example code](p/db/example.js) | [src](p/db/index.js)
|
||||||
[Berlin & Brandenburg public transport](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg) | [`vbb-hafas`](https://github.com/derhuerst/vbb-hafas), which has additional features | [docs](p/vbb/readme.md) | [example code](p/vbb/example.js) | [src](p/vbb/index.js)
|
[Berlin & Brandenburg public transport](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg) | [`vbb-hafas`](https://github.com/derhuerst/vbb-hafas), which has additional features | [docs](p/vbb/readme.md) | [example code](p/vbb/example.js) | [src](p/vbb/index.js)
|
||||||
[Österreichische Bundesbahnen (ÖBB)](https://en.wikipedia.org/wiki/Austrian_Federal_Railways) | – | [docs](p/oebb/readme.md) | [example code](p/oebb/example.js) | [src](p/oebb/index.js)
|
[Österreichische Bundesbahnen (ÖBB)](https://en.wikipedia.org/wiki/Austrian_Federal_Railways) | – | [docs](p/oebb/readme.md) | [example code](p/oebb/example.js) | [src](p/oebb/index.js)
|
||||||
|
[Nahverkehr Sachsen-Anhalt (NASA)](https://de.wikipedia.org/wiki/Nahverkehrsservice_Sachsen-Anhalt)/[INSA](https://insa.de) | – | [docs](p/insa/readme.md) | [example code](p/insa/example.js) | [src](p/insa/index.js)
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/hafas-client)
|
[](https://www.npmjs.com/package/hafas-client)
|
||||||
[](https://travis-ci.org/derhuerst/hafas-client)
|
[](https://travis-ci.org/derhuerst/hafas-client)
|
||||||
|
|
|
@ -24,7 +24,6 @@ const {
|
||||||
const when = createWhen('Europe/Berlin', 'de-DE')
|
const when = createWhen('Europe/Berlin', 'de-DE')
|
||||||
|
|
||||||
const assertValidStationProducts = (t, p) => {
|
const assertValidStationProducts = (t, p) => {
|
||||||
return null; // todo
|
|
||||||
t.ok(p)
|
t.ok(p)
|
||||||
t.equal(typeof p.nationalExp, 'boolean')
|
t.equal(typeof p.nationalExp, 'boolean')
|
||||||
t.equal(typeof p.national, 'boolean')
|
t.equal(typeof p.national, 'boolean')
|
||||||
|
@ -32,7 +31,6 @@ const assertValidStationProducts = (t, p) => {
|
||||||
t.equal(typeof p.suburban, 'boolean')
|
t.equal(typeof p.suburban, 'boolean')
|
||||||
t.equal(typeof p.tram, 'boolean')
|
t.equal(typeof p.tram, 'boolean')
|
||||||
t.equal(typeof p.bus, 'boolean')
|
t.equal(typeof p.bus, 'boolean')
|
||||||
// console.error(p); // todo
|
|
||||||
t.equal(typeof p.tourismTrain, 'boolean')
|
t.equal(typeof p.tourismTrain, 'boolean')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue