@golemio/fcd 1.2.9-dev.1315648742 → 1.2.10-dev.1439696418
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/sql_dump.sql +15 -15
- package/db/migrations/postgresql/.config.json +2 -2
- package/dist/input-gateway/FloatingCarDataRouter.d.ts +0 -1
- package/dist/input-gateway/FloatingCarDataRouter.js +0 -9
- package/dist/input-gateway/FloatingCarDataRouter.js.map +1 -1
- package/docs/assets/schemas/floating_car_data_schema.xml +18254 -18254
- package/docs/index.md +3 -0
- package/package.json +1 -1
package/db/example/sql_dump.sql
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
INSERT INTO fcd_traff_params_part
|
|
2
|
-
(publication_time, source_identification, measurement_or_calculation_time, predefined_location, version_of_predefined_location, traffic_level, queue_exists, queue_length, from_point, to_point, data_quality, input_values, average_vehicle_speed, travel_time, free_flow_travel_time, free_flow_speed, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by)
|
|
3
|
-
VALUES('2021-09-21 01:36:59.000', 'TS10125T10123', '2021-09-21 01:36:01.000', 'TS10125T10123', 2, 'level2', false, NULL, NULL, NULL, 0.5, 1, 35, 31, 23, 46, NULL, '2021-10-18 11:01:16.534', NULL, NULL, '2021-10-18 11:01:16.534', NULL);
|
|
4
|
-
INSERT INTO fcd_traff_params_part
|
|
5
|
-
(publication_time, source_identification, measurement_or_calculation_time, predefined_location, version_of_predefined_location, traffic_level, queue_exists, queue_length, from_point, to_point, data_quality, input_values, average_vehicle_speed, travel_time, free_flow_travel_time, free_flow_speed, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by)
|
|
6
|
-
VALUES('2021-09-21 01:36:59.000', 'TS10127T19629', '2021-09-21 01:36:01.000', 'TS10127T19629', 2, 'level1', false, NULL, NULL, NULL, 0.5, 1, 47, 26, 25, 48, NULL, '2021-10-18 11:01:16.534', NULL, NULL, '2021-10-18 11:01:16.534', NULL);
|
|
7
|
-
INSERT INTO fcd_traff_params_part
|
|
8
|
-
(publication_time, source_identification, measurement_or_calculation_time, predefined_location, version_of_predefined_location, traffic_level, queue_exists, queue_length, from_point, to_point, data_quality, input_values, average_vehicle_speed, travel_time, free_flow_travel_time, free_flow_speed, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by)
|
|
9
|
-
VALUES('2021-09-21 01:36:59.000', 'TS10182T24828', '2021-09-21 01:36:01.000', 'TS10182T24828', 2, 'level1', false, NULL, NULL, NULL, 0.833, 3, 91, 87, 106, 76, NULL, '2021-10-18 11:01:16.534', NULL, NULL, '2021-10-18 11:01:16.534', NULL);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
DELETE from traffic.rsd_tmc_osm_mapping;
|
|
13
|
-
|
|
14
|
-
INSERT INTO traffic.rsd_tmc_osm_mapping (lt_start,lt_end,osm_path) VALUES
|
|
15
|
-
(10125,10123,'[1837041102, 8418051939, 7881860434, 1837022954, 1837022956, 1837022966, 977504781, 8404188228, 5216395186, 2674815365, 977504746, 8402974140, 1017997574, 1017997516, 1017997560, 1017997515, 8403075909, 8403127730, 8403075911, 8403075912, 8403127735]'),
|
|
1
|
+
INSERT INTO fcd_traff_params_part
|
|
2
|
+
(publication_time, source_identification, measurement_or_calculation_time, predefined_location, version_of_predefined_location, traffic_level, queue_exists, queue_length, from_point, to_point, data_quality, input_values, average_vehicle_speed, travel_time, free_flow_travel_time, free_flow_speed, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by)
|
|
3
|
+
VALUES('2021-09-21 01:36:59.000', 'TS10125T10123', '2021-09-21 01:36:01.000', 'TS10125T10123', 2, 'level2', false, NULL, NULL, NULL, 0.5, 1, 35, 31, 23, 46, NULL, '2021-10-18 11:01:16.534', NULL, NULL, '2021-10-18 11:01:16.534', NULL);
|
|
4
|
+
INSERT INTO fcd_traff_params_part
|
|
5
|
+
(publication_time, source_identification, measurement_or_calculation_time, predefined_location, version_of_predefined_location, traffic_level, queue_exists, queue_length, from_point, to_point, data_quality, input_values, average_vehicle_speed, travel_time, free_flow_travel_time, free_flow_speed, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by)
|
|
6
|
+
VALUES('2021-09-21 01:36:59.000', 'TS10127T19629', '2021-09-21 01:36:01.000', 'TS10127T19629', 2, 'level1', false, NULL, NULL, NULL, 0.5, 1, 47, 26, 25, 48, NULL, '2021-10-18 11:01:16.534', NULL, NULL, '2021-10-18 11:01:16.534', NULL);
|
|
7
|
+
INSERT INTO fcd_traff_params_part
|
|
8
|
+
(publication_time, source_identification, measurement_or_calculation_time, predefined_location, version_of_predefined_location, traffic_level, queue_exists, queue_length, from_point, to_point, data_quality, input_values, average_vehicle_speed, travel_time, free_flow_travel_time, free_flow_speed, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by)
|
|
9
|
+
VALUES('2021-09-21 01:36:59.000', 'TS10182T24828', '2021-09-21 01:36:01.000', 'TS10182T24828', 2, 'level1', false, NULL, NULL, NULL, 0.833, 3, 91, 87, 106, 76, NULL, '2021-10-18 11:01:16.534', NULL, NULL, '2021-10-18 11:01:16.534', NULL);
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
DELETE from traffic.rsd_tmc_osm_mapping;
|
|
13
|
+
|
|
14
|
+
INSERT INTO traffic.rsd_tmc_osm_mapping (lt_start,lt_end,osm_path) VALUES
|
|
15
|
+
(10125,10123,'[1837041102, 8418051939, 7881860434, 1837022954, 1837022956, 1837022966, 977504781, 8404188228, 5216395186, 2674815365, 977504746, 8402974140, 1017997574, 1017997516, 1017997560, 1017997515, 8403075909, 8403127730, 8403075911, 8403075912, 8403127735]'),
|
|
16
16
|
(10127,19629,'[29381030, 29403193, 338604070, 29381028, 338604072, 29403192, 2681371748, 1138616634, 2681371747, 308815174,1138624651, 29403191]');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": "fcd, public"
|
|
1
|
+
{
|
|
2
|
+
"schema": "fcd, public"
|
|
3
3
|
}
|
|
@@ -11,9 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.floatingCarDataRouter = exports.FloatingCarDataRouter = void 0;
|
|
13
13
|
const FcdPragueController_1 = require("./FcdPragueController");
|
|
14
|
-
const LoggerEmitter_1 = require("@golemio/core/dist/helpers/logger/LoggerEmitter");
|
|
15
14
|
const CheckContentTypeMiddleware_1 = require("@golemio/core/dist/input-gateway/helpers/CheckContentTypeMiddleware");
|
|
16
|
-
const ioc_1 = require("@golemio/core/dist/input-gateway/ioc");
|
|
17
15
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
18
16
|
const FcdRegionsController_1 = require("./FcdRegionsController");
|
|
19
17
|
class FloatingCarDataRouter {
|
|
@@ -34,19 +32,12 @@ class FloatingCarDataRouter {
|
|
|
34
32
|
this.floatingCarData = (controller, req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
35
33
|
try {
|
|
36
34
|
yield controller.processData(req.body);
|
|
37
|
-
const numberOfRecords = (JSON.stringify(req.body.d2LogicalModel.payloadPublication.elaboratedData || {}).match(/basicData/g) || []).length;
|
|
38
|
-
const metrics = {
|
|
39
|
-
numberOfRecords,
|
|
40
|
-
req,
|
|
41
|
-
};
|
|
42
|
-
this.loggerEmitter.emit(LoggerEmitter_1.LoggerEventType.NumberOfRecords, metrics);
|
|
43
35
|
res.sendStatus(204);
|
|
44
36
|
}
|
|
45
37
|
catch (err) {
|
|
46
38
|
next(err);
|
|
47
39
|
}
|
|
48
40
|
});
|
|
49
|
-
this.loggerEmitter = ioc_1.InputGatewayContainer.resolve(ioc_1.ContainerToken.LoggerEmitter);
|
|
50
41
|
this.initRoutes();
|
|
51
42
|
}
|
|
52
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingCarDataRouter.js","sourceRoot":"","sources":["../../src/input-gateway/FloatingCarDataRouter.ts"],"names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