vbb-station-shapes
Shapefiles for Berlin public transport stations, extracted from the cadastral map of Berlin. Because VBB/BVG don't provide them. 😠
Installing
npm install vbb-station-shapes
Usage
When called with a station ID (and optionally a product), vbb-station-shapes
returns a list of shape IDs for that station.
const shapes = const pathForShape = shapes const sWedding = '900000009104' const shapeIds =
pathForShape
then returns an absolute path to the GeoJSON shape file.
const path = shapesconsole
/Users/j/web/vbb-station-shapes/s/2798Fr.json
You may require
this file or load it in any other way.
const shape = console
type: 'MultiPolygon' coordinates: 13242004 52525428 13242044 52525483 13242046 52525488 13241935 52525522 13241822 52525555 13241709 52525588 13241595 5252562 1324148 5252565 13241365 5252568 13241249 52525709 13241132 52525736 13241015 52525763 13240897 52525789 13240778 52525814 13240659 52525837 1324054 5252586 13240537 52525856 13240496 52525795 13240494 52525791 13240659 52525746 13240825 52525703 13240991 52525661 13241158 52525619 13241325 52525578 13241494 52525538 13241662 52525499 13241831 52525461 13242001 52525424 13242004 52525428 product: 'subway'
Contributing
If you have a question or have difficulties using vbb-station-shapes
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.