vbb-osm-relations

VBB lines and their OSM relations.

Usage no npm install needed!

<script type="module">
  import vbbOsmRelations from 'https://cdn.skypack.dev/vbb-osm-relations';
</script>

README

vbb-osm-relations

VBB lines, platforms and station entrances and their OSM relations.

Almost all VBB infrastructure is mapped in OSM, but the individual elements are not always tagged with the station they belong to. This module contains those that can be matched with VBB stations without ambiguity, either by distance or by similar names.

The intended future state is that all lines, platforms and entrances are tagged with proper, machine-readable VBB IDs. Right now, this is a brittle hack to still make use of the data.

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

Installing

npm install vbb-osm-relations

Usage

Each value is an OSM element ID:

const lines = require('vbb-osm-relations/lines')
lines.U7 // 58425

const platforms = require('vbb-osm-relations/platforms.json')
platforms['900000056104'] // U Bülowstr.
// [ 391385382, 391385383 ]

const entrances = require('vbb-osm-relations/entrances.json')
entrances['900000130011'] // U Vinetastr.
// [ 2714518751, 2714518752, 2714518753, 2714518755, 2714518758, 2714518760 ]

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.