vbb-entrances

0.2.1 • Public • Published

vbb-entrances

Entrances for VBB stations, computed from open data.

npm version build status dependency status dev dependency status ISC-licensed gitter channel support me on Patreon

Installing

npm install vbb-entrances

Usage

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))
[
    {
        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 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.

License

The data is licensed CC-BY 4.0 Verkerhsverbund Berlin-Brandenburg GmbH.

Readme

Keywords

Package Sidebar

Install

npm i vbb-entrances

Weekly Downloads

0

Version

0.2.1

License

ISC

Unpacked Size

3.14 MB

Total Files

4

Last publish

Collaborators

  • derhuerst