README
mdv-lines
List of MDV (Mitteldeutscher Verkehrsverbund) lines, including line colors.
Installation
npm install --save mdv-lines
Usage
const lines = require('mdv-lines')
console.log(lines)
Gives you an array of line objects which looks as follows:
[
{
"name": "10",
"operator": "HAVAG", // please note that this is not necessarily a real operator, e.g. some lines are 'operated' by "VBB"
"easygoId": 114,
"color": "#336633", // can be null
"mode": "train",
"subMode": "tram"
},
{
"name": "35",
"operator": "HAVAG",
"easygoId": 112,
"color": "#0066CC",
"mode": "bus",
"subMode": "bus"
}
// …
]
Contributing
If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.