mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
fix: recognizing timetables for sceneries with the same stop names; optimization
This commit is contained in:
@@ -195,6 +195,8 @@ export namespace API {
|
||||
TWR: boolean;
|
||||
SKR: boolean;
|
||||
sceneries: string[];
|
||||
|
||||
path: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ export interface RegionCounters {
|
||||
timetablesCount: number;
|
||||
}
|
||||
|
||||
export interface TimetablePathElement {
|
||||
arrivalRouteExt?: string;
|
||||
departureRouteExt?: string;
|
||||
stationName: string;
|
||||
stationHash: string;
|
||||
}
|
||||
|
||||
export interface Train {
|
||||
id: string;
|
||||
modalId: string;
|
||||
@@ -73,6 +80,7 @@ export interface Train {
|
||||
routeDistance: number;
|
||||
sceneries: string[];
|
||||
sceneryNames: string[];
|
||||
timetablePath: TimetablePathElement[];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -188,6 +196,9 @@ export interface TrainStop {
|
||||
export interface CheckpointTrain {
|
||||
checkpointStop: TrainStop;
|
||||
train: Train;
|
||||
timetablePathElement: TimetablePathElement;
|
||||
previousSceneryElement: TimetablePathElement | null;
|
||||
nextSceneryElement: TimetablePathElement | null;
|
||||
}
|
||||
|
||||
// Vehicles Data
|
||||
|
||||
Reference in New Issue
Block a user