npm.io
2.0.3 • Published 4 years ago

vbb-station-photos

Licence
ISC
Version
2.0.3
Deps
0
Size
228 kB
Vulns
0
Weekly
0
Stars
9

vbb-station-photos

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

npm version build status ISC-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 = '900000017103' // 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.