GithubHelp home page GithubHelp logo

einbambi / line-colors Goto Github PK

View Code? Open in Web Editor NEW

This project forked from traewelling/line-colors

0.0 0.0 0.0 2.61 MB

This repository collects German public transport line colors.

Home Page: https://traewelling.github.io/line-colors/

License: Creative Commons Zero v1.0 Universal

JavaScript 5.43% PHP 12.59% CSS 81.97%

line-colors's Introduction

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
  • shape: Specifies the shape of the icon --> see examples below
    • rectangle: Just a rectangle
    • pill: Rectangle with rounded corners
    • trapezoid
    • hexagon

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"

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.

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
  • shape: rectangle

Entry: gaby,RE72,go-ahead-bayern-gmbh,re-72,#ef7c00,#ffffff,rectangle

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
  • shape: pill

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

KVV: Albtal-Verkehrs-Gesellschaft mbH

S1


  • shortOperatorName: kvv-avg
  • lineName: S1
  • hafasOperatorCode: albtal-verkehrs-gesellschaft-mbh
  • hafasLineId: 4-a6s8-8
  • backgroundColor: #6e692a
  • textColor: #ffffff
  • shape: rectangle-rounded-corner (a pill with less rounded corners)

Other shapes:

Trapezoid

64

Hexagon

112

line-colors's People

Contributors

jheubuch avatar jeyemwey avatar mrkriskrisu avatar unterwerk avatar asraelvudogel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.