vbb-disruptions
Version:
Disruptions in VBB public transport.
56 lines (43 loc) • 1.87 kB
Markdown
**Scrapes disruptions in VBB public transport** from the [S-Bahn Berlin website](http://mobil.s-bahn-berlin.de/constructions/overview) and the [BVG website](http://www.bvg.de/de/Fahrinfo/Verkehrsmeldungen).
[](https://www.npmjs.com/package/vbb-disruptions)
[](https://travis-ci.org/derhuerst/vbb-disruptions)
[](https://david-dm.org/derhuerst/vbb-disruptions)
[](https://david-dm.org/derhuerst/vbb-disruptions#info=devDependencies)

[](https://gitter.im/derhuerst/vbb-rest)
```shell
npm install vbb-disruptions
```
```js
const disruptions = require('vbb-disruptions')
disruptions().then(console.log)
```
```js
[
{
where: 'Wannsee - Potsdam Hbf',
lines: [ 'S7' ],
when: 'vom 6.5. (Fr), ca. 4 Uhr durchgehend bis 6.6. (Mo), ca. 1.30 Uhr',
description: 'Zugverkehr nur im 20-Minutentakt'
},
// …
{
lines: [ 'U7' ],
when: 'von 16.05.2016 22:00\nbis 03.06.2016 03:30',
description: 'Sperrung wegen Bauarbeiten der BVG',
where: 'U Hermannplatz ⇄ U Rudow'
},
// …
{
lines: [ 'N67' ],
when: 'von 27.05.2015 05:00\nbis auf Weiteres',
description: 'Sperrung wegen Bauarbeiten der DB',
where: 'S Schöneweide/Sterndamm ⇄ S Schöneweide'
}
]
```
If you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/vbb-disruptions/issues).