Repo hosting vehicle line colors used by public transport operators in Switzerland
HTML Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
inc
README.md
agency_colors.yml
generate_html.rb
index.html

README.md

Swiss Transit Colors

TL;DR http://vasile.github.io/swiss-transit-colors/

This repo contains the vehicle route colors used by public transport operators in Switzerland. It's useful for public transport apps which deal with vehicle lines and their associated colors.

The config file covers only a bit of all swiss public transport operators for which I used manual color pickers to get the right colors. Contributions are welcome!

Examples from Swiss Transit App stations lookup

Aarau Lausanne Oerlikon Lugano

Colors overview: http://vasile.github.io/swiss-transit-colors/

Usage

Grab the config agency_colors.yml and start using in your project. Contributions back and pull requests are welcome!

If you operate changes to the file and you want to visualize them, run the following Ruby script

$ ruby /path-to/swiss-transit-colors/generate_html.rb

Example of output: http://vasile.github.io/swiss-transit-colors/

Contact

If you have additional questions you can use this form to contact me or just ping me on Twitter