Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.39 KB

readme.md

File metadata and controls

45 lines (29 loc) · 1.39 KB

vbb-station-photos

Photos of every subway station in Berlin. Thanks to ingolfbln and all the other people!

npm version CC0-licensed support me via GitHub Sponsors chat with me on Twitter

Installing

npm install vbb-station-photos

Usage

const photos = require('vbb-station-photos')

const station = 'de:11000:900017103' // U Gleisdreieck
const line = 'U1'

console.log(photos.original[station][line])
{
	label: 'https://c1.staticflickr.com/9/8315/7931788740_400098a074_o.jpg',
	platform: 'https://c1.staticflickr.com/9/8042/7931841660_923be9cfc6_o.jpg'
}

Available sizes are original, large, medium and small. You can also require only the urls of a particular image size:

const photos = require('vbb-station-photos/medium.json')

Contributing

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