Skip to content

Commit

Permalink
feat: Kwun Tong Line
Browse files Browse the repository at this point in the history
  • Loading branch information
marklai1998 committed Oct 7, 2022
1 parent 2da133c commit 73f3306
Show file tree
Hide file tree
Showing 2 changed files with 43 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 @@ -5,6 +5,7 @@ export enum Line {
TCL = 'TCL',
TKL = 'TKL',
AEL = 'AEL',
KTL = 'KTL',
}

export const lineConfig = {
Expand Down Expand Up @@ -38,4 +39,9 @@ export const lineConfig = {
nameZh: '機場快綫',
color: '#285E61',
},
[Line.KTL]: {
nameEn: 'Kwun Tong Line',
nameZh: '觀塘綫',
color: '#276749',
},
}
37 changes: 37 additions & 0 deletions src/constants/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ export enum Stop {
POA = 'POA', // Po Lam
AIR = 'AIR', // Airport
AWE = 'AWE', // AsiaWorld Expo
LAT = 'LAT', // Lam Tin
KWT = 'KWT', // Kwun Tong
NTK = 'NTK', // Ngau Tau Kok
KOB = 'KOB', // Kowloon Bay
CHH = 'CHH', // Choi Hung
WTS = 'WTS', // Wong Tai Sin
LOF = 'LOF', // Lok Fu
SKM = 'SKM', // Shek Kip Mei
WHA = 'WHA', // Whampo
}

export const stops = {
Expand Down Expand Up @@ -147,6 +156,15 @@ export const stops = {
[Stop.POA]: { nameEn: 'Po Lam', nameZh: ' 寶琳' },
[Stop.AIR]: { nameEn: 'Airport', nameZh: '機場' },
[Stop.AWE]: { nameEn: 'AsiaWorld Expo', nameZh: '博覽館' },
[Stop.LAT]: { nameZh: '藍田', nameEn: 'Lam Tin' },
[Stop.KWT]: { nameZh: '觀塘', nameEn: 'Kwun Tong' },
[Stop.NTK]: { nameZh: '牛頭角', nameEn: 'Ngau Tau Kok' },
[Stop.KOB]: { nameZh: '九龍灣', nameEn: 'Kowloon Bay' },
[Stop.CHH]: { nameZh: '彩虹', nameEn: 'Choi Hung' },
[Stop.WTS]: { nameZh: '黃大仙', nameEn: 'Wong Tai Sin' },
[Stop.LOF]: { nameZh: '樂富', nameEn: 'Lok Fu' },
[Stop.SKM]: { nameZh: '石硤尾', nameEn: 'Shek Kip Mei' },
[Stop.WHA]: { nameZh: '黃埔', nameEn: 'Whampo' },
}

export const linesStops = {
Expand Down Expand Up @@ -242,4 +260,23 @@ export const linesStops = {
[Stop.AIR]: stops[Stop.AIR],
[Stop.AWE]: stops[Stop.AWE],
},
[Line.KTL]: {
[Stop.TIK]: stops[Stop.TIK],
[Stop.YAT]: stops[Stop.YAT],
[Stop.LAT]: stops[Stop.LAT],
[Stop.KWT]: stops[Stop.KWT],
[Stop.NTK]: stops[Stop.NTK],
[Stop.KOB]: stops[Stop.KOB],
[Stop.CHH]: stops[Stop.CHH],
[Stop.DIH]: stops[Stop.DIH],
[Stop.WTS]: stops[Stop.WTS],
[Stop.LOF]: stops[Stop.LOF],
[Stop.KOT]: stops[Stop.KOT],
[Stop.SKM]: stops[Stop.SKM],
[Stop.PRE]: stops[Stop.PRE],
[Stop.MOK]: stops[Stop.MOK],
[Stop.YMT]: stops[Stop.YMT],
[Stop.HOM]: stops[Stop.HOM],
[Stop.WHA]: stops[Stop.WHA],
},
}

0 comments on commit 73f3306

Please sign in to comment.