@golemio/pid 2.2.11-dev.613632989 → 2.2.11-dev.613720384
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/dist/integration-engine/vehicle-positions/VehiclePositionsWorker.d.ts +0 -81
- package/dist/integration-engine/vehicle-positions/VehiclePositionsWorker.js +2 -454
- package/dist/integration-engine/vehicle-positions/VehiclePositionsWorker.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/helpers/PositionCalculator.d.ts +9 -0
- package/dist/integration-engine/vehicle-positions/helpers/PositionCalculator.js +46 -0
- package/dist/integration-engine/vehicle-positions/helpers/PositionCalculator.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/helpers/PositionHandlerEnum.d.ts +6 -0
- package/dist/integration-engine/vehicle-positions/helpers/PositionHandlerEnum.js +11 -0
- package/dist/integration-engine/vehicle-positions/helpers/PositionHandlerEnum.js.map +1 -0
- package/dist/integration-engine/vehicle-positions/helpers/PositionsManager.d.ts +77 -0
- package/dist/integration-engine/vehicle-positions/helpers/PositionsManager.js +445 -0
- package/dist/integration-engine/vehicle-positions/helpers/PositionsManager.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
37
|
+
var _a;
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
const turf = __importStar(require("@turf/turf"));
|
|
40
|
+
const moment_1 = __importDefault(require("moment"));
|
|
41
|
+
const const_1 = require("../../../const");
|
|
42
|
+
const models_1 = require("../models");
|
|
43
|
+
const DPPUtils_1 = __importDefault(require("./DPPUtils"));
|
|
44
|
+
const PositionCalculator_1 = __importDefault(require("./PositionCalculator"));
|
|
45
|
+
const PositionHandlerEnum_1 = require("./PositionHandlerEnum");
|
|
46
|
+
const ValidToCalculator_1 = __importDefault(require("./ValidToCalculator"));
|
|
47
|
+
class PositionsManager {
|
|
48
|
+
}
|
|
49
|
+
exports.default = PositionsManager;
|
|
50
|
+
_a = PositionsManager;
|
|
51
|
+
/**
|
|
52
|
+
* Compute positions and return computed positions
|
|
53
|
+
*
|
|
54
|
+
* @param {ITripPositionsWithGTFS} tripPositions - Trip positions with shape anchors data
|
|
55
|
+
* @returns {Promise<IProcessedPositions>} - Returns computed/updated positions
|
|
56
|
+
*/
|
|
57
|
+
PositionsManager.computePositions = (tripPositions, schedule) => __awaiter(void 0, void 0, void 0, function* () {
|
|
58
|
+
const startTimestamp = parseInt(tripPositions.start_timestamp, 10);
|
|
59
|
+
const startDayTimestamp = _a.getStartDayTimestamp(startTimestamp, tripPositions.gtfsData.shapes_anchor_points[0].time_scheduled_seconds);
|
|
60
|
+
const gtfsRouteType = tripPositions.gtfs_route_type;
|
|
61
|
+
return new Promise((resolve) => {
|
|
62
|
+
const context = {
|
|
63
|
+
atStopStreak: {
|
|
64
|
+
stop_sequence: null,
|
|
65
|
+
firstPositionTimestamp: null,
|
|
66
|
+
firstPositionDelay: null,
|
|
67
|
+
},
|
|
68
|
+
lastPositionLastStop: {
|
|
69
|
+
id: null,
|
|
70
|
+
sequence: null,
|
|
71
|
+
arrival_time: null,
|
|
72
|
+
departure_time: null,
|
|
73
|
+
},
|
|
74
|
+
lastPositionDelay: null,
|
|
75
|
+
lastPositionId: null,
|
|
76
|
+
lastPositionOriginTimestamp: null,
|
|
77
|
+
lastPositionTracking: null,
|
|
78
|
+
lastPositionCanceled: null,
|
|
79
|
+
lastPositionBeforeTrackDelayed: null,
|
|
80
|
+
isLastPositionAfterTrack: false,
|
|
81
|
+
tripId: tripPositions.id,
|
|
82
|
+
};
|
|
83
|
+
const computedPositions = [];
|
|
84
|
+
PositionsManager.updatePositionsIterator(0, { tripPositions, startTimestamp, startDayTimestamp, context, computedPositions, gtfsRouteType }, schedule, () => {
|
|
85
|
+
resolve({
|
|
86
|
+
context,
|
|
87
|
+
positions: computedPositions,
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* Takes position one by one, set proper handler for type of position, and do the process of position
|
|
94
|
+
*
|
|
95
|
+
* @param {number} i - Iteration
|
|
96
|
+
* @param {IUpdatePositionsIteratorOptions} options - Initial options
|
|
97
|
+
* @param {number} cb - Callback function of iterator
|
|
98
|
+
* @returns {void} - void
|
|
99
|
+
*/
|
|
100
|
+
PositionsManager.updatePositionsIterator = (i, options, schedule, cb) => __awaiter(void 0, void 0, void 0, function* () {
|
|
101
|
+
const { tripPositions, startDayTimestamp, startTimestamp, context, computedPositions, gtfsRouteType } = options;
|
|
102
|
+
if (i === tripPositions.positions.length) {
|
|
103
|
+
return cb();
|
|
104
|
+
}
|
|
105
|
+
const position = tripPositions.positions[i];
|
|
106
|
+
let positionToUpdate = null;
|
|
107
|
+
// situations
|
|
108
|
+
switch (_a.setPositionUpdateHandler(position)) {
|
|
109
|
+
case PositionHandlerEnum_1.PositionHandlerEnum.TRACKING:
|
|
110
|
+
const currentPosition = turf.point([position.lng, position.lat], {
|
|
111
|
+
id: position.id,
|
|
112
|
+
origin_time: position.origin_time,
|
|
113
|
+
origin_timestamp: position.origin_timestamp,
|
|
114
|
+
tcp_event: position.tcp_event,
|
|
115
|
+
});
|
|
116
|
+
positionToUpdate = yield _a.getEstimatedPoint(tripPositions.gtfsData, currentPosition, context, startDayTimestamp, tripPositions.gtfs_route_type);
|
|
117
|
+
break;
|
|
118
|
+
case PositionHandlerEnum_1.PositionHandlerEnum.NOT_TRACKING:
|
|
119
|
+
// if there is no previous positions with tracking status, set position as before_track
|
|
120
|
+
const firstShapesAnchorPoint = tripPositions.gtfsData.shapes_anchor_points[0];
|
|
121
|
+
if (context.lastPositionTracking === null) {
|
|
122
|
+
const firstStopTime = tripPositions.gtfsData.stop_times[0];
|
|
123
|
+
// if there is propagated delay we can use it for new position
|
|
124
|
+
const canDuplicatePropagatedDelay = context.lastPositionBeforeTrackDelayed !== null;
|
|
125
|
+
// if there is no delay to duplicate and DPP trip is far from start then invisible
|
|
126
|
+
const setAsInvisible = !canDuplicatePropagatedDelay &&
|
|
127
|
+
DPPUtils_1.default.isInvisible(tripPositions.agency_name_scheduled, position.origin_timestamp, startTimestamp, [position.lng, position.lat], firstShapesAnchorPoint.coordinates, schedule, tripPositions.gtfs_trip_id, context.lastPositionTracking, position.tracking);
|
|
128
|
+
positionToUpdate = Object.assign({ id: position.id, next_stop_arrival_time: startDayTimestamp + firstStopTime.arrival_time_seconds * 1000, next_stop_departure_time: startDayTimestamp + firstStopTime.departure_time_seconds * 1000, next_stop_id: firstStopTime.stop_id, next_stop_sequence: firstStopTime.stop_sequence, next_stop_name: firstStopTime.stop.stop_name, shape_dist_traveled: firstStopTime.shape_dist_traveled, state_position: setAsInvisible ? const_1.StatePositionEnum.INVISIBLE : const_1.StatePositionEnum.BEFORE_TRACK, state_process: const_1.StateProcessEnum.PROCESSED }, (firstStopTime.stop_headsign && {
|
|
129
|
+
last_stop_headsign: firstStopTime.stop_headsign,
|
|
130
|
+
}));
|
|
131
|
+
if (!setAsInvisible && canDuplicatePropagatedDelay) {
|
|
132
|
+
positionToUpdate.delay = context.lastPositionBeforeTrackDelayed.delay;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
// if there is tracking 2 position with same origin_timestamp then this position is duplicate
|
|
137
|
+
const statePosition = tripPositions.positions.find((e) => e.origin_timestamp === position.origin_timestamp && e.tracking === const_1.PositionTrackingEnum.TRACKING)
|
|
138
|
+
? const_1.StatePositionEnum.DUPLICATE
|
|
139
|
+
: const_1.StatePositionEnum.AFTER_TRACK;
|
|
140
|
+
const lastShapesAnchorPoint = tripPositions.gtfsData.shapes_anchor_points[tripPositions.gtfsData.shapes_anchor_points.length - 1];
|
|
141
|
+
const lastStopTime = tripPositions.gtfsData.stop_times[tripPositions.gtfsData.stop_times.length - 1];
|
|
142
|
+
// set as invisible if there are some AFTER_TRACK before
|
|
143
|
+
const setAsInvisible = DPPUtils_1.default.isInvisible(tripPositions.agency_name_scheduled, position.origin_timestamp, startTimestamp, [position.lng, position.lat], firstShapesAnchorPoint.coordinates, schedule, tripPositions.gtfs_trip_id, context.lastPositionTracking, position.tracking) && statePosition === const_1.StatePositionEnum.AFTER_TRACK;
|
|
144
|
+
positionToUpdate = Object.assign({ id: position.id, last_stop_arrival_time: startDayTimestamp + lastShapesAnchorPoint.time_scheduled_seconds * 1000, last_stop_departure_time: startDayTimestamp + lastShapesAnchorPoint.time_scheduled_seconds * 1000, last_stop_id: lastStopTime.stop_id, last_stop_sequence: lastShapesAnchorPoint.last_stop_sequence, shape_dist_traveled: lastShapesAnchorPoint.shape_dist_traveled, state_position: setAsInvisible ? const_1.StatePositionEnum.INVISIBLE : statePosition, state_process: const_1.StateProcessEnum.PROCESSED }, (lastStopTime.stop_headsign && {
|
|
145
|
+
last_stop_headsign: lastStopTime.stop_headsign,
|
|
146
|
+
}));
|
|
147
|
+
}
|
|
148
|
+
break;
|
|
149
|
+
case PositionHandlerEnum_1.PositionHandlerEnum.CANCELED:
|
|
150
|
+
positionToUpdate = {
|
|
151
|
+
id: position.id,
|
|
152
|
+
state_position: const_1.StatePositionEnum.CANCELED,
|
|
153
|
+
state_process: const_1.StateProcessEnum.PROCESSED,
|
|
154
|
+
};
|
|
155
|
+
break;
|
|
156
|
+
case PositionHandlerEnum_1.PositionHandlerEnum.DO_NOTHING:
|
|
157
|
+
break;
|
|
158
|
+
default:
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
// if not null push to update
|
|
162
|
+
if (positionToUpdate) {
|
|
163
|
+
positionToUpdate.valid_to = ValidToCalculator_1.default.getValidToAttribute(positionToUpdate, position, gtfsRouteType, tripPositions.gtfsData, startTimestamp, startDayTimestamp);
|
|
164
|
+
computedPositions.push(positionToUpdate);
|
|
165
|
+
}
|
|
166
|
+
// set if last position is AFTER_TRACK
|
|
167
|
+
context.isLastPositionAfterTrack =
|
|
168
|
+
(positionToUpdate === null || positionToUpdate === void 0 ? void 0 : positionToUpdate.state_position) === const_1.StatePositionEnum.AFTER_TRACK ||
|
|
169
|
+
position.state_position === const_1.StatePositionEnum.AFTER_TRACK;
|
|
170
|
+
// set last known BEFORE_TRACK_DELAYED position
|
|
171
|
+
if (position.state_position === const_1.StatePositionEnum.BEFORE_TRACK_DELAYED) {
|
|
172
|
+
context.lastPositionBeforeTrackDelayed = {
|
|
173
|
+
delay: position.delay,
|
|
174
|
+
origin_timestamp: position.origin_timestamp,
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
// set last position tracking (only for at_stop and on_track)
|
|
178
|
+
if ((positionToUpdate === null || positionToUpdate === void 0 ? void 0 : positionToUpdate.state_position) === const_1.StatePositionEnum.AT_STOP ||
|
|
179
|
+
(positionToUpdate === null || positionToUpdate === void 0 ? void 0 : positionToUpdate.state_position) === const_1.StatePositionEnum.ON_TRACK ||
|
|
180
|
+
position.state_position === const_1.StatePositionEnum.AT_STOP ||
|
|
181
|
+
position.state_position === const_1.StatePositionEnum.ON_TRACK) {
|
|
182
|
+
context.lastPositionTracking = turf.point([position.lng, position.lat], Object.assign(Object.assign({}, position), positionToUpdate));
|
|
183
|
+
}
|
|
184
|
+
// set new first position at stop streak if this stop seqence is set and it is not same as before
|
|
185
|
+
if (positionToUpdate
|
|
186
|
+
? positionToUpdate.this_stop_sequence &&
|
|
187
|
+
context.atStopStreak.stop_sequence !== positionToUpdate.this_stop_sequence
|
|
188
|
+
: position.this_stop_sequence && context.atStopStreak.stop_sequence !== position.this_stop_sequence) {
|
|
189
|
+
context.atStopStreak.stop_sequence = positionToUpdate
|
|
190
|
+
? positionToUpdate.this_stop_sequence
|
|
191
|
+
: position.this_stop_sequence;
|
|
192
|
+
context.atStopStreak.firstPositionTimestamp = position.origin_timestamp;
|
|
193
|
+
context.atStopStreak.firstPositionDelay = positionToUpdate ? positionToUpdate.delay : position.delay;
|
|
194
|
+
}
|
|
195
|
+
// IF currently updated position / position was processed before
|
|
196
|
+
// and it is NOT AT_STOP
|
|
197
|
+
if (positionToUpdate ? !positionToUpdate.this_stop_sequence : !position.this_stop_sequence) {
|
|
198
|
+
// THEN disrupt atStopStreak
|
|
199
|
+
context.atStopStreak.stop_sequence = null;
|
|
200
|
+
}
|
|
201
|
+
// duplicated position should not be considered at all
|
|
202
|
+
if ((positionToUpdate === null || positionToUpdate === void 0 ? void 0 : positionToUpdate.state_position) !== const_1.StatePositionEnum.DUPLICATE &&
|
|
203
|
+
(positionToUpdate === null || positionToUpdate === void 0 ? void 0 : positionToUpdate.state_position) !== const_1.StatePositionEnum.INVISIBLE) {
|
|
204
|
+
context.lastPositionId = position.id;
|
|
205
|
+
context.lastPositionCanceled = position.is_canceled;
|
|
206
|
+
context.lastPositionOriginTimestamp = position.origin_timestamp;
|
|
207
|
+
}
|
|
208
|
+
// set delay
|
|
209
|
+
context.lastPositionDelay = positionToUpdate ? positionToUpdate.delay : position.delay;
|
|
210
|
+
_a.updatePositionsIterator(i + 1, options, schedule, cb);
|
|
211
|
+
});
|
|
212
|
+
/**
|
|
213
|
+
* Decide how to process input position data
|
|
214
|
+
*
|
|
215
|
+
* @param {IPosition} position - Input vehiclepositions_positions row data
|
|
216
|
+
* @returns {PositionHandlerEnum} - Returns action handler enum
|
|
217
|
+
*/
|
|
218
|
+
PositionsManager.setPositionUpdateHandler = (position) => {
|
|
219
|
+
if (position.state_process === const_1.StateProcessEnum.PROCESSED)
|
|
220
|
+
return PositionHandlerEnum_1.PositionHandlerEnum.DO_NOTHING;
|
|
221
|
+
if (position.is_canceled)
|
|
222
|
+
return PositionHandlerEnum_1.PositionHandlerEnum.CANCELED;
|
|
223
|
+
if (position.lat && position.lng && position.tracking === const_1.PositionTrackingEnum.TRACKING)
|
|
224
|
+
return PositionHandlerEnum_1.PositionHandlerEnum.TRACKING;
|
|
225
|
+
if (position.tracking !== const_1.PositionTrackingEnum.TRACKING)
|
|
226
|
+
return PositionHandlerEnum_1.PositionHandlerEnum.NOT_TRACKING;
|
|
227
|
+
return PositionHandlerEnum_1.PositionHandlerEnum.NOT_TRACKING;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Returns estimate of point on shape, where the trip should be with appropriate delay
|
|
231
|
+
*
|
|
232
|
+
* @param {IShapeAnchorPoint[]} tripShapePoints - Precalculated trip shape equidistant points with scheduled times
|
|
233
|
+
* @param {Feature<Point, ICurrentPositionProperties>} currentPosition - Current position of trip
|
|
234
|
+
* @param {IPositionsContext | null} context - Context state, holds information about previous positions
|
|
235
|
+
* @param {number} startDayTimestamp - Unix timestamp of midnight before trip starts
|
|
236
|
+
* @returns {IPositionToUpdate} - Position object to update
|
|
237
|
+
*/
|
|
238
|
+
PositionsManager.getEstimatedPoint = (tripGtfsData, currentPosition, context, startDayTimestamp, gtfsRouteType) => __awaiter(void 0, void 0, void 0, function* () {
|
|
239
|
+
var _b, _c, _d, _e, _f, _g;
|
|
240
|
+
// init radius around GPS position ( 200 meters radius, 16 points polygon aka circle)
|
|
241
|
+
const radius = 0.2;
|
|
242
|
+
//Initial value
|
|
243
|
+
let estimatedPoint = Object.assign({ id: currentPosition.properties.id, state_position: const_1.StatePositionEnum.OFF_TRACK, state_process: const_1.StateProcessEnum.PROCESSED, tcp_event: currentPosition.properties.tcp_event, valid_to: ValidToCalculator_1.default.getDefaultValidToAttribute(currentPosition.properties.origin_timestamp) }, (context &&
|
|
244
|
+
((_b = context.lastPositionTracking) === null || _b === void 0 ? void 0 : _b.properties.last_stop_sequence) && {
|
|
245
|
+
shape_dist_traveled: (_c = context.lastPositionTracking) === null || _c === void 0 ? void 0 : _c.properties.shape_dist_traveled,
|
|
246
|
+
last_stop_arrival_time: (_d = context.lastPositionTracking) === null || _d === void 0 ? void 0 : _d.properties.last_stop_arrival_time,
|
|
247
|
+
last_stop_departure_time: (_e = context.lastPositionTracking) === null || _e === void 0 ? void 0 : _e.properties.last_stop_departure_time,
|
|
248
|
+
last_stop_sequence: (_f = context.lastPositionTracking) === null || _f === void 0 ? void 0 : _f.properties.last_stop_sequence,
|
|
249
|
+
last_stop_id: (_g = context.lastPositionTracking) === null || _g === void 0 ? void 0 : _g.properties.last_stop_id,
|
|
250
|
+
}));
|
|
251
|
+
// returns array of segments (row of points) of shape anchor points around gps
|
|
252
|
+
const ptsInRadius = yield PositionCalculator_1.default.getShapePointsAroundPosition(tripGtfsData.shapes_anchor_points, currentPosition, radius, tripGtfsData.trip_id);
|
|
253
|
+
if (ptsInRadius.length < 1) {
|
|
254
|
+
return estimatedPoint;
|
|
255
|
+
}
|
|
256
|
+
// picks only closest point for each segment
|
|
257
|
+
const closestPts = yield PositionCalculator_1.default.getClosestPoints(ptsInRadius, currentPosition);
|
|
258
|
+
if (closestPts.length < 1) {
|
|
259
|
+
return estimatedPoint;
|
|
260
|
+
}
|
|
261
|
+
// DECIDE WHICH POINT IS PROBABLY RIGHT
|
|
262
|
+
return _a.getClosestPoint(currentPosition, context, startDayTimestamp, closestPts, tripGtfsData, gtfsRouteType);
|
|
263
|
+
});
|
|
264
|
+
/**
|
|
265
|
+
* Picks only one closest point for multiple possible points based on delay of last position and stop times
|
|
266
|
+
*
|
|
267
|
+
* @param {Feature<Point, ICurrentPositionProperties>} currentPosition - Feature Point of current position
|
|
268
|
+
* @param {IPositionsContext | null} context - Context state, holds information about previous positions
|
|
269
|
+
* @param {number} startDayTimestamp - Unix timestamp of start of the day
|
|
270
|
+
* @param {IShapeAnchorPoint[]} closestPts - All closest points of possible segments
|
|
271
|
+
* @param {IComputationTrip} tripGtfsData - GTFS data and all set of known positions
|
|
272
|
+
* @returns {IPositionToUpdate} - Result point as position to update in DB
|
|
273
|
+
*/
|
|
274
|
+
PositionsManager.getClosestPoint = (currentPosition, context, startDayTimestamp, closestPts, tripGtfsData, gtfsRouteType) => __awaiter(void 0, void 0, void 0, function* () {
|
|
275
|
+
// want to find minimum difference of our prediction, where the bus should be
|
|
276
|
+
let minTimeRealDiff = Infinity;
|
|
277
|
+
const tripShapePoints = tripGtfsData.shapes_anchor_points;
|
|
278
|
+
const tripStopTimes = tripGtfsData.stop_times;
|
|
279
|
+
const lastTripShapePoint = tripShapePoints[tripShapePoints.length - 1];
|
|
280
|
+
const closestPtsIterator = (i, prevTimeDelay, estimatedPoint, cb) => {
|
|
281
|
+
// end of iteration
|
|
282
|
+
if (closestPts.length === i) {
|
|
283
|
+
return cb(estimatedPoint);
|
|
284
|
+
}
|
|
285
|
+
let thisClosestPoint = closestPts[i];
|
|
286
|
+
const timeScheduledTimestamp = _a.getLocalTimeToUnix(startDayTimestamp,
|
|
287
|
+
// take stop arrival time if is point at stop
|
|
288
|
+
thisClosestPoint.this_stop_sequence
|
|
289
|
+
? tripStopTimes[thisClosestPoint.this_stop_sequence - 1].arrival_time_seconds
|
|
290
|
+
: thisClosestPoint.time_scheduled_seconds);
|
|
291
|
+
let timeDelay = moment_1.default
|
|
292
|
+
.utc(currentPosition.properties.origin_timestamp)
|
|
293
|
+
.diff(timeScheduledTimestamp, "seconds");
|
|
294
|
+
// time where the bus should on this point
|
|
295
|
+
const timeProposed = thisClosestPoint.time_scheduled_seconds + prevTimeDelay;
|
|
296
|
+
// difference
|
|
297
|
+
const timeRealDiff = thisClosestPoint.time_scheduled_seconds + timeDelay - timeProposed;
|
|
298
|
+
// we look for the best fitting point
|
|
299
|
+
if (Math.abs(timeRealDiff) < Math.abs(minTimeRealDiff)) {
|
|
300
|
+
const isBusOrTram = gtfsRouteType === models_1.GTFSRouteTypeEnum.BUS || gtfsRouteType === models_1.GTFSRouteTypeEnum.TRAM;
|
|
301
|
+
minTimeRealDiff = timeRealDiff;
|
|
302
|
+
// push trip into nearest at_stop shape anchor point if trip "P" event (tram) / "V" event (bus)
|
|
303
|
+
if (isBusOrTram &&
|
|
304
|
+
currentPosition.properties.tcp_event === const_1.TCPEventEnum.ARRIVAL_ANNOUNCED &&
|
|
305
|
+
thisClosestPoint.this_stop_sequence === null) {
|
|
306
|
+
let movingShapePointIndex = thisClosestPoint.index;
|
|
307
|
+
while (thisClosestPoint.this_stop_sequence === null && movingShapePointIndex < lastTripShapePoint.index) {
|
|
308
|
+
movingShapePointIndex++;
|
|
309
|
+
thisClosestPoint = tripShapePoints[movingShapePointIndex];
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
let statePosition = thisClosestPoint.this_stop_sequence ? const_1.StatePositionEnum.AT_STOP : const_1.StatePositionEnum.ON_TRACK;
|
|
313
|
+
// test if TCP trip with DEPARTURED event should not bet at stop (not applied for last stop)
|
|
314
|
+
if (currentPosition.properties.tcp_event === const_1.TCPEventEnum.DEPARTURED &&
|
|
315
|
+
thisClosestPoint.this_stop_sequence !== lastTripShapePoint.this_stop_sequence) {
|
|
316
|
+
statePosition = const_1.StatePositionEnum.ON_TRACK;
|
|
317
|
+
}
|
|
318
|
+
// interpret the position state on the "V" event for trams and buses as "after track"
|
|
319
|
+
if (isBusOrTram && currentPosition.properties.tcp_event === const_1.TCPEventEnum.V) {
|
|
320
|
+
statePosition = const_1.StatePositionEnum.AFTER_TRACK;
|
|
321
|
+
thisClosestPoint = lastTripShapePoint;
|
|
322
|
+
timeDelay = null;
|
|
323
|
+
}
|
|
324
|
+
// lets correct delay if it is at stop
|
|
325
|
+
if (thisClosestPoint.this_stop_sequence && timeDelay) {
|
|
326
|
+
timeDelay = _a.getCorrectedTimeDelay(timeDelay, context, currentPosition, thisClosestPoint, {
|
|
327
|
+
departureTime: tripStopTimes[thisClosestPoint.this_stop_sequence - 1].departure_time_seconds,
|
|
328
|
+
arrivalTime: tripStopTimes[thisClosestPoint.this_stop_sequence - 1].arrival_time_seconds,
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
// save it for result
|
|
332
|
+
estimatedPoint = {
|
|
333
|
+
id: currentPosition.properties.id,
|
|
334
|
+
bearing: thisClosestPoint.bearing,
|
|
335
|
+
shape_dist_traveled: Math.round(thisClosestPoint.shape_dist_traveled * 1000) / 1000,
|
|
336
|
+
next_stop_id: tripStopTimes[thisClosestPoint.next_stop_sequence - 1].stop_id,
|
|
337
|
+
last_stop_id: tripStopTimes[thisClosestPoint.last_stop_sequence - 1].stop_id,
|
|
338
|
+
next_stop_name: tripStopTimes[thisClosestPoint.next_stop_sequence - 1].stop.stop_name,
|
|
339
|
+
last_stop_name: tripStopTimes[thisClosestPoint.last_stop_sequence - 1].stop.stop_name,
|
|
340
|
+
next_stop_sequence: thisClosestPoint.next_stop_sequence,
|
|
341
|
+
last_stop_sequence: thisClosestPoint.last_stop_sequence,
|
|
342
|
+
next_stop_arrival_time: _a.getLocalTimeToUnix(startDayTimestamp, tripStopTimes[thisClosestPoint.next_stop_sequence - 1].arrival_time_seconds),
|
|
343
|
+
last_stop_arrival_time: _a.getLocalTimeToUnix(startDayTimestamp, tripStopTimes[thisClosestPoint.last_stop_sequence - 1].arrival_time_seconds),
|
|
344
|
+
next_stop_departure_time: _a.getLocalTimeToUnix(startDayTimestamp, tripStopTimes[thisClosestPoint.next_stop_sequence - 1].departure_time_seconds),
|
|
345
|
+
last_stop_departure_time: _a.getLocalTimeToUnix(startDayTimestamp, tripStopTimes[thisClosestPoint.last_stop_sequence - 1].departure_time_seconds),
|
|
346
|
+
delay: timeDelay,
|
|
347
|
+
this_stop_id: (statePosition === const_1.StatePositionEnum.AT_STOP &&
|
|
348
|
+
thisClosestPoint.this_stop_sequence &&
|
|
349
|
+
tripStopTimes[thisClosestPoint.this_stop_sequence - 1].stop_id) ||
|
|
350
|
+
undefined,
|
|
351
|
+
this_stop_name: (statePosition === const_1.StatePositionEnum.AT_STOP &&
|
|
352
|
+
thisClosestPoint.this_stop_sequence &&
|
|
353
|
+
tripStopTimes[thisClosestPoint.this_stop_sequence - 1].stop.stop_name) ||
|
|
354
|
+
undefined,
|
|
355
|
+
this_stop_sequence: (statePosition === const_1.StatePositionEnum.AT_STOP && thisClosestPoint.this_stop_sequence) || undefined,
|
|
356
|
+
last_stop_headsign: tripStopTimes[thisClosestPoint.last_stop_sequence - 1].stop_headsign || undefined,
|
|
357
|
+
state_position: statePosition,
|
|
358
|
+
state_process: const_1.StateProcessEnum.PROCESSED,
|
|
359
|
+
valid_to: ValidToCalculator_1.default.getDefaultValidToAttribute(currentPosition.properties.origin_timestamp),
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
// next step
|
|
363
|
+
closestPtsIterator(i + 1, prevTimeDelay, estimatedPoint, cb);
|
|
364
|
+
};
|
|
365
|
+
return new Promise((resolve) => {
|
|
366
|
+
var _b, _c;
|
|
367
|
+
closestPtsIterator(0, (_c = (_b = context === null || context === void 0 ? void 0 : context.lastPositionTracking) === null || _b === void 0 ? void 0 : _b.properties.delay) !== null && _c !== void 0 ? _c : 0, null, (estimatedPoint) => {
|
|
368
|
+
resolve(estimatedPoint);
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
/**
|
|
373
|
+
* Returns unix in miliseconds for stop time
|
|
374
|
+
* + given by start of day when trip starts
|
|
375
|
+
* + and GTFS HH:mm:ss format of stop time in seconds
|
|
376
|
+
*
|
|
377
|
+
* @param {number} startDayTimestamp - Unix timestamp of local time midnight before trip starts
|
|
378
|
+
* @param {number} timeSeconds - Number of seconds given by HH:mm:ss format of GTFS stop time
|
|
379
|
+
* @returns {number} - Returns unix milisecods
|
|
380
|
+
*/
|
|
381
|
+
PositionsManager.getLocalTimeToUnix = (startDayTimestamp, timeSeconds) => {
|
|
382
|
+
return (0, moment_1.default)(startDayTimestamp)
|
|
383
|
+
.tz("Europe/Prague")
|
|
384
|
+
.startOf("day")
|
|
385
|
+
.hours(Math.floor(timeSeconds / 3600))
|
|
386
|
+
.minutes(Math.floor((timeSeconds % 3600) / 60))
|
|
387
|
+
.seconds(timeSeconds % 60)
|
|
388
|
+
.valueOf();
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* Corrects time delay at stop with dwelling time
|
|
392
|
+
*
|
|
393
|
+
* @param {number} timeDelay - Initial computed delay in seconds, can be negative for trip ahead
|
|
394
|
+
* @param {IPositionsContext | null} context - Context state, holds information about previous positions
|
|
395
|
+
* @param {Feature<Point, ICurrentPositionProperties>} currentPosition - Feature Point of current position
|
|
396
|
+
* @param {IShapeAnchorPoint} thisClosestPoint - Closest point of shape anchors
|
|
397
|
+
* @param { departureTime: number; arrivalTime: number } stopTimes - departure and arrival stop times in seconds
|
|
398
|
+
* @returns {number} - Result delay in seconds, can be negative for trip ahead
|
|
399
|
+
*/
|
|
400
|
+
PositionsManager.getCorrectedTimeDelay = (timeDelay, context, currentPosition, thisClosestPoint, stopTimes) => {
|
|
401
|
+
// compute dwell time in stop, most common is zero
|
|
402
|
+
const stopDwellTimeSeconds = stopTimes.departureTime - stopTimes.arrivalTime;
|
|
403
|
+
// if dwell time is sheduled as zero, return initial computed delay
|
|
404
|
+
if (stopDwellTimeSeconds <= 0) {
|
|
405
|
+
return timeDelay;
|
|
406
|
+
}
|
|
407
|
+
// if last position was not in this same stop or there is no last position at all
|
|
408
|
+
if (!context || context.atStopStreak.stop_sequence !== thisClosestPoint.this_stop_sequence) {
|
|
409
|
+
// timeDelay >= 0 trip is DELAYED
|
|
410
|
+
// we presume it will lower delay by shortening its scheduled dwell time,
|
|
411
|
+
// cant go under zero of course, trip should not go ahead
|
|
412
|
+
// else trip is AHeAD
|
|
413
|
+
// left computed delay as it was
|
|
414
|
+
return timeDelay >= 0 ? Math.max(timeDelay - stopDwellTimeSeconds, 0) : timeDelay;
|
|
415
|
+
}
|
|
416
|
+
// we presume that first position at same stop is real arrival time
|
|
417
|
+
if (context.atStopStreak.firstPositionDelay >= 0) {
|
|
418
|
+
// trip was DELAYED before
|
|
419
|
+
// we presume it will lower delay by shortening its scheduled dwell time,
|
|
420
|
+
// cant go under zero of course, trip should not go ahead
|
|
421
|
+
return Math.max(timeDelay - stopDwellTimeSeconds, 0);
|
|
422
|
+
}
|
|
423
|
+
// trip was AHEAD before
|
|
424
|
+
// real dwell time so far
|
|
425
|
+
const realDwellTimeSeconds = Math.round((currentPosition.properties.origin_timestamp - context.atStopStreak.firstPositionTimestamp) / 1000);
|
|
426
|
+
// if real dwell is longer than scheduled, then add to negative delay time
|
|
427
|
+
return context.atStopStreak.firstPositionDelay + Math.max(realDwellTimeSeconds - stopDwellTimeSeconds, 0);
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* Compute UTC timestamp of start of day when trip starts
|
|
431
|
+
*
|
|
432
|
+
* @param {number} startTimestamp - Unix timestamp of start of the trip
|
|
433
|
+
* @param {number} firstStopTimeScheduledSeconds - Number of seconds from midnight of first stop departure
|
|
434
|
+
* @returns {number} - Returns unix timestamp in milliseconds.
|
|
435
|
+
*/
|
|
436
|
+
PositionsManager.getStartDayTimestamp = (startTimestamp, firstStopTimeScheduledSeconds) => {
|
|
437
|
+
let startDayTimestamp = moment_1.default.utc(startTimestamp).tz("Europe/Prague").startOf("day");
|
|
438
|
+
const stopTimeDayOverflow = Math.floor(firstStopTimeScheduledSeconds / (60 * 60 * 24));
|
|
439
|
+
// if trip has 24+ stop times set real startDay to yesterday
|
|
440
|
+
if (stopTimeDayOverflow > 0) {
|
|
441
|
+
startDayTimestamp.subtract(1, "day");
|
|
442
|
+
}
|
|
443
|
+
return startDayTimestamp.valueOf();
|
|
444
|
+
};
|
|
445
|
+
//# sourceMappingURL=PositionsManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PositionsManager.js","sourceRoot":"","sources":["../../../../src/integration-engine/vehicle-positions/helpers/PositionsManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAAmC;AAEnC,oDAA4B;AAC5B,0CAAoG;AACpG,sCAAuE;AAavE,0DAAkC;AAClC,8EAAsD;AACtD,+DAA4D;AAC5D,4EAAoD;AAEpD,MAAqB,gBAAgB;;AAArC,mCAgkBC;;AA/jBG;;;;;GAKG;AACW,iCAAgB,GAAG,CAC7B,aAAqC,EACrC,QAAyC,EACb,EAAE;IAC9B,M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