Skip to content

derhuerst/vbb-entrances

Repository files navigation

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.