-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from davwheat/short-platforms
- Loading branch information
Showing
4 changed files
with
2,209 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,5 @@ static/temp/ | |
.sentryclirc | ||
|
||
.wrangler/ | ||
|
||
~$*.xlsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export function isMindTheGapStation(crs: string, platformNumber: string | null): boolean { | ||
if (platformNumber === null) return false | ||
|
||
return MindTheGapStations[crs]?.includes(platformNumber) ?? false | ||
} | ||
|
||
/** | ||
* Mind the gap stations data | ||
* | ||
* Mapped by CRS -> Platform | ||
*/ | ||
const MindTheGapStations: Record<string, string[]> = { | ||
WVF: ['1', '2'], | ||
LWS: ['1', '2', '3', '4', '5'], | ||
} |
Oops, something went wrong.