https://github.com/derhuerst/vbb-entrances
Entrances for VBB stations.
https://github.com/derhuerst/vbb-entrances
berlin bvg transit transport vbb
Last synced: 8 months ago
JSON representation
Entrances for VBB stations.
- Host: GitHub
- URL: https://github.com/derhuerst/vbb-entrances
- Owner: derhuerst
- License: isc
- Created: 2016-06-14T02:06:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-01-10T17:08:55.000Z (over 6 years ago)
- Last Synced: 2025-09-27T04:10:30.748Z (9 months ago)
- Topics: berlin, bvg, transit, transport, vbb
- Language: JavaScript
- Homepage: https://github.com/derhuerst/vbb-entrances
- Size: 241 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# *vbb-entrances* ⏱
**Entrances for VBB stations**, computed from [open data](https://daten.berlin.de/datensaetze/koordinaten-der-zugangsmöglichkeiten-zu-stationen).
[](https://www.npmjs.com/package/vbb-entrances)
[](https://travis-ci.org/derhuerst/vbb-entrances)
[](https://david-dm.org/derhuerst/vbb-entrances)
[](https://david-dm.org/derhuerst/vbb-entrances#info=devDependencies)

[](https://gitter.im/derhuerst/vbb-rest)
[](https://patreon.com/derhuerst)
## Installing
```shell
npm install vbb-entrances
```
## Usage
```js
const entries = require('vbb-entrances')
const isAtOsloerStr = ({name}) => {
const n = name.toLowerCase()
return /osloer\s+str/i.test(n) && !/richtung\s+/i.test(n)
}
console.log(entries.filter(isAtOsloerStr))
```
```js
[
{
id: '301505002',
type: 'Zugang und ÖV',
name: 'Bushalt Drontheimer Straße hinter Osloer Straße',
level: 0,
latitude: 13.377096,
longitude: 52.556975
},
{
id: '300019003',
type: 'Zugang',
name: 'Zugang (Aufzug) Osloer Straße/Tram II/3',
level: 0,
latitude: 13.372951,
longitude: 52.556812
}
// …
]
```
Use [`vbb-translate-ids`](https://github.com/derhuerst/vbb-translate-ids) if you have new, long station IDs.
## Contributing
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-entrances/issues).
## License
The data is licensed [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/) *Verkerhsverbund Berlin-Brandenburg GmbH*.