Giter VIP home page Giter VIP logo

rmg-palette's Introduction

RMG Palette

This repository contains

  • city-config.json, a list of cities sorted by their English name in alphabetical order; and
  • [city].json, a list of colours used in the city's public transportation system.

Please follow the rules below to

  • Add colour standards for more cities;
  • Update colours; or
  • Add translations for cities or lines.

A typical example of an entry of city-config.json:

{
  "id": "sanfrancisco",
  // Same as the filename of colour list file
  "country": "US",
  // ISO 3166-1 alpha-2 code (for cities in Britain, append BS 6879 code)
  "name": {
    "en": "San Francisco",
    "zh-Hans": "旧金山",
    "zh-Hant": "三藩市"
    // Merge country variants if applicable
  }
}

A typical example of an entry of guangzhou.json:

{
  "id": "gz3",
  "name": {
    "en": "Line 3",
    "zh-Hans": "3号线",
    "zh-Hant": "3號線"
  },
  "colour": "#ECA154",
  "fg": "#000"
  // Optional if foreground colour is white
}

Reference

City Reference
Baku Wikipedia, Official website
Barcelona All colours, except R8
Budapest Wikipedia, Official website
Bucharest Wikipedia, Official website
Cairo Wikipedia, Official website
Changsha 【持续更新】【小玩具】铁路线路图生成器综合讨论帖-站前广场-地铁族
Chengdu 2018.01.05 《成都市城市轨道交通线网导向系统设计导则》(报批稿) - 百度文库
Daegu Wikipedia, Official website
Dalian Wikipedia, Official website
Delhi Wikipedia, Official website
Dortmund Wikipedia, Official website
Edinburgh Lothian City Buses - Lothian Buses
Eskişehir Wikipedia, Official website
Foshan Template:佛山地铁颜色 - 维基百科,自由的百科全书
Guangzhou 不知道有没有火星。。-广 州 区-地铁族, Wikipedia
Hangzhou 【持续更新】【小玩具】铁路线路图生成器综合讨论帖-站前广场-地铁族
Harbin Wikipedia, Official website, Data Source
Istanbul Wikipedia, Official website
Kansai JR West (Kansai area)
Klang Valley Wikipedia, Official website
Lisbon Wikipedia, Official website
London Colour standards - Transport for London
Madrid Metro and Light Rail except ML4, Cercanías and ML4
Nanjing Template:南京地铁颜色 - 维基百科,自由的百科全书
Osaka Osaka Metro
Oslo Ruter
Paris Map of the metro, RER, bus and tramway lines RATP
Qingdao 青岛地铁 - 维基百科,自由的百科全书
Saint Petersburg Wikipedia, Official website
Santiago Wikipedia, Official website
SaoPaulo 申请提交圣保罗颜色, 圣保罗地铁官方网址, 圣保罗都市圈铁道官方网址, 圣保罗地铁6号线(工程官方网址)
Shanghai 《上海轨道交通网络近期规划建设线路标志色方案》征求市民意见公告 - 上海地铁, 模块:RailSystems/SHMetro - 维基百科,自由的百科全书
Shenzhen 道路交通管理设施设置技术标准 第 5 部分: 交通枢纽客运服务标志(征求意见稿)
Template:深圳地铁颜色 - 维基百科,自由的百科全书
Singapore LTA
Stockholm SL
Suzhou Wikipedia, Official website
Tehran Wikipedia, Official website
Tianjin Template:天津轨道交通颜色 - 维基百科,自由的百科全书
Toronto Signage Manual and Standards - Toronto Transit Commission
Tyne and Wear Nexus
Vienna Wikipedia, Official website
Wuxi Wikipedia, Official website
Xiamen Wikipedia, Official website
Xian Line 1-6, 9, Line 14, Line 8, 11
Zhengzhou Wikipedia, Official website
Shenyang Wikipedia, Official website

Notes

  • Hexachrome Green C for Line 4 of Chengdu not found.
  • 267C for Line 3 of Changsha is incorrect.

rmg-palette's People

Contributors

203ihzelttil avatar 28yfang avatar aaronyz2007 avatar axl099 avatar bluecatskf avatar charlis-wong avatar coxine avatar dqb061204 avatar github-actions[bot] avatar hatsunemikuzd avatar huqiuan avatar hzr061534 avatar jealousyge avatar jimmilily avatar linchen1965 avatar littleling03 avatar lysliuyisi avatar minwtraft avatar pokoslanx avatar polygon827 avatar redleaf007 avatar swiftiecott avatar t-chai avatar thekingofcity avatar topiours avatar tpcpp avatar vicemoter0062 avatar windows-taskmgr avatar wongchito avatar xianninglustation avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rmg-palette's Issues

*Vandalism Content*

(Input anything you want here)

Do not edit lines below, they are meant for bots only!!!

{ "id": "minecraft", "country": "MC", "name": { "en": "Minecraft" } }
[ { "id": "mc1", "colour": "#3f48cc", "fg": "#fff", "name": { "en": "Line 1" } }, { "id": "mc2", "colour": "#ed1c24", "fg": "#fff", "name": { "en": "Line 2" } }, { "id": "mc3", "colour": "#22b14c", "fg": "#fff", "name": { "en": "Line 3" } }, { "id": "mc4", "colour": "#fff200", "fg": "#000", "name": { "en": "Line 4" } }, { "id": "mc5", "colour": "#ffc90e", "fg": "#fff", "name": { "en": "Line 5" } }, { "id": "mc6", "colour": "#a349a4", "fg": "#fff", "name": { "en": "Line 6" } }, { "id": "mc7", "colour": "#99d9ea", "fg": "#fff", "name": { "en": "Line 7" } }, { "id": "mc8", "colour": "#b5e61d", "fg": "#fff", "name": { "en": "Line 8" } }, { "id": "mc9", "colour": "#ffaec9", "fg": "#000", "name": { "en": "Line 9" } }, { "id": "kzl", "colour": "#7f7f7f", "fg": "#fff", "name": { "en": "Kaizhou Line" } }, { "id": "ae", "colour": "#000000", "fg": "#fff", "name": { "en": "Airport Express" } } ]

test pr bot

Hi, I would like to contribute to the palette with data generated by railmapgen.github.io/rmg-palette.

Do not edit lines below, they are meant for bots only!!!

{ "id": "dongguan", "country": "CN", "name": { "en": "Dongguan", "zh-Hans": "东莞", "zh-Hant": "東莞" } }
[ { "id": "r1", "name": { "en": "Line 1", "zh-Hans": "1号线", "zh-Hant": "1號線" }, "colour": "#034EA2" }, { "id": "r2", "name": { "en": "Line 2", "zh-Hans": "2号线", "zh-Hant": "2號線" }, "colour": "#ED1C24" }, { "id": "r3", "name": { "en": "Line 3", "zh-Hans": "3号线", "zh-Hant": "3號線" }, "colour": "#FAA61A" }, { "id": "r4", "name": { "en": "Line 4", "zh-Hans": "4号线", "zh-Hant": "4號線" }, "colour": "#00AB4E" } ]

*Vandalism Content*

(Input anything you want here)

Do not edit lines below, they are meant for bots only!!!

{ "id": "minecraft", "country": "MC", "name": { "en": "Minecraft" } }
[ { "id": "mc1", "colour": "#3f48cc", "fg": "#fff", "name": { "en": "Line 1" } }, { "id": "mc2", "colour": "#ed1c24", "fg": "#fff", "name": { "en": "Line 2" } }, { "id": "mc3", "colour": "#22b14c", "fg": "#fff", "name": { "en": "Line 3" } }, { "id": "mc4", "colour": "#fff200", "fg": "#000", "name": { "en": "Line 4" } }, { "id": "mc5", "colour": "#ffc90e", "fg": "#fff", "name": { "en": "Line 5" } }, { "id": "mc6", "colour": "#a349a4", "fg": "#fff", "name": { "en": "Line 6" } }, { "id": "mc7", "colour": "#99d9ea", "fg": "#fff", "name": { "en": "Line 7" } }, { "id": "mc8", "colour": "#b5e61d", "fg": "#fff", "name": { "en": "Line 8" } }, { "id": "mc9", "colour": "#ffaec9", "fg": "#000", "name": { "en": "Line 9" } }, { "id": "kzl", "colour": "#7f7f7f", "fg": "#fff", "name": { "en": "Kaizhou Line" } }, { "id": "ae", "colour": "#000000", "fg": "#fff", "name": { "en": "Airport Express" } } ]

Add package builder

Generate .ts from .json while maintaing the type info.

Involves some hardcoded code, but I'm feeling ok as this is a rather small and steady project.

*Vandalism Content*

Hi RMG team! I would like to contribute the palettes below.

Do not edit lines below, they are meant for bots only!!!

Enter new palettes data and follow instruction in https://railmapgen.github.io/rmg-palette/new

(Input anything you want here)

Do not edit lines below, they are meant for bots only!!!

{ "id": "", "country": "", "name": { "en": "" } }
[ { "id": "", "colour": "#aaaaaa", "fg": "#fff", "name": { "en": "" } } ]

Adding new fields in `PaletteEntry`

Current PaletteEntry is lacking some features like:

  • express and direct colors for Shanghai Metro line 16
  • pass color for Shanghai Metro line pujiang railmapgen/rmg#161
  • Image pattern for Chongqing Rail Transit line 3

To add these colors as extensions, PaletteEntry's fields need to be enlarged.

_Originally posted by @thekingofcity in wongchito/RailMapGenerator#162

Adding new fields in `PaletteEntry`

Current PaletteEntry is lacking some features like:

  • express and direct colors for Shanghai Metro line 16
  • pass color for Shanghai Metro line pujiang railmapgen/rmg#161
  • Image pattern for Chongqing Rail Transit line 3

To add these colors as extensions, PaletteEntry's fields need to be enlarged.

*Vandalism Content*

(Input anything you want here)

Do not edit lines below, they are meant for bots only!!!

{ "id": "", "country": "", "name": { "zh": "shanghai" } }
[ { "id": "", "colour": "#aaaaaa", "fg": "#fff", "name": { "en": "" } } ]

"Supplement 1" of Changsha Metro Color palette should be renamed as "Maglev Line"

http://www.hncsmtr.com/attachment/201789/15022650755656559.jpg
This picture of Changsha Metro official site (published in 2017, shows old planning) shows the color of "Maglev Line". It uses the current "Supplement 1" color of Changsha Metro Color palette, which published in 2010. The Maglev Line opened in 2016 and use the pink color of "Supplement 1".
As the new planning of Changsha Metro shows, it'll be 14 metro lines and the Maglev Line in the network. So the "Supplement 2" must belongs to Line 13. And Line 14 will have a unpublished new color.

*Vandalism Content*

{ "id": "minecraft", "country": "MC", "name": { "en": "Minecraft" } }
[ { "id": "mc1", "colour": "#3f48cc", "fg": "#fff", "name": { "en": "Line 1" } }, { "id": "mc2", "colour": "#ed1c24", "fg": "#fff", "name": { "en": "Line 2" } }, { "id": "mc3", "colour": "#22b14c", "fg": "#fff", "name": { "en": "Line 3" } }, { "id": "mc4", "colour": "#fff200", "fg": "#000", "name": { "en": "Line 4" } }, { "id": "mc5", "colour": "#ffc90e", "fg": "#fff", "name": { "en": "Line 5" } }, { "id": "mc6", "colour": "#a349a4", "fg": "#fff", "name": { "en": "Line 6" } }, { "id": "mc7", "colour": "#99d9ea", "fg": "#fff", "name": { "en": "Line 7" } }, { "id": "mc8", "colour": "#b5e61d", "fg": "#fff", "name": { "en": "Line 8" } }, { "id": "mc9", "colour": "#ffaec9", "fg": "#000", "name": { "en": "Line 9" } }, { "id": "kzl", "colour": "#7f7f7f", "fg": "#fff", "name": { "en": "Kaizhou Line" } }, { "id": "ae", "colour": "#000000", "fg": "#fff", "name": { "en": "Airport Express" } } ]

Submission flow of palettes

A typical workflow of submission:

  • Contributors prepare data in the github.io front end #54 #81
  • Contributors open an issue with text generated from the front end (No issue involves)
  • The RMG bot creates a pull request from the text #40
  • Tests are triggered by GitHub actions to make sure JSONs are valid #3
  • Collaborators merge the pull request (No issue involves)
  • Builds are triggered by GitHub actions #4
  • Update the npm packages

Tests are used to make sure new jsons comply with types.

Builds will create ts packages from the jsons.

Update Shenzhen line 14,16,20

Official Website: htps://www.szmc.net/map/
Line color of Shenzhen metro Line 20 was changed. The color code of line 20 should be 9CD0CB.
For line 14 and line 16. The line color codes should be F2C75C and 1E22AA (data from Wikipedia)

Originally posted by @linchen1965 in railmapgen/rmg#250

*Vandalism Content*

(Input anything you want here)

Do not edit lines below, they are meant for bots only!!!

{ "id": "Xiamen", "country": "CN", "name": {} }
[ { "id": "Line1", "colour": "#ed751e", "fg": "#fff", "name": {} }, { "id": "Line2", "colour": "#4bb134", "fg": "#fff", "name": {} }, { "id": "Line3", "colour": "#0c88de", "fg": "#fff", "name": {} }, { "id": "Line4(old)", "colour": "#051db1", "fg": "#fff", "name": {} }, { "id": "Line4(new)", "colour": "#d81c1a", "fg": "#fff", "name": {} }, { "id": "Line6", "colour": "#892160", "fg": "#fff", "name": {} } ]

【线路颜色】渥太华轻轨线路颜色

Ottawa O-Train Color Palette.txt

关于里面没开通的3/4号线,既然之前之前@wongchito 在##44 说过未开通线路的颜色还是会照样加入颜色库中的,这里我就连着这两条线的颜色一起写进去了

至于这次由于渥太华轻轨的线路目前状况比较混乱(2001年开通的延龄草线(现2号线)自从2020年关闭扩能改造后基本相当于把原有线路拆了重建(到现在还没建好),这里我就算成未开通线路了。再加上3、4号线同样未开通,事实上现在正在运营的只有2019年开通的1号线),我就不打算写线路模版了

关于南京地铁颜色数据来源的问题

看了一下关于现有的几个城市标志色的讨论,我自己又去南京地铁的官网地图上面取了一下色号,发现很多色号其实和现有模板是有或多或少的出入的(除了S6)。
1号线:029FE1
2号线:C8003F
3号线:01944D
4号线:796DAF
10号线:E9C384
S1号线:45BDB4
S3号线:B985AB
S6号线:C98BDB
S7号线:E99A96
S8号线:ECA054
S9号线:F9BE58(图例)/F9A103(线网)
其中比较离谱的是S9,在官网上面的地图上竟然出现了两种差别能够肉眼分辨的颜色,一个出现在图例当中,一个出现在线网当中。但是实际应用在车站和车厢里面的地图又不存在这么明显的色差。
有趣的是,我们绘图圈有人去给南京地铁写邮件询问现有和在建线路的色号,除了S6号线之外,其他得到的答复的颜色和官网的图上面的颜色依然存在出入。
1号线:009ACE
2号线:A6093D
3号线:009A44
4号线:7D55C7
5号线:FDDA24
6/S1号线:00B2A9
7号线:4A7729
9号线:FA4616
10号线:B9975B
11号线:EF426F
S3号线:B06096
S6号线:C98BDB
S7号线:E89CAE
S8号线:EA7600
S9号线:F1B434
除了2号线、10号线以及S8、S9这几条线路差别较大之外,其他几条其实色号相差并不大,但是在实际装修当中又完全是另外一回事了。官网地图和答复当中色号完全一样的S6号线在实际装修当中却是色差最大的一条线,而2号线、10号线的实际装修颜色又比官方给出的答复的颜色要偏亮一些。
不过,上面这些数据全部可以说是“出自官方”了,但是选用哪一个还得看 @thekingofcity 怎么打算了。
另外,在对待标志色这方面,不同城市的态度确实是很不一样的。所以在添加的时候或许应该考虑到这一点。

*Vandalism Content*

(Input anything you want here)

Do not edit lines below, they are meant for bots only!!!

{ "id": "minecraft", "country": "MC", "name": { "en": "Minecraft" } }
[ { "id": "mc1", "colour": "#3f48cc", "fg": "#fff", "name": { "en": "Line 1" } }, { "id": "mc2", "colour": "#ed1c24", "fg": "#fff", "name": { "en": "Line 2" } }, { "id": "mc3", "colour": "#22b14c", "fg": "#fff", "name": { "en": "Line 3" } }, { "id": "mc4", "colour": "#fff200", "fg": "#000", "name": { "en": "Line 4" } }, { "id": "mc5", "colour": "#ffc90e", "fg": "#fff", "name": { "en": "Line 5" } }, { "id": "mc6", "colour": "#a349a4", "fg": "#fff", "name": { "en": "Line 6" } }, { "id": "mc7", "colour": "#99d9ea", "fg": "#fff", "name": { "en": "Line 7" } }, { "id": "mc8", "colour": "#b5e61d", "fg": "#fff", "name": { "en": "Line 8" } }, { "id": "mc9", "colour": "#ffaec9", "fg": "#000", "name": { "en": "Line 9" } }, { "id": "kzl", "colour": "#7f7f7f", "fg": "#fff", "name": { "en": "Kaizhou Line" } }, { "id": "ae", "colour": "#000000", "fg": "#fff", "name": { "en": "Airport Express" } } ]

Resources: New palettes of Hangzhou

(Input anything you want here)

Do not edit lines below, they are meant for bots only!!!

{ "id": "hangzhou", "country": "CN", "name": { "en": "Hangzhou" } }
[ { "id": "Line 19", "colour": "#06aad1", "fg": "#fff", "name": { "en": "LINE 19" } } ]

*Vandalism Content*

(Input anything you want here)

Do not edit lines below, they are meant for bots only!!!

{ "id": "", "country": "", "name": { "zh": "shanghai" } }
[ { "id": "", "colour": "#aaaaaa", "fg": "#fff", "name": { "en": "" } } ]

Bot create a pull request from the text

When contributors paste the output from the railmapgen.github.io/rmg-palette, a bot will be triggered and an update will be performed. And after the successful build, the bot will open a pull request on behalf of the contributor.

建议添加的北京地铁颜色

之前我投过一篇关于北京地铁颜色增加的问题,可能其他线路的颜色还没有定下来,但是有两个是肯定定下来的:
3号线:RGB:255 56 90 HSL: 248 255 156
12号线:RGB:132 65 33 HSL:14 153 83
13A线:现模板北京13号线
13B线:RGB:255 158 0 HSL:26 255 128
另外,使用上海地铁模板的时候,如果输入的是数字或者数字,后面跟了号线两个字,那么在车内线路图就写换乘什么线,如果说光写了线一个字,那么就改成换成什么线,尤其是北京地铁拆分后。

How to name a palette of a big city group

I would like to update a color palette of a city group, which is combined with 6 cities: Essen, Mülheim, Oberhausen, Bochum, Gelsenkirchen and Herne, whose tram and light rail system are tied together. The system of Bochum, Gelsenkirchen and Herne belongs to BOGESTRA, but the system of Essen, Mülheim and Oberhausen belongs to RUHRBAHN. I would like to know how to decide the name of the palette. I might choose both of the official sites for the txt.

北京地铁颜色相关讨论(修正和颜色添加)

由于本issue快变成线路颜色的讨论issue了,所以我想了想还是把这issue改成这个新标题合适一些,以后如果有关北京地铁颜色的问题都放在这边吧。

一楼原文:
最近发现生成器里面北京地铁的预设颜色有几个是错的,所以我这里顺带重做了一个颜色模版:
bjsubway_fixed.txt

具体修改包括:

  1. 7号线/9号线/13号线/14号线/19号线/昌平线/首都机场线的文字颜色应为黑色,而不是白色。
  2. 11号线/17号线/19号线/大兴机场线的背景色代码不对
  3. 西郊线的名字改成了西郊线/亦庄T1线(因为这两条现代有轨电车线颜色一样)

Resources: New palettes of Taichung

(Input anything you want here)

Do not edit lines below, they are meant for bots only!!!

{ "id": "taichung", "country": "TW", "name": { "en": "Taichung", "zh-Hans": "台中", "zh-TW": "臺中" } }
[ { "id": "tc1", "colour": "#8ec31c", "fg": "#fff", "name": { "en": "Green Line (Line 1)", "zh-Hans": "绿线", "zh-TW": "綠線" } }, { "id": "tc2", "colour": "#0093db", "fg": "#fff", "name": { "en": "Blue Line (Line 2)", "zh-Hans": "蓝线", "zh-TW": "藍線" } }, { "id": "tc3", "colour": "#fca311", "fg": "#fff", "name": { "en": "Orange Line (Line 3)", "zh-Hans": "橘线", "zh-TW": "橘線" } }, { "id": "tc4", "colour": "#cc00cc", "fg": "#fff", "name": { "en": "Purple Line (Line 4)", "zh-Hans": "紫线", "zh-TW": "紫線" } } ]

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.