Skip to content

Commit a5355f0

Browse files
committed
feat(traffic-side): update netzgrafik dto
- Add trafficSide field to MetadataDto interface - Update data model documentation Signed-off-by: Uriel-Sautron <uriel.sautron@gmail.com>
1 parent c6346b4 commit a5355f0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

documentation/technical/DATA_MODEL_JSON.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ export interface TimeLockDto {
414414
"trainrunCategories": [],
415415
"trainrunFrequencies": [],
416416
"trainrunTimeCategories": [],
417-
"analyticsSettings": {}
417+
"analyticsSettings": {},
418+
"trafficSide": "leftHand" || "rightHand"
418419
}
419420
```
420421

src/app/data-structures/business.data.structures.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ export interface MetadataDto {
271271
netzgrafikColors: NetzgrafikColorDto[];
272272
analyticsSettings: AnalyticsSettingsDto;
273273
orderingAlgorithm?: OrderingAlgorithm;
274+
trafficSide?: TrafficSide;
274275
}
275276

276277
/**
@@ -338,3 +339,11 @@ export enum Direction {
338339
ROUND_TRIP = "round_trip",
339340
ONE_WAY = "one_way",
340341
}
342+
343+
/**
344+
* Represents the traffic side, i.e. whether trains on a line are
345+
* generally operated according to left-hand or right-hand running
346+
* conventions in railway operations. This determines on which
347+
* track (left or right) trains are positioned and operated.
348+
*/
349+
export type TrafficSide = "leftHand" | "rightHand";

0 commit comments

Comments
 (0)