Skip to content

Commit

Permalink
feat: Tung Chung Line
Browse files Browse the repository at this point in the history
  • Loading branch information
marklai1998 committed Oct 7, 2022
1 parent 91d1c38 commit ba17719
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/constants/line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export enum Line {
TML = 'TML',
EAL = 'EAL',
TWL = 'TWL',
TCL = 'TCL',
}

export const lineConfig = {
Expand All @@ -20,4 +21,9 @@ export const lineConfig = {
nameZh: '荃灣線',
color: '#9B2C2C',
},
[Line.TCL]: {
nameEn: 'Tung Chung Line',
nameZh: '東涌線',
color: '#DD6B20',
},
}
22 changes: 22 additions & 0 deletions src/constants/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ export enum Stop {
JOR = 'JOR', // Jordan
TST = 'TST', // Tsim Sha Tsui
CEN = 'CEN', // Central
HOK = 'HOK', // Hong Kong
KOW = 'KOW', // Kowloon
OLY = 'OLY', // Olympic
TSY = 'TSY', // Tsing Yi
SUN = 'SUN', // Sunny Bay
TUC = 'TUC', // Tung Chung
}

export const stops = {
Expand Down Expand Up @@ -115,6 +121,12 @@ export const stops = {
[Stop.TST]: { nameZh: '尖沙咀', nameEn: 'Tsim Sha Tsui' },
[Stop.ADM]: { nameZh: '金鐘', nameEn: 'Admiralty' },
[Stop.CEN]: { nameZh: '中環', nameEn: 'Central' },
[Stop.HOK]: { nameEn: 'Hong Kong', nameZh: '香港' },
[Stop.KOW]: { nameEn: 'Kowloon', nameZh: '九龍' },
[Stop.OLY]: { nameEn: 'Olympic', nameZh: '奧運' },
[Stop.TSY]: { nameEn: 'Tsing Yi', nameZh: '青衣' },
[Stop.SUN]: { nameEn: 'Sunny Bay', nameZh: '欣澳' },
[Stop.TUC]: { nameEn: 'Tung Chung', nameZh: ' 東涌' },
}

export const linesStops = {
Expand Down Expand Up @@ -183,4 +195,14 @@ export const linesStops = {
[Stop.ADM]: stops[Stop.ADM],
[Stop.CEN]: stops[Stop.CEN],
},
[Line.TCL]: {
[Stop.HOK]: stops[Stop.HOK],
[Stop.KOW]: stops[Stop.KOW],
[Stop.OLY]: stops[Stop.OLY],
[Stop.NAC]: stops[Stop.NAC],
[Stop.LAK]: stops[Stop.LAK],
[Stop.TSY]: stops[Stop.TSY],
[Stop.SUN]: stops[Stop.SUN],
[Stop.TUC]: stops[Stop.TUC],
},
}

0 comments on commit ba17719

Please sign in to comment.