mobility-toolbox-js 2.0.0-beta.51 → 2.0.0-beta.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "mobility-toolbox-js",
3
3
  "license": "MIT",
4
4
  "description": "Toolbox for JavaScript applications in the domains of mobility and logistics.",
5
- "version": "2.0.0-beta.51",
5
+ "version": "2.0.0-beta.52",
6
6
  "main": "index.js",
7
7
  "exports": {
8
8
  ".": "./index.js",
@@ -69,7 +69,7 @@ export interface RealtimeTrajectoryProperties {
69
69
  operator_provides_realtime_journey: 'unknown' | 'yes' | 'no';
70
70
  rake?: string;
71
71
  raw_time?: string;
72
- routeIdentifier: string;
72
+ route_identifier: string;
73
73
  state: RealtimeTrajectoryState;
74
74
  tenant: string;
75
75
  time_intervals?: Array<Array<number>>;
@@ -79,9 +79,21 @@ export interface RealtimeTrajectoryProperties {
79
79
  train_number?: number;
80
80
  type: RealtimeMots;
81
81
 
82
- // TODO: verify why these properties are used in createTrackerFilter
83
- operator?: string; // TODO not sure if this property exists, see createTrackerFilter code.
84
- name?: string; // TODO not sure if this property exists, see createTrackerFilter code.
82
+ operator?: string; // deprecated, operator is an old property, use tenant instead.
83
+ name?: string; // deprecated, name is an old property, use line.name instead.
84
+
85
+ // Tralis
86
+ event?: string;
87
+ event_delay?: number;
88
+ event_timestamp?: number;
89
+ original_line?: RealtimeLine;
90
+ original_rake?: string;
91
+ original_train_number?: number;
92
+ position_correction?: number;
93
+ raw_coordinates?: [number, number];
94
+ ride_state?: string;
95
+ routeIdentifier?: string;
96
+ transmitting_vehicle?: string;
85
97
  }
86
98
 
87
99
  export interface RealtimeTrajectory extends Feature {