@golemio/pid 2.7.8-dev.894106680 → 2.7.8-dev.894751895
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/db/example/pb/pid_feed.pb +0 -0
- package/dist/integration-engine/ropid-gtfs/interfaces/IGtfsRunTripCache.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/VehicleDescriptor.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/VehicleDescriptor.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/tasks/GenerateFilesTask.d.ts +2 -0
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/tasks/GenerateFilesTask.js +24 -16
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/tasks/GenerateFilesTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/interfaces/CommonRunsMessageInterfaces.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/schema/CommonRunsSchema.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/schema/CommonRunsSchema.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-descriptors/transformations/DescriptorTransformation.js +2 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-descriptors/transformations/DescriptorTransformation.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/PositionsRepository.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/PositionsRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/PositionsMapper.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/PositionsMapper.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/TripsMapper.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/TripsMapper.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/DPPUtils.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/DPPUtils.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/PositionsManager.js +2 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/PositionsManager.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/VPUtils.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/VPUtils.js +2 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/VPUtils.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/ValidToCalculator.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/ValidToCalculator.js +2 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/ValidToCalculator.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/ComputeDelayHelper.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/AbstractDelayAtStop.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/AbstractDelayAtStop.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/BusDelayAtStop.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/BusDelayAtStop.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/FactoryDelayAtStop.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/FactoryDelayAtStop.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/FactoryDelayAtStop.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/MetroDelayAtStop.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/MetroDelayAtStop.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/TramDelayAtStop.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/compute-positions/strategy/TramDelayAtStop.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/gtfs-trip-run/GTFSTripCommonRunManager.js +2 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/gtfs-trip-run/GTFSTripCommonRunManager.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/interfaces/IPositionStateAndStopSequences.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/interfaces/TransformationInterfaces.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/interfaces/VPInterfaces.d.ts +2 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/DataRetentionTask.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/DataRetentionTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/PropagateDelayTask.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/PropagateDelayTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/UpdateRunsGtfsTripIdTask.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/UpdateRunsGtfsTripIdTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PositionsTransformation.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PositionsTransformation.js.map +1 -1
- package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js +1 -1
- package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js.map +1 -1
- package/dist/output-gateway/pid/PIDRouter.js +1 -1
- package/dist/output-gateway/pid/PIDRouter.js.map +1 -1
- package/dist/output-gateway/pid/data-access/DeparturesRepository.js +1 -1
- package/dist/output-gateway/pid/data-access/DeparturesRepository.js.map +1 -1
- package/dist/output-gateway/pid/index.d.ts +1 -1
- package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.d.ts +1 -12
- package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js +24 -102
- package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js.map +1 -1
- package/dist/output-gateway/vehicle-positions/data-access/helpers/PositionOutputMapper.js +1 -1
- package/dist/output-gateway/vehicle-positions/data-access/helpers/PositionOutputMapper.js.map +1 -1
- package/dist/output-gateway/vehicle-positions/data-access/views/TripWithLastPositionRepository.js +2 -2
- package/dist/output-gateway/vehicle-positions/data-access/views/TripWithLastPositionRepository.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/interfaces/IRouteDto.d.ts +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/RouteDto.d.ts +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/precomputed/DeparturesModel.d.ts +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/precomputed/DeparturesModel.js +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/precomputed/DeparturesModel.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/precomputed/interfaces/IDeparturesModel.d.ts +1 -1
- package/dist/schema-definitions/ropid-vymi/RopidVYMISDMA.d.ts +1 -1
- package/dist/schema-definitions/vehicle-descriptors/models/DescriptorModel.d.ts +2 -2
- package/dist/schema-definitions/vehicle-descriptors/models/DescriptorModel.js +1 -1
- package/dist/schema-definitions/vehicle-descriptors/models/DescriptorModel.js.map +1 -1
- package/dist/schema-definitions/vehicle-descriptors/models/interfaces/IDescriptorOutputDto.d.ts +2 -2
- package/dist/schema-definitions/vehicle-positions/models/CommonRunsMessagesModel.d.ts +1 -1
- package/dist/schema-definitions/vehicle-positions/models/PositionDto.d.ts +1 -1
- package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.d.ts +1 -1
- package/dist/schema-definitions/vehicle-positions/models/interfaces/ICommonRunsMessagesModel.d.ts +1 -1
- package/dist/schema-definitions/vehicle-positions/models/interfaces/IGtfsRtTripDto.d.ts +1 -1
- package/dist/schema-definitions/vehicle-positions/models/interfaces/IPositionDto.d.ts +1 -1
- package/dist/schema-definitions/vehicle-positions/models/interfaces/IVPTripsModel.d.ts +1 -1
- package/dist/schema-definitions/vehicle-positions/models/interfaces/IVPTripsPositionAttributes.d.ts +1 -1
- package/dist/schema-definitions/vehicle-positions/models/views/ProcessedPositionModel.d.ts +1 -1
- package/dist/schema-definitions/vehicle-positions/models/views/TripWithLastPositionModel.d.ts +2 -2
- package/dist/schema-definitions/vehicle-positions/models/views/interfaces/IProcessedPositionDto.d.ts +1 -1
- package/dist/schema-definitions/vehicle-positions/models/views/interfaces/ITripWithLastPositionDto.d.ts +2 -2
- package/dist/schema-definitions/vehicle-positions/redis/interfaces/IGtfsRunTripCacheDto.d.ts +1 -1
- package/docs/implementation_documentation.md +5 -0
- package/docs/openapi-output.yaml +45 -26
- package/package.json +2 -2
|
@@ -21,10 +21,10 @@ exports.vehiclepositionsRouter = exports.VehiclePositionsRouter = void 0;
|
|
|
21
21
|
const shared_1 = require("../shared");
|
|
22
22
|
const constants_1 = require("../shared/constants");
|
|
23
23
|
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
24
|
-
const Utils_1 = require("@golemio/core/dist/output-gateway/Utils");
|
|
25
|
-
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
26
24
|
const config_1 = require("@golemio/core/dist/output-gateway/config");
|
|
27
25
|
const redis_1 = require("@golemio/core/dist/output-gateway/redis");
|
|
26
|
+
const Utils_1 = require("@golemio/core/dist/output-gateway/Utils");
|
|
27
|
+
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
28
28
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
29
29
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
30
30
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
@@ -76,102 +76,23 @@ class VehiclePositionsRouter {
|
|
|
76
76
|
next(err);
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
this.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
catch (err) {
|
|
91
|
-
next(err);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
this.GetGtfsRtVehiclePositions = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
try {
|
|
96
|
-
const redisClient = redis_1.RedisConnector.getConnection();
|
|
97
|
-
const redisHGetAsync = (0, util_1.promisify)(redisClient.hget).bind(redisClient);
|
|
98
|
-
const file = yield redisHGetAsync("files:gtfsRt", "vehicle_positions.pb");
|
|
99
|
-
if (!file) {
|
|
100
|
-
throw new golemio_errors_1.GeneralError("not_found", "VehiclePositionsRouter", undefined, 404);
|
|
79
|
+
this.GetGtfsRtFeed = (fileName, sendAsJson = false) => {
|
|
80
|
+
return (_req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
try {
|
|
82
|
+
const redisClient = redis_1.RedisConnector.getConnection();
|
|
83
|
+
const redisHGetAsync = (0, util_1.promisify)(redisClient.hget).bind(redisClient);
|
|
84
|
+
const file = yield redisHGetAsync("files:gtfsRt", fileName);
|
|
85
|
+
if (!file) {
|
|
86
|
+
throw new golemio_errors_1.GeneralError("not_found", "VehiclePositionsRouter", undefined, 404);
|
|
87
|
+
}
|
|
88
|
+
res.setHeader("Content-Type", sendAsJson ? "application/json" : "application/octet-stream");
|
|
89
|
+
res.status(200).send(sendAsJson ? file : Buffer.from(file, "binary"));
|
|
101
90
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
catch (err) {
|
|
106
|
-
next(err);
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
/**
|
|
110
|
-
* Debug endpoint
|
|
111
|
-
*/
|
|
112
|
-
this.GetGtfsRtTripUpdatesJSON = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
113
|
-
try {
|
|
114
|
-
const redisClient = redis_1.RedisConnector.getConnection();
|
|
115
|
-
const redisHGetAsync = (0, util_1.promisify)(redisClient.hget).bind(redisClient);
|
|
116
|
-
const file = yield redisHGetAsync("files:gtfsRt", "trip_updates.json");
|
|
117
|
-
if (!file) {
|
|
118
|
-
throw new golemio_errors_1.GeneralError("not_found", "VehiclePositionsRouter", undefined, 404);
|
|
91
|
+
catch (err) {
|
|
92
|
+
next(err);
|
|
119
93
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
catch (err) {
|
|
124
|
-
next(err);
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
/**
|
|
128
|
-
* Debug endpoint
|
|
129
|
-
*/
|
|
130
|
-
this.GetGtfsRtVehiclePositionsJSON = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
131
|
-
try {
|
|
132
|
-
const redisClient = redis_1.RedisConnector.getConnection();
|
|
133
|
-
const redisHGetAsync = (0, util_1.promisify)(redisClient.hget).bind(redisClient);
|
|
134
|
-
const file = yield redisHGetAsync("files:gtfsRt", "vehicle_positions.json");
|
|
135
|
-
if (!file) {
|
|
136
|
-
throw new golemio_errors_1.GeneralError("not_found", "VehiclePositionsRouter", undefined, 404);
|
|
137
|
-
}
|
|
138
|
-
res.setHeader("Content-Type", "application/json");
|
|
139
|
-
res.status(200).send(file);
|
|
140
|
-
}
|
|
141
|
-
catch (err) {
|
|
142
|
-
next(err);
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
this.GetGtfsRtAlerts = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
146
|
-
try {
|
|
147
|
-
const redisClient = redis_1.RedisConnector.getConnection();
|
|
148
|
-
const redisHGetAsync = (0, util_1.promisify)(redisClient.hget).bind(redisClient);
|
|
149
|
-
const file = yield redisHGetAsync("files:gtfsRt", "alerts.pb");
|
|
150
|
-
if (!file) {
|
|
151
|
-
throw new golemio_errors_1.GeneralError("not_found", "VehiclePositionsRouter", undefined, 404);
|
|
152
|
-
}
|
|
153
|
-
res.setHeader("Content-Type", "application/octet-stream");
|
|
154
|
-
res.status(200).send(Buffer.from(file, "binary"));
|
|
155
|
-
}
|
|
156
|
-
catch (err) {
|
|
157
|
-
next(err);
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
this.GetGtfsRtAlertsJSON = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
161
|
-
try {
|
|
162
|
-
const redisClient = redis_1.RedisConnector.getConnection();
|
|
163
|
-
const redisHGetAsync = (0, util_1.promisify)(redisClient.hget).bind(redisClient);
|
|
164
|
-
const file = yield redisHGetAsync("files:gtfsRt", "alerts.json");
|
|
165
|
-
if (!file) {
|
|
166
|
-
throw new golemio_errors_1.GeneralError("not_found", "VehiclePositionsRouter", undefined, 404);
|
|
167
|
-
}
|
|
168
|
-
res.setHeader("Content-Type", "application/json");
|
|
169
|
-
res.status(200).send(file);
|
|
170
|
-
}
|
|
171
|
-
catch (err) {
|
|
172
|
-
next(err);
|
|
173
|
-
}
|
|
174
|
-
});
|
|
94
|
+
});
|
|
95
|
+
};
|
|
175
96
|
/**
|
|
176
97
|
* Initiates all routes. Should respond with correct data to a HTTP requests to all routes.
|
|
177
98
|
* @param {number|string} expire TTL for the caching middleware
|
|
@@ -194,12 +115,13 @@ class VehiclePositionsRouter {
|
|
|
194
115
|
(0, express_validator_1.query)("includeNotPublic").optional().isBoolean(),
|
|
195
116
|
(0, express_validator_1.query)("preferredTimezone").optional().isString(),
|
|
196
117
|
], Validation_1.checkErrors, (0, redis_1.useCacheMiddleware)(expire), this.GetOne);
|
|
197
|
-
this.router.get("/gtfsrt/trip_updates.pb", this.
|
|
198
|
-
this.router.get("/gtfsrt/
|
|
199
|
-
this.router.get("/gtfsrt/
|
|
200
|
-
this.router.get("/gtfsrt/vehicle_positions.json", this.
|
|
201
|
-
this.router.get("/gtfsrt/
|
|
202
|
-
this.router.get("/gtfsrt/alerts.pb", this.
|
|
118
|
+
this.router.get("/gtfsrt/trip_updates.pb", this.GetGtfsRtFeed("trip_updates.pb"));
|
|
119
|
+
this.router.get("/gtfsrt/trip_updates.json", this.GetGtfsRtFeed("trip_updates.json", true));
|
|
120
|
+
this.router.get("/gtfsrt/vehicle_positions.pb", this.GetGtfsRtFeed("vehicle_positions.pb"));
|
|
121
|
+
this.router.get("/gtfsrt/vehicle_positions.json", this.GetGtfsRtFeed("vehicle_positions.json", true));
|
|
122
|
+
this.router.get("/gtfsrt/pid_feed.pb", this.GetGtfsRtFeed("pid_feed.pb"));
|
|
123
|
+
this.router.get("/gtfsrt/alerts.pb", this.GetGtfsRtFeed("alerts.pb"));
|
|
124
|
+
this.router.get("/gtfsrt/alerts.json", this.GetGtfsRtFeed("alerts.json", true));
|
|
203
125
|
};
|
|
204
126
|
this.router = (0, express_1.Router)();
|
|
205
127
|
this.tripWithPositionRepository = data_access_1.repositories.tripWithLastPositionRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VehiclePositionsRouter.js","sourceRoot":"","sources":["../../../src/output-gateway/vehicle-positions/VehiclePositionsRouter.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;AAEH,sCAA8C;AAC9C,mDAAwD;AACxD,+FAA6F;AAC7F,mEAAiF;AACjF,6EAAkH;AAClH
|
|
1
|
+
{"version":3,"file":"VehiclePositionsRouter.js","sourceRoot":"","sources":["../../../src/output-gateway/vehicle-positions/VehiclePositionsRouter.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;AAEH,sCAA8C;AAC9C,mDAAwD;AACxD,+FAA6F;AAC7F,qEAAkE;AAClE,mEAA6F;AAC7F,mEAAiF;AACjF,6EAAkH;AAClH,+DAA4G;AAC5G,mFAA2E;AAC3E,6EAAwE;AACxE,gGAA+D;AAC/D,+BAAiC;AACjC,+CAA6C;AAG7C,MAAa,sBAAsB;IAI/B;QAMO,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,MAAM,iBAAiB,GAAG,yBAAgB,CAAC,oBAAoB,CAAC,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;YAC7F,MAAM,IAAI,GAAG,IAAA,gCAAe,EAAC,+BAA+B,EAAE,eAAM,CAAC,SAAS,CAAC,CAAC;YAChF,IAAI;gBACA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC;oBACxD,aAAa,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,SAAS;oBAC3D,kBAAkB,EAAE,IAAA,8BAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,kBAA4B,CAAC;oBAClF,gBAAgB,EAAE,IAAA,8BAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,gBAA0B,CAAC;oBAC9E,gBAAgB,EAAE,IAAA,8BAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,gBAA0B,CAAC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J;AAnHD,wDAmHC;AAED,MAAM,sBAAsB,GAAW,IAAI,sBAAsB,EAAE,CAAC,MAAM,CAAC;AAClE,wDAAsB"}
|
|
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.PositionOutputMapper = void 0;
|
|
15
15
|
const Geo_1 = require("@golemio/core/dist/output-gateway/Geo");
|
|
16
|
-
const const_1 = require("
|
|
16
|
+
const const_1 = require("../../../../const");
|
|
17
17
|
class PositionOutputMapper {
|
|
18
18
|
}
|
|
19
19
|
exports.PositionOutputMapper = PositionOutputMapper;
|
package/dist/output-gateway/vehicle-positions/data-access/helpers/PositionOutputMapper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PositionOutputMapper.js","sourceRoot":"","sources":["../../../../../src/output-gateway/vehicle-positions/data-access/helpers/PositionOutputMapper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,+DAAkI;AAClI,
|
|
1
|
+
{"version":3,"file":"PositionOutputMapper.js","sourceRoot":"","sources":["../../../../../src/output-gateway/vehicle-positions/data-access/helpers/PositionOutputMapper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,+DAAkI;AAClI,6CAAiD;AAEjD,MAAa,oBAAoB;;AAAjC,oDA+FC;AA9FiB,sCAAiB,GAAG,CAAC,IAA+B,EAAmB,EAAE;;IACnF,MAAM,KAAgF,IAAI,CAAC,MAAM,EAAE,EAA7F,EAAE,YAAY,EAAE,kBAAkB,EAAE,aAAa,GAAG,EAAE,OAAuC,EAAlC,gBAAgB,cAA3E,uDAA6E,CAAgB,CAAC;IAEpG,MAAM,UAAU,mBACZ,aAAa,EAAE;YACX,OAAO,EAAE,gBAAgB,CAAC,OAAO;YACjC,KAAK,EAAE;gBACH,MAAM,EAAE,gBAAgB,CAAC,KAAK;gBAC9B,iBAAiB,EAAE,gBAAgB,CAAC,kBAAkB;gBAC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AAC,0BAA0B;gBACrD,mBAAmB,EAAE,QAAQ,CAAC,mBAAmB;gBACjD,KAAK,EAAE,QAAQ,CAAC,KAAK;aACxB,CAAC;QACN,CAAC,CAAC,EACF,KAAK,EACL,KAAK,EACL,IAAI,CACP;KACJ,CAAC,CACL,CAAC;IAEF,OAAO,IAAA,+BAAyB,EAAC,UAAU,EAAE,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;AAC7F,CAAC,CAAC"}
|
package/dist/output-gateway/vehicle-positions/data-access/views/TripWithLastPositionRepository.js
CHANGED
|
@@ -48,8 +48,8 @@ const database_1 = require("@golemio/core/dist/output-gateway/database");
|
|
|
48
48
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
49
49
|
const moment_timezone_1 = __importDefault(require("@golemio/core/dist/shared/moment-timezone"));
|
|
50
50
|
const sequelize_1 = __importStar(require("@golemio/core/dist/shared/sequelize"));
|
|
51
|
-
const const_2 = require("
|
|
52
|
-
const RouteTypeEnums_1 = require("
|
|
51
|
+
const const_2 = require("../../../../const");
|
|
52
|
+
const RouteTypeEnums_1 = require("../../../../helpers/RouteTypeEnums");
|
|
53
53
|
const PositionOutputMapper_1 = require("../helpers/PositionOutputMapper");
|
|
54
54
|
const TRIP_WITH_ALL_POSITIONS_LIMIT = 100;
|
|
55
55
|
class TripWithLastPositionRepository extends output_gateway_1.SequelizeModel {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TripWithLastPositionRepository.js","sourceRoot":"","sources":["../../../../../src/output-gateway/vehicle-positions/data-access/views/TripWithLastPositionRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAAyD;AACzD,gEAAuC;AACvC,sFAAkE;AAClE,wFAA0D;AAC1D,yFAAwG;AACxG,sEAAmE;AACnE,+DAAuG;AACvG,+EAAmF;AACnF,yEAAiF;AAEjF,6EAAwE;AACxE,gGAA+D;AAC/D,iFAA8F;AAC9F,
|
|
1
|
+
{"version":3,"file":"TripWithLastPositionRepository.js","sourceRoot":"","sources":["../../../../../src/output-gateway/vehicle-positions/data-access/views/TripWithLastPositionRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAAyD;AACzD,gEAAuC;AACvC,sFAAkE;AAClE,wFAA0D;AAC1D,yFAAwG;AACxG,sEAAmE;AACnE,+DAAuG;AACvG,+EAAmF;AACnF,yEAAiF;AAEjF,6EAAwE;AACxE,gGAA+D;AAC/D,iFAA8F;AAC9F,6CAAiF;AACjF,uEAA+D;AAC/D,0EAAuE;AAIvE,MAAM,6BAA6B,GAAG,GAAG,CAAC;AAE1C,MAAa,8BAA+B,SAAQ,+BAAc;IAG9D;QACI,KAAK,CAAC,gCAAgC,EAAE,iCAAyB,CAAC,SAAS,EAAE,iCAAyB,CAAC,cAAc,EAAE;YACnH,MAAM,EAAE,iBAAS;SACpB,CAAC,CAAC;QAGA,cAAS,GAAG,CAAC,YAAoC,EAAE,EAAE;YACxD,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,2BAA2B,CAAC,cAAc,EAAE;gBACjF,EAAE,EAAE,eAAe;gBACnB,UAAU,EAAE,UAAU;aACzB,CAAC,CAAC;YAEH,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,YAAY,CAAC,qBAAqB,CAAC,cAAc,EAAE;gBAC7E,EAAE,EAAE,cAAc;gBAClB,UAAU,EAAE,iBAAiB;aAChC,CAAC,CAAC;YAEH,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,YAAY,CAAC,2BAA2B,CAAC,cAAc,EAAE;gBACnF,EAAE,EAAE,oBAAoB;gBACxB,UAAU,EAAE,6BAA6B;gBACzC,SAAS,EAAE,qBAAqB;gBAChC,KAAK,EAAE;oBACH,CAAC,mBAAS,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE;wBAChB,mBAAS,CAAC,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E;gBACpB,qBAAqB,CAAC,IAAI,CACtB,yBAAiB,CAAC,WAAW,EAC7B,yBAAiB,CAAC,YAAY,EAC9B,yBAAiB,CAAC,oBAAoB,EACtC,yBAAiB,CAAC,QAAQ,EAC1B,yBAAiB,CAAC,SAAS,CAC9B,CAAC;aACL;YACD,IAAI,gBAAgB,EAAE;gBAClB,qBAAqB,CAAC,IAAI,CAAC,yBAAiB,CAAC,UAAU,CAAC,CAAC;aAC5D;YAED,OAAO,qBAAqB,CAAC;QACjC,CAAC,CAAC;IA1OF,CAAC;IAwIM,MAAM;QACT,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;CAiGJ;AAlPD,wEAkPC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
2
|
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
-
import { GTFSRouteTypeEnum } from "
|
|
3
|
+
import { GTFSRouteTypeEnum } from "../../../helpers/RouteTypeEnums";
|
|
4
4
|
import { IRouteDto } from "../interfaces/IRouteDto";
|
|
5
5
|
export declare class RouteDto extends Model<IRouteDto> implements IRouteDto {
|
|
6
6
|
route_id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
2
|
import { Model, ModelAttributes, ModelIndexesOptions } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
-
import { GTFSRouteTypeEnum } from "
|
|
3
|
+
import { GTFSRouteTypeEnum } from "../../../../helpers/RouteTypeEnums";
|
|
4
4
|
import { IDeparturesModel } from "./interfaces/IDeparturesModel";
|
|
5
5
|
export declare class DeparturesModel extends Model<DeparturesModel> implements IDeparturesModel {
|
|
6
6
|
static TABLE_NAME: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeparturesModel = void 0;
|
|
4
4
|
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
-
const RouteTypeEnums_1 = require("
|
|
5
|
+
const RouteTypeEnums_1 = require("../../../../helpers/RouteTypeEnums");
|
|
6
6
|
class DeparturesModel extends sequelize_1.Model {
|
|
7
7
|
}
|
|
8
8
|
exports.DeparturesModel = DeparturesModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeparturesModel.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/ropid-gtfs/models/precomputed/DeparturesModel.ts"],"names":[],"mappings":";;;AACA,mEAA6G;AAC7G
|
|
1
|
+
{"version":3,"file":"DeparturesModel.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/ropid-gtfs/models/precomputed/DeparturesModel.ts"],"names":[],"mappings":";;;AACA,mEAA6G;AAC7G,uEAA+D;AAG/D,MAAa,eAAgB,SAAQ,iBAAsB;;AAA3D,0CAoMC;AAnMiB,0BAAU,GAAG,kCAAkC,CAAC;AAiChD,8BAAc,GAAqC;IAC7D,aAAa,EAAE;QACX,IAAI,EAAE,qBAAS,CAAC,QAAQ;QACxB,SAAS,EAAE,KAAK;KACnB;IACD,aAAa,EAAE,qBAAS,CAAC,MAAM,CAAC,EAAE,CAAC;IACnC,WAAW,EAAE,qBAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9B,aAAa,EAAE,qBAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAChC,YAAY,EAAE,qBAAS,CAAC,MAAM,CAAC,EAAE,CAAC;IAClC,gBAAgB,EAAE,qBAAS,CAAC,IAAI;IAChC,cAAc,EAAE,qBAAS,CAAC,MAAM,CAAC,EAAE,CAAC;IACpC,kBAAkB,EAAE,qBAAS,CAAC,IAAI;IAClC,OAAO,EAAE;QACL,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1B,SAAS,EAAE,KAAK;KACnB;IACD,SAAS,EAAE,qBAAS,CAAC,MAAM,CAAC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YACnB,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,QAAQ;SACjB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,gBAAgB,EAAE;YACd,IAAI,EAAE,QAAQ;SACjB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;SACjB;QACD,uBAAuB,EAAE;YACrB,IAAI,EAAE,QAAQ;SACjB;QACD,kBAAkB,EAAE;YAChB,IAAI,EAAE,SAAS;SAClB;QACD,YAAY,EAAE;YACV,IAAI,EAAE,QAAQ;SACjB;QACD,kBAAkB,EAAE;YAChB,IAAI,EAAE,SAAS;SAClB;QACD,YAAY,EAAE;YACV,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,QAAQ,EAAE,CAAC,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,CAAC;CACrE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
-
import { GTFSRouteTypeEnum } from "
|
|
2
|
+
import { GTFSRouteTypeEnum } from "../../helpers/RouteTypeEnums";
|
|
3
3
|
interface IRopidVYMIEventOutput {
|
|
4
4
|
vymi_id: number;
|
|
5
5
|
vymi_id_dtb: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
2
|
import { Model, ModelAttributes, ModelIndexesOptions } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
-
import { GTFSRouteTypeEnum } from "
|
|
4
|
-
import { VehicleDescriptorStateEnum } from "
|
|
3
|
+
import { GTFSRouteTypeEnum } from "../../../helpers/RouteTypeEnums";
|
|
4
|
+
import { VehicleDescriptorStateEnum } from "../../../helpers/VehicleDescriptorEnums";
|
|
5
5
|
import { IDescriptorAuditDto, IDescriptorOutputDto } from "./interfaces/IDescriptorOutputDto";
|
|
6
6
|
export declare class DescriptorModel extends Model<IDescriptorOutputDto & IDescriptorAuditDto> implements IDescriptorOutputDto {
|
|
7
7
|
static tableName: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DescriptorModel = void 0;
|
|
4
4
|
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
-
const VehicleDescriptorEnums_1 = require("
|
|
5
|
+
const VehicleDescriptorEnums_1 = require("../../../helpers/VehicleDescriptorEnums");
|
|
6
6
|
class DescriptorModel extends sequelize_1.Model {
|
|
7
7
|
}
|
|
8
8
|
exports.DescriptorModel = DescriptorModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptorModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/vehicle-descriptors/models/DescriptorModel.ts"],"names":[],"mappings":";;;AACA,mEAA6G;AAE7G
|
|
1
|
+
{"version":3,"file":"DescriptorModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/vehicle-descriptors/models/DescriptorModel.ts"],"names":[],"mappings":";;;AACA,mEAA6G;AAE7G,oFAAgF;AAGhF,MAAa,eAAgB,SAAQ,iBAAiD;;AAAtF,0CA0FC;AAzFiB,yBAAS,GAAG,sCAAsC,CAAC;AAkBnD,8BAAc,GAA2D;IACnF,EAAE,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE;IACjD,KAAK,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE;IACnD,mBAAmB,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE;IAClE,yBAAyB,EAAE,EAAE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AAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YAChF,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;SAC/E;QACD,QAAQ,EAAE;YACN,IAAI;YACJ,OAAO;YACP,qBAAqB;YACrB,2BAA2B;YAC3B,eAAe;YACf,UAAU;YACV,cAAc;YACd,MAAM;YACN,UAAU;YACV,iBAAiB;YACjB,oBAAoB;YACpB,kBAAkB;YAClB,OAAO;YACP,eAAe;YACf,WAAW;SACd;KACJ;CACJ,CAAC"}
|
package/dist/schema-definitions/vehicle-descriptors/models/interfaces/IDescriptorOutputDto.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GTFSRouteTypeEnum } from "
|
|
2
|
-
import { VehicleDescriptorStateEnum } from "
|
|
1
|
+
import { GTFSRouteTypeEnum } from "../../../../helpers/RouteTypeEnums";
|
|
2
|
+
import { VehicleDescriptorStateEnum } from "../../../../helpers/VehicleDescriptorEnums";
|
|
3
3
|
export interface IDescriptorOutputDto {
|
|
4
4
|
id: number;
|
|
5
5
|
state: VehicleDescriptorStateEnum;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
2
|
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
-
import { TCPEventEnum } from "
|
|
3
|
+
import { TCPEventEnum } from "../../../const";
|
|
4
4
|
import { ICommonRunsMessagesModel } from "./interfaces/ICommonRunsMessagesModel";
|
|
5
5
|
export declare class CommonRunsMessagesModel extends Model<CommonRunsMessagesModel> implements ICommonRunsMessagesModel {
|
|
6
6
|
static TABLE_NAME: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
2
|
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
-
import { PositionTrackingEnum, StatePositionEnum, StateProcessEnum, TCPEventEnum } from "
|
|
3
|
+
import { PositionTrackingEnum, StatePositionEnum, StateProcessEnum, TCPEventEnum } from "../../../const";
|
|
4
4
|
import { IPositionDto } from "./interfaces/IPositionDto";
|
|
5
5
|
export declare class PositionDto extends Model implements IPositionDto {
|
|
6
6
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
2
|
import { Model, ModelAttributes, ModelIndexesOptions } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
-
import { GTFSRouteTypeEnum } from "
|
|
3
|
+
import { GTFSRouteTypeEnum } from "../../../helpers/RouteTypeEnums";
|
|
4
4
|
import { IVPTripsModel } from "./interfaces/IVPTripsModel";
|
|
5
5
|
import { IVPTripsLastPositionContext } from "./interfaces/VPTripsLastPositionInterfaces";
|
|
6
6
|
export declare class VPTripsModel extends Model<VPTripsModel> implements IVPTripsModel {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PositionTrackingEnum, StatePositionEnum, StateProcessEnum, TCPEventEnum } from "
|
|
1
|
+
import { PositionTrackingEnum, StatePositionEnum, StateProcessEnum, TCPEventEnum } from "../../../../const";
|
|
2
2
|
export interface IPositionDto {
|
|
3
3
|
id: string;
|
|
4
4
|
asw_last_stop_id: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GTFSRouteTypeEnum } from "
|
|
1
|
+
import { GTFSRouteTypeEnum } from "../../../../helpers/RouteTypeEnums";
|
|
2
2
|
import { IVPTripsLastPositionContext } from "./VPTripsLastPositionInterfaces";
|
|
3
3
|
export interface IVPTripsModel {
|
|
4
4
|
cis_line_id: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
-
import { StatePositionEnum } from "
|
|
2
|
+
import { StatePositionEnum } from "../../../../const";
|
|
3
3
|
import { IProcessedPositionDto } from "./interfaces/IProcessedPositionDto";
|
|
4
4
|
export declare class ProcessedPositionModel extends Model<ProcessedPositionModel> implements IProcessedPositionDto {
|
|
5
5
|
static tableName: string;
|
package/dist/schema-definitions/vehicle-positions/models/views/TripWithLastPositionModel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
-
import { PositionTrackingEnum, StatePositionEnum } from "
|
|
3
|
-
import { GTFSRouteTypeEnum } from "
|
|
2
|
+
import { PositionTrackingEnum, StatePositionEnum } from "../../../../const";
|
|
3
|
+
import { GTFSRouteTypeEnum } from "../../../../helpers/RouteTypeEnums";
|
|
4
4
|
import { IDescriptorOutputDto } from "../../../vehicle-descriptors/models/interfaces/IDescriptorOutputDto";
|
|
5
5
|
import { IVehicleTypeDto } from "../interfaces/IVehicleTypeDto";
|
|
6
6
|
import { IProcessedPositionDto } from "./interfaces/IProcessedPositionDto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PositionTrackingEnum, StatePositionEnum } from "
|
|
2
|
-
import { GTFSRouteTypeEnum } from "
|
|
1
|
+
import { PositionTrackingEnum, StatePositionEnum } from "../../../../../const";
|
|
2
|
+
import { GTFSRouteTypeEnum } from "../../../../../helpers/RouteTypeEnums";
|
|
3
3
|
export interface ITripWithLastPositionDto {
|
|
4
4
|
id: string;
|
|
5
5
|
agency_name_real: string;
|
|
@@ -1018,6 +1018,11 @@ Worker má na starost stahování informací o vozidlech (např. dostupnost klim
|
|
|
1018
1018
|
- načtení souboru z Redis cache
|
|
1019
1019
|
- HGET files:gtfsRt vehicle_positions.json
|
|
1020
1020
|
|
|
1021
|
+
#### _/vehiclepositions/gtfsrt/pid_feed.pb_
|
|
1022
|
+
|
|
1023
|
+
- načtení souboru z Redis cache
|
|
1024
|
+
- HGET files:gtfsRt pid_feed.pb
|
|
1025
|
+
|
|
1021
1026
|
#### _/vehiclepositions/gtfsrt/alerts.pb_
|
|
1022
1027
|
|
|
1023
1028
|
- načtení souboru z Redis cache
|