Skip to content

This repository collects German public transport line colors.

License

Notifications You must be signed in to change notification settings

jeyemwey/line-colors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Public transport line colors

This repository is made for collecting line colors in public transport lines, so they can be displayed on systems using DB HAFAS.

Structure

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 abbreviation
  • lineName: Displayed line name
  • hafasOperatorCode: 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 color
  • textColor: Color-Hexcode for the text color
  • rounded: Specifies whether the line icon has rounded ends or not

Contributing

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:

  • suburban lines / "S-Bahn"
  • subway lines / "U-Bahn"
  • tramway lines / "Straßenbahn, Stadtbahn"
  • bus lines / "Bus"

I'd be very happy if this file could expand very fast, so please feel free to add more lines by opening a PR.

BUT FIRST

  • Check that entries are sorted first by shortOperatorName and then lineName
  • Reference a source in your PR where data can be proved (somewhere from the internet, like a timetable PDF...)
    • Don't add it to sources.json, just mention it in your PR
  • All entries in the CSV (except lineName) shall be in lower case

Examples

Go-Ahead Bayern GmbH, RE72

RE72



  • shortOperatorName: gaby
  • lineName: RE72
  • hafasOperatorCode: go-ahead-bayern-gmbh
  • hafasLineId: re-72
  • backgroundColor: #ef7c00
  • textColor: #ffffff
  • rounded: false

Entry: gaby;RE72;go-ahead-bayern-gmbh;re-72;#ef7c00;#ffffff;false

DB Regio AG S-Bahn München, S7

S7



  • shortOperatorName: mvv-db-sbm
  • lineName: S7
  • hafasOperatorCode: db-regio-ag-s-bahn-munchen
  • hafasLineId: 4-800725-7
  • backgroundColor: #8a372f
  • textColor: #ffffff
  • rounded: true

Entry: mvv-db-sbm;S7;db-regio-ag-s-bahn-munchen;4-800725-7;#8a372f;#ffffff;true

About

This repository collects German public transport line colors.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published