Home

Awesome

vbb-platform-patterns

Crowd sourced database of VBB station platform wall (tile) color patterns.

You're invited to help, see the data structure and contributing sections!

npm version Build Status Greenkeeper badge dependency status dev dependency status License: ODbL chat on gitter

Installation and Usage

If you're using JavaScript, you can use the module by installing:

npm install vbb-platform-patterns

If you call the function exported by the module, it will return a stream that emits objects which look like this:

{
    station: {
        id: "900000079202",
        name: "U Boddinstr."
    },
    lines: ["U8"],
    colors: [
        "silver",
        "blue"
    ],
    image: {
        source: "flickr",
        id: 15018334836,
        user: "ingolfbln"
    }
}

Data structure

The dataset is located in data.ndjson, a ndjson file which you can edit using a text editor or vbb-platform-patterns-cli.

Let's take U Boddinstraße as an example: The dataset row would then contain the following information:

key namedescriptionrequiredexample
stationStation. Object containing the keys below.yes{"id":"900000079202","name":"U Boddinstr."}
station.idStation ID*yes900000079202
station.nameStation name (only for readability of the dataset)noU Boddinstr.
linesLines that stop at the platform you're describing.yes["U8"]
previousStationPrevious station on the line. Only set this if there is different patterns on the platforms depending on where you're coming from (like at U Bundesplatz). See also nextStationnonull
previousStation.idPrevious station ID*(yes)-
previousStation.namePrevious station name (only for readability of the dataset)no-
nextStationNext station on the line. Only set this if there is different patterns on the platforms depending on where you're coming from (like at U Bundesplatz). See also previousStationnonull
nextStation.idNext station ID*(yes)-
nextStation.nameNext station name (only for readability of the dataset)no-
colorsColor(s) of the tile pattern. See the colors section for a list of valid values.yes["silver", "blue"]
imageCC-licensed image of the wall pattern. Can contain the station sign. Object describing either a {source: 'flickr', user: 'FLICKR_USER', id: 'FLICKR_IMAGE_ID'} (flickr) or {source: 'commons', id: 'Filename.jpg'} (wikimedia commons) image imageno{"source":"flickr","id":15018334836,"user":"ingolfbln"}

* See this document if you don't know how to find out some station's VBB station ID

Finally, our example would give us the following data row for the NDJSON file:

{"station":{"id":"900000079202","name":"U Boddinstr."},"lines":["U8"],"colors":["silver","blue"],"image":{"source":"flickr","id":15018334836,"user":"ingolfbln"}}

Colors

Valid color values are all 17 CSS2 color names you can find here (black -> orange).

Contributing

If you want to add information to the dataset, fork this repository, add information and finally submit a pull request. If you don't know how any of this works, you can also just open an issue with the information you want to add in text form and I'll add it to the dataset for you. The same applies if you have found an error or want to change anything about the data structure.

Please note that by contributing to this project, you waive any copyright claims on the information you add.

License

This dataset is licensed under the ODbL license (v1.0).