This repository is made for collecting line colors in public transport lines, so they can be displayed on systems using DB HAFAS.
The line-colors.csv
contains several columns:
shortOperatorName
: Short operator name (i.e. vehicle keeper marking/"Halterkürzel" or another identifier for EVU) and a local transport network abbreviationlineName
: Displayed line namehafasOperatorCode
: used to identify the correct line, if line id is not distinct. Can be empty!hafasLineId
: identifies the HAFAS line - you can get this by requesting a departure for the line from HAFAS (i.e. using db-rest playground)backgroundColor
: Color-Hexcode for the display background colortextColor
: Color-Hexcode for the text colorshape
: Specifies the shape of the icon --> see examples below
rectangle
: Just a rectanglepill
: Rectangle with completely rounded cornersrectangle-rounded-corner
: Rectangle with rounded cornerstrapezoid
hexagon
(not yet supported)wikidataQid
: Wikidata QID for the line (if available, can be empty)If a line operates in a local transport network/"Verkehrsverbund", the network's line color shall be preferred.
Local transport networks usually have line colors for:
If a single line operates in multiple transport networks, the color communicated by the operator shall be preferred.
I'd be very happy if this file could expand very fast, so please feel free to add more lines by opening a PR.
Please keep the PR's small. If possible, create a small PR for each operator.
BUT FIRST
shortOperatorName
and then lineName
sources.json
.lineName
) shall be in lower caseTHEN
main
branch and create a new branch from thereoptionally but recommended: Wikidata (why?)
wikidataQid
column
shortOperatorName
: gabylineName
: RE72hafasOperatorCode
: go-ahead-bayern-gmbhhafasLineId
: re-72backgroundColor
: #ef7c00textColor
: #ffffffshape
: rectangleEntry: gaby,RE72,go-ahead-bayern-gmbh,re-72,#ef7c00,#ffffff,rectangle
shortOperatorName
: mvv-db-sbmlineName
: S7hafasOperatorCode
: db-regio-ag-s-bahn-munchenhafasLineId
: 4-800725-7backgroundColor
: #8a372ftextColor
: #ffffffshape
: pillEntry: mvv-db-sbm,S7,db-regio-ag-s-bahn-munchen,4-800725-7,#8a372f,#ffffff,pill
shortOperatorName
: kvv-avglineName
: S1hafasOperatorCode
: albtal-verkehrs-gesellschaft-mbhhafasLineId
: 4-a6s8-8backgroundColor
: #6e692atextColor
: #ffffffshape
: rectangle-rounded-corner (a pill with less rounded corners)