@golemio/pid 2.20.1-dev.1446980737 → 2.20.1-dev.1454701289
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/20_jis_infotexts.sql +87 -184
- package/dist/integration-engine/vehicle-positions/workers/vehicle-descriptors/helpers/DescriptorFilter.js +3 -8
- package/dist/integration-engine/vehicle-positions/workers/vehicle-descriptors/helpers/DescriptorFilter.js.map +1 -1
- package/docs/openapi-output.yaml +53 -14
- package/package.json +1 -1
|
@@ -1,214 +1,117 @@
|
|
|
1
1
|
-- 0
|
|
2
|
-
INSERT INTO jis_infotexts
|
|
3
|
-
('40507cee-6468-488e-ba78-e36d9c20e67c','SEVERE','INLINE','2024-02-07 13:11:00.000+01',NULL,'{"cs": "Provoz tramvají směrem z centra na Starý Hloubětín z důvodu údržby přerušen do neděle 18:00. Zaveden autobus X-8.", "en": "No tram service in direction to Starý Hloubětín until Sunday 18:00 due to track maintenance. Replacement bus X-8 instated."}','2024-02-07 13:24:55.000',now() + interval '1 day');
|
|
2
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
3
|
+
VALUES ('40507cee-6468-488e-ba78-e36d9c20e67c', 'SEVERE', 'INLINE', '2024-02-07 13:11:00.000+01', NULL, '{"cs": "Provoz tramvají směrem z centra na Starý Hloubětín z důvodu údržby přerušen do neděle 18:00. Zaveden autobus X-8.", "en": "No tram service in direction to Starý Hloubětín until Sunday 18:00 due to track maintenance. Replacement bus X-8 instated."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
4
4
|
|
|
5
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops
|
|
6
|
-
('40507cee-6468-488e-ba78-e36d9c20e67c','U1131Z1P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
5
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
6
|
+
VALUES ('40507cee-6468-488e-ba78-e36d9c20e67c', 'U1131Z1P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
7
7
|
|
|
8
8
|
-- 1
|
|
9
|
-
INSERT INTO jis_infotexts
|
|
10
|
-
('6bdc3fdb-dd18-438b-878a-7972bddb0d92',
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'{"cs": "cca 8:30 - 9:15: VŠECHNY LINKY ODKLON do zast. BUDĚJOVICKÁ, stanice Kačerov uzavřena.", "en": "approx. 8:30 - 9:15: ALL LINES DEPARTURE to stop. BUDĚJOVICKÁ, station Kačerov closed."}',
|
|
16
|
-
'2024-02-07 13:24:55.000',
|
|
17
|
-
now() + interval '1 day');
|
|
18
|
-
|
|
19
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
20
|
-
('6bdc3fdb-dd18-438b-878a-7972bddb0d92','U1132Z1P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
21
|
-
('6bdc3fdb-dd18-438b-878a-7972bddb0d92','U663Z2P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
9
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
10
|
+
VALUES ('6bdc3fdb-dd18-438b-878a-7972bddb0d92', 'SEVERE', 'INLINE', '2024-03-05 08:30:00.000+02', NULL, '{"cs": "cca 8:30 - 9:15: VŠECHNY LINKY ODKLON do zast. BUDĚJOVICKÁ, stanice Kačerov uzavřena.", "en": "approx. 8:30 - 9:15: ALL LINES DEPARTURE to stop. BUDĚJOVICKÁ, station Kačerov closed."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
11
|
+
|
|
12
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
13
|
+
VALUES ('6bdc3fdb-dd18-438b-878a-7972bddb0d92', 'U1132Z1P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
14
|
+
('6bdc3fdb-dd18-438b-878a-7972bddb0d92', 'U663Z2P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
22
15
|
|
|
23
16
|
-- 2
|
|
24
|
-
INSERT INTO jis_infotexts
|
|
25
|
-
('eba39046-86d2-4f8c-aa39-932dfcfd6d0f',
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
'{"cs": "Cizí dopravní nehoda ve Psárském lese. Linka 332 je odkloněna přes Libeř, přičemž neobsluhuje zastávku Psáry,Domov Laguna.", "en": "Traffic accident in the Psar Forest. Line 332 is diverted via Libeř, while it does not serve the stop Psáry,Domov Laguna.."}',
|
|
31
|
-
'2024-02-07 13:24:55.000',
|
|
32
|
-
now() + interval '1 day');
|
|
33
|
-
|
|
34
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
35
|
-
('eba39046-86d2-4f8c-aa39-932dfcfd6d0f','U713Z102P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
36
|
-
('eba39046-86d2-4f8c-aa39-932dfcfd6d0f','U921Z102P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
17
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
18
|
+
VALUES ('eba39046-86d2-4f8c-aa39-932dfcfd6d0f', 'SEVERE', 'INLINE', '2024-03-04 13:11:00.000+02', NULL, '{"cs": "Cizí dopravní nehoda ve Psárském lese. Linka 332 je odkloněna přes Libeř, přičemž neobsluhuje zastávku Psáry,Domov Laguna.", "en": "Traffic accident in the Psar Forest. Line 332 is diverted via Libeř, while it does not serve the stop Psáry,Domov Laguna.."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
19
|
+
|
|
20
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
21
|
+
VALUES ('eba39046-86d2-4f8c-aa39-932dfcfd6d0f', 'U713Z102P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
22
|
+
('eba39046-86d2-4f8c-aa39-932dfcfd6d0f', 'U921Z102P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
37
23
|
|
|
38
24
|
-- 3
|
|
39
|
-
INSERT INTO jis_infotexts
|
|
40
|
-
('8556cf18-786b-453a-a516-85c8fe2b9878',
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
NULL,
|
|
45
|
-
'{"cs": "Dnes v noci tramvaje mimo provoz. Zastávky náhradních autobusů X8 a X90: směr Lehovec - vlevo, u Lidlu; směr Palmovka - na chodníku u původní tramvajové zastávky.", "en": "Trams out of service tonight. Stopping points for replacement buses X8 and X90: direction Lehovec - left, near Lidl; direction Palmovka - on the pavement near the original tram stop."}',
|
|
46
|
-
'2024-02-07 13:24:55.000',
|
|
47
|
-
now() + interval '1 day');
|
|
48
|
-
|
|
49
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
50
|
-
('8556cf18-786b-453a-a516-85c8fe2b9878','U1334Z2P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
25
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
26
|
+
VALUES ('8556cf18-786b-453a-a516-85c8fe2b9878', 'SEVERE', 'INLINE', '2024-03-02 10:00:00.000+02', NULL, '{"cs": "Dnes v noci tramvaje mimo provoz. Zastávky náhradních autobusů X8 a X90: směr Lehovec - vlevo, u Lidlu; směr Palmovka - na chodníku u původní tramvajové zastávky.", "en": "Trams out of service tonight. Stopping points for replacement buses X8 and X90: direction Lehovec - left, near Lidl; direction Palmovka - on the pavement near the original tram stop."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
27
|
+
|
|
28
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
29
|
+
VALUES ('8556cf18-786b-453a-a516-85c8fe2b9878', 'U1334Z2P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
51
30
|
|
|
52
31
|
-- 4
|
|
53
|
-
INSERT INTO jis_infotexts
|
|
54
|
-
('9923c199-d61c-47fa-9f7e-14d01473eb18',
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
'{"cs": "Dnes v sobotu 8. konání půl maratonu. Od 16h do 23h změna trasy linek 392, 395, 500, 501, 502, 503, 506, 517, 531, 754. Podrobnosti na zastávkách a pid.cz/zmeny", "en": "Today on Saturday the 8th holding of the half marathon. From 16h to 23h change of route of lines 392, 395, 500, 501, 502, 503, 506, 517, 531, 754. Details at the stops and pid.cz/changes"}',
|
|
60
|
-
'2024-02-07 13:24:55.000',
|
|
61
|
-
now() + interval '1 day');
|
|
62
|
-
|
|
63
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
64
|
-
('9923c199-d61c-47fa-9f7e-14d01473eb18','U376Z105P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
65
|
-
('8556cf18-786b-453a-a516-85c8fe2b9878','U21Z1P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
32
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
33
|
+
VALUES ('9923c199-d61c-47fa-9f7e-14d01473eb18', 'SEVERE', 'GENERAL', '2024-03-18 16:00:00.000+02', NULL, '{"cs": "Dnes v sobotu 8. konání půl maratonu. Od 16h do 23h změna trasy linek 392, 395, 500, 501, 502, 503, 506, 517, 531, 754. Podrobnosti na zastávkách a pid.cz/zmeny", "en": "Today on Saturday the 8th holding of the half marathon. From 16h to 23h change of route of lines 392, 395, 500, 501, 502, 503, 506, 517, 531, 754. Details at the stops and pid.cz/changes"}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
34
|
+
|
|
35
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
36
|
+
VALUES ('9923c199-d61c-47fa-9f7e-14d01473eb18', 'U376Z105P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
37
|
+
('8556cf18-786b-453a-a516-85c8fe2b9878', 'U21Z1P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
66
38
|
|
|
67
39
|
-- 5
|
|
68
|
-
INSERT INTO jis_infotexts
|
|
69
|
-
('0a3c97d0-43d4-4882-8a1d-27079044f51b',
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
'{"cs": "Do 15:00 je zastávka mimo provoz. Linky 1, 12 a 25 odjíždí ze stanoviště D, od nábřeží. Linky 8 jede ze stanoviště E od Výstaviště, linka 26 zde neprojíždí.", "en": "The stop is out of service until 15:00. Lines 1, 12 and 25 depart from Station D, from the waterfront. Line 8 departs from station E from the Exhibition Grounds, line 26 does not run here."}',
|
|
75
|
-
'2024-02-07 13:24:55.000',
|
|
76
|
-
now() + interval '1 day');
|
|
77
|
-
|
|
78
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
79
|
-
('0a3c97d0-43d4-4882-8a1d-27079044f51b','U476Z104P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
80
|
-
('0a3c97d0-43d4-4882-8a1d-27079044f51b','U476Z103P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
40
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
41
|
+
VALUES ('0a3c97d0-43d4-4882-8a1d-27079044f51b', 'SEVERE', 'INLINE', '2024-03-25 10:00:00.000+02', NULL, '{"cs": "Do 15:00 je zastávka mimo provoz. Linky 1, 12 a 25 odjíždí ze stanoviště D, od nábřeží. Linky 8 jede ze stanoviště E od Výstaviště, linka 26 zde neprojíždí.", "en": "The stop is out of service until 15:00. Lines 1, 12 and 25 depart from Station D, from the waterfront. Line 8 departs from station E from the Exhibition Grounds, line 26 does not run here."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
42
|
+
|
|
43
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
44
|
+
VALUES ('0a3c97d0-43d4-4882-8a1d-27079044f51b', 'U476Z104P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
45
|
+
('0a3c97d0-43d4-4882-8a1d-27079044f51b', 'U476Z103P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
81
46
|
|
|
82
47
|
-- 6
|
|
83
|
-
INSERT INTO jis_infotexts
|
|
84
|
-
('ba52df69-5db3-4c60-94be-8f4b5442c1e0',
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
'{"cs": "Do 16:00 zde nejezdí tramvaje z důvodu údržby tratě, mezi Palmovkou a Lehovcem využijte náhradní autobus X-8.", "en": "Trams do not run here until 16:00 due to track maintenance, use the alternative bus X-8 between Palmovka and Lehovec."}',
|
|
90
|
-
'2024-02-07 13:24:55.000',
|
|
91
|
-
now() + interval '1 day');
|
|
92
|
-
|
|
93
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
94
|
-
('ba52df69-5db3-4c60-94be-8f4b5442c1e0','U953Z102P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
95
|
-
('ba52df69-5db3-4c60-94be-8f4b5442c1e0','U21Z2P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
48
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
49
|
+
VALUES ('ba52df69-5db3-4c60-94be-8f4b5442c1e0', 'SEVERE', 'INLINE', '2024-03-11 13:11:00.000+02', NULL, '{"cs": "Do 16:00 zde nejezdí tramvaje z důvodu údržby tratě, mezi Palmovkou a Lehovcem využijte náhradní autobus X-8.", "en": "Trams do not run here until 16:00 due to track maintenance, use the alternative bus X-8 between Palmovka and Lehovec."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
50
|
+
|
|
51
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
52
|
+
VALUES ('ba52df69-5db3-4c60-94be-8f4b5442c1e0', 'U953Z102P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
53
|
+
('ba52df69-5db3-4c60-94be-8f4b5442c1e0', 'U21Z2P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
96
54
|
|
|
97
55
|
-- 7
|
|
98
|
-
INSERT INTO jis_infotexts
|
|
99
|
-
('ee330c7f-cf53-4762-a231-08af9f22442f',
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
'2024-08-10 18:00:00.000+02',
|
|
104
|
-
'{"cs": "Do 18:00 údržba tramvajové trati Hlubočepy – Slivenec. Tram 12 a 20 zkráceny do zastávky Hlubočepy.", "en": "Until 18:00 maintenance of the tram line Hlubočepy - Slivenec. Tram 12 and 20 shortened to the Hlubočepy stop."}',
|
|
105
|
-
'2024-02-07 13:24:55.000',
|
|
106
|
-
now() + interval '1 day');
|
|
107
|
-
|
|
108
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
109
|
-
('ee330c7f-cf53-4762-a231-08af9f22442f','U118Z102P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
56
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
57
|
+
VALUES ('ee330c7f-cf53-4762-a231-08af9f22442f', 'SEVERE', 'INLINE', '2024-03-04 10:00:00.000+02', '2024-08-10 18:00:00.000+02', '{"cs": "Do 18:00 údržba tramvajové trati Hlubočepy – Slivenec. Tram 12 a 20 zkráceny do zastávky Hlubočepy.", "en": "Until 18:00 maintenance of the tram line Hlubočepy - Slivenec. Tram 12 and 20 shortened to the Hlubočepy stop."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
58
|
+
|
|
59
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
60
|
+
VALUES ('ee330c7f-cf53-4762-a231-08af9f22442f', 'U118Z102P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
110
61
|
|
|
111
62
|
-- 8
|
|
112
|
-
INSERT INTO jis_infotexts
|
|
113
|
-
('265cdc5b-d6da-48e0-a114-6901200c4d46',
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
'2024-09-11 00:00:00.000+02',
|
|
118
|
-
'{"cs": "Do 10.9. 24:00 nepojedou tramvaje mezi Výstavištěm a Strossmayerovým náměstím. Pro cestu na Strossmayerovo náměstí použijte linky 12 nebo 17.", "en": "Trams will not run between Výstaviště and Strossmayer Square until 24:00 on 24 April. Use lines 12 or 17 to get to Strossmayer Square."}',
|
|
119
|
-
'2024-02-07 13:24:55.000',
|
|
120
|
-
now() + interval '1 day');
|
|
121
|
-
|
|
122
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
123
|
-
('265cdc5b-d6da-48e0-a114-6901200c4d46','U462Z102P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
63
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
64
|
+
VALUES ('265cdc5b-d6da-48e0-a114-6901200c4d46', 'SEVERE', 'GENERAL', '2024-03-27 10:00:00.000+02', '2024-09-11 00:00:00.000+02', '{"cs": "Do 10.9. 24:00 nepojedou tramvaje mezi Výstavištěm a Strossmayerovým náměstím. Pro cestu na Strossmayerovo náměstí použijte linky 12 nebo 17.", "en": "Trams will not run between Výstaviště and Strossmayer Square until 24:00 on 24 April. Use lines 12 or 17 to get to Strossmayer Square."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
65
|
+
|
|
66
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
67
|
+
VALUES ('265cdc5b-d6da-48e0-a114-6901200c4d46', 'U462Z102P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
124
68
|
|
|
125
69
|
-- 9
|
|
126
|
-
INSERT INTO jis_infotexts
|
|
127
|
-
('adfd2cef-9c2c-4ed0-bd0d-be0b3216faad',
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
'2024-09-22 00:00:00.000+02',
|
|
132
|
-
'{"cs": "Do nedělní půlnoci přerušen provoz odsud na Výstaviště. Linka 6 jede přes Pražskou tržnici. Polovina spojů 17 odkloněna přes Pražskou tržnici a Nádraží Holešovice. Druhá polovina pokračuje jako 27 přes Letnou na Špejchar. Využijte náhradní autobus X6.", "en": "Until Sunday midnight no tram service from here to Výstaviště. Tram 6 diverted via Pražská tržnice. Every other tram 17 diverted via Pražská tržnice and Nádraží Holešovice. The rest of 17 turns left to end at Špejchar. Use substitute bus X6."}',
|
|
133
|
-
'2024-02-07 13:24:55.000',
|
|
134
|
-
now() + interval '1 day');
|
|
135
|
-
|
|
136
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
137
|
-
('adfd2cef-9c2c-4ed0-bd0d-be0b3216faad','U209Z102P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
70
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
71
|
+
VALUES ('adfd2cef-9c2c-4ed0-bd0d-be0b3216faad', 'SEVERE', 'INLINE', '2024-03-28 09:00:00.000+02', '2024-09-22 00:00:00.000+02', '{"cs": "Do nedělní půlnoci přerušen provoz odsud na Výstaviště. Linka 6 jede přes Pražskou tržnici. Polovina spojů 17 odkloněna přes Pražskou tržnici a Nádraží Holešovice. Druhá polovina pokračuje jako 27 přes Letnou na Špejchar. Využijte náhradní autobus X6.", "en": "Until Sunday midnight no tram service from here to Výstaviště. Tram 6 diverted via Pražská tržnice. Every other tram 17 diverted via Pražská tržnice and Nádraží Holešovice. The rest of 17 turns left to end at Špejchar. Use substitute bus X6."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
72
|
+
|
|
73
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
74
|
+
VALUES ('adfd2cef-9c2c-4ed0-bd0d-be0b3216faad', 'U209Z102P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
138
75
|
|
|
139
76
|
-- 10
|
|
140
|
-
INSERT INTO jis_infotexts
|
|
141
|
-
('15bd72da-a3da-484b-b592-742deab84b55',
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
now() + interval '1 day');
|
|
149
|
-
|
|
150
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
151
|
-
('15bd72da-a3da-484b-b592-742deab84b55','U476Z102P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
152
|
-
('15bd72da-a3da-484b-b592-742deab84b55','U276Z106P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
153
|
-
('15bd72da-a3da-484b-b592-742deab84b55','U181Z1P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
154
|
-
('15bd72da-a3da-484b-b592-742deab84b55','U1131Z2P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
77
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
78
|
+
VALUES ('15bd72da-a3da-484b-b592-742deab84b55', 'WARNING', 'INLINE', '2024-03-22 13:11:00.000+02', '2024-10-06 13:11:00.000+02', '{"cs": "Do pondělní půlnoci probíhá výluka metra C mezi I. P. Pavlova a Nádraží Holešovice. Náhradní autobus X-C navazuje ze zastávky I. P. Pavlova.", "en": "Until Monday midnight, the C metro station is closed between I. P. Pavlova and Nádraží Holešovice. A replacement bus X-C will connect from the stop I. P. Pavlova."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
79
|
+
|
|
80
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
81
|
+
VALUES ('15bd72da-a3da-484b-b592-742deab84b55', 'U476Z102P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
82
|
+
('15bd72da-a3da-484b-b592-742deab84b55', 'U276Z106P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
83
|
+
('15bd72da-a3da-484b-b592-742deab84b55', 'U181Z1P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
84
|
+
('15bd72da-a3da-484b-b592-742deab84b55', 'U1131Z2P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
155
85
|
|
|
156
86
|
-- 11
|
|
157
|
-
INSERT INTO jis_infotexts
|
|
158
|
-
('a7446544-a907-4b9f-877b-b29458ad9c82',
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
now() + interval '1 day');
|
|
166
|
-
|
|
167
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
168
|
-
('a7446544-a907-4b9f-877b-b29458ad9c82','U1131Z1P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
169
|
-
('a7446544-a907-4b9f-877b-b29458ad9c82','U276Z106P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
170
|
-
('a7446544-a907-4b9f-877b-b29458ad9c82','U181Z1P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
171
|
-
('a7446544-a907-4b9f-877b-b29458ad9c82','U1131Z2P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
87
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
88
|
+
VALUES ('a7446544-a907-4b9f-877b-b29458ad9c82', 'SEVERE', 'INLINE', '2024-03-16 10:00:00.000+02', '2024-05-15 00:00:00.000+02', '{"cs": "Do pondělní půlnoci probíhá výluka metra C mezi Nádražím Holešovice a I. P. Pavlova. Náhradní autobus X-C odjíždí z nástupiště C (jako bus 201).", "en": "Until Monday midnight, the C metro station is closed between Nádraž Holešovice and I. P. Pavlova. The replacement bus X-C departs from platform C (as bus 201)."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
89
|
+
|
|
90
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
91
|
+
VALUES ('a7446544-a907-4b9f-877b-b29458ad9c82', 'U1131Z1P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
92
|
+
('a7446544-a907-4b9f-877b-b29458ad9c82', 'U276Z106P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
93
|
+
('a7446544-a907-4b9f-877b-b29458ad9c82', 'U181Z1P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
94
|
+
('a7446544-a907-4b9f-877b-b29458ad9c82', 'U1131Z2P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
172
95
|
|
|
173
96
|
-- 12
|
|
174
|
-
INSERT INTO jis_infotexts
|
|
175
|
-
('07a8449a-52b2-4266-a611-89d2b8758637',
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
'2024-11-20 00:00:00.000+02',
|
|
180
|
-
'{"cs": "Do pondělní půlnoci probíhá výluka metra C mezi Nádražím Holešovice a I. P. Pavlova. Zastávky náhradního autobusu X-C jsou na Florenci nahoře na magistrále.", "en": "Until Monday midnight, the C metro station is closed between Nádraž Holešovice and I. P. Pavlova. The stops of the replacement bus X-C are at Florence at the top of the main line."}',
|
|
181
|
-
'2024-02-07 13:24:55.000',
|
|
182
|
-
now() + interval '1 day');
|
|
183
|
-
|
|
184
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
185
|
-
('07a8449a-52b2-4266-a611-89d2b8758637','U1131Z2P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
97
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
98
|
+
VALUES ('07a8449a-52b2-4266-a611-89d2b8758637', 'SEVERE', 'INLINE', '2024-09-10 17:00:00.000+02', '2024-11-20 00:00:00.000+02', '{"cs": "Do pondělní půlnoci probíhá výluka metra C mezi Nádražím Holešovice a I. P. Pavlova. Zastávky náhradního autobusu X-C jsou na Florenci nahoře na magistrále.", "en": "Until Monday midnight, the C metro station is closed between Nádraž Holešovice and I. P. Pavlova. The stops of the replacement bus X-C are at Florence at the top of the main line."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
99
|
+
|
|
100
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
101
|
+
VALUES ('07a8449a-52b2-4266-a611-89d2b8758637', 'U1131Z2P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
186
102
|
|
|
187
103
|
-- 13
|
|
188
|
-
INSERT INTO jis_infotexts
|
|
189
|
-
('59a0b461-df44-42a6-940f-2abf0fd4e980',
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
'{"cs": "Do pondělí 12.6. bude uzavřen tento vstup do metra. Vstup od zastávky tramvaje v ulici Plynární zůstává v provozu.", "en": "This entrance to the metro will be closed until Monday 12 June. The entrance from the tram stop in Plynární Street will remain open."}',
|
|
195
|
-
'2024-02-07 13:24:55.000',
|
|
196
|
-
now() + interval '1 day');
|
|
197
|
-
|
|
198
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
199
|
-
('59a0b461-df44-42a6-940f-2abf0fd4e980','U52Z4P','2024-04-19 09:00:00+02',now() + interval '1 day'),
|
|
200
|
-
('59a0b461-df44-42a6-940f-2abf0fd4e980','U1341Z1P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
104
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
105
|
+
VALUES ('59a0b461-df44-42a6-940f-2abf0fd4e980', 'INFO', 'GENERAL', '2024-03-01 00:00.000+02', '2024-06-12 00:00.000+02', '{"cs": "Do pondělí 12.6. bude uzavřen tento vstup do metra. Vstup od zastávky tramvaje v ulici Plynární zůstává v provozu.", "en": "This entrance to the metro will be closed until Monday 12 June. The entrance from the tram stop in Plynární Street will remain open."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
106
|
+
|
|
107
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
108
|
+
VALUES ('59a0b461-df44-42a6-940f-2abf0fd4e980', 'U52Z4P', '2024-04-19 09:00:00+02', now() + interval '1 day'),
|
|
109
|
+
('59a0b461-df44-42a6-940f-2abf0fd4e980', 'U1341Z1P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
201
110
|
|
|
202
111
|
-- 14
|
|
203
|
-
INSERT INTO jis_infotexts
|
|
204
|
-
('e9a15133-e606-406b-b492-9af05c643e7a',
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
'{"cs": "Do pondělí probíhá výluka metra C mezi I. P. Pavlova a Nádraží Holešovice. Náhradní autobus X-C navazuje ze zastávky I. P. Pavlova.", "en": "Until Monday, the C metro station is closed between I. P. Pavlova and Nádraží Holešovice. The replacement bus X-C will connect from the stop I. P. Pavlova."}',
|
|
210
|
-
'2024-02-07 13:24:55.000',
|
|
211
|
-
now() + interval '1 day');
|
|
212
|
-
|
|
213
|
-
INSERT INTO jis_infotexts_ropidgtfs_stops (infotext_id,stop_id,created_at,updated_at) VALUES
|
|
214
|
-
('e9a15133-e606-406b-b492-9af05c643e7a','U52Z2P','2024-04-19 09:00:00+02',now() + interval '1 day');
|
|
112
|
+
INSERT INTO jis_infotexts(id, severity_level, display_type, active_period_start, active_period_end, description_text, created_at, updated_at)
|
|
113
|
+
VALUES ('e9a15133-e606-406b-b492-9af05c643e7a', 'SEVERE', 'INLINE', '2024-03-27 00:00:00.000+02', '2024-09-22 00:00:00.000+02', '{"cs": "Do pondělí probíhá výluka metra C mezi I. P. Pavlova a Nádraží Holešovice. Náhradní autobus X-C navazuje ze zastávky I. P. Pavlova.", "en": "Until Monday, the C metro station is closed between I. P. Pavlova and Nádraží Holešovice. The replacement bus X-C will connect from the stop I. P. Pavlova."}', '2024-02-07 13:24:55.000', now() + interval '1 day');
|
|
114
|
+
|
|
115
|
+
INSERT INTO jis_infotexts_ropidgtfs_stops(infotext_id, stop_id, created_at, updated_at)
|
|
116
|
+
VALUES ('e9a15133-e606-406b-b492-9af05c643e7a', 'U52Z2P', '2024-04-19 09:00:00+02', now() + interval '1 day');
|
|
117
|
+
|
|
@@ -32,13 +32,8 @@ let DescriptorFilter = exports.DescriptorFilter = class DescriptorFilter {
|
|
|
32
32
|
*/
|
|
33
33
|
*yieldFilteredDescriptors(descriptors) {
|
|
34
34
|
const sortedDescriptors = descriptors.sort((a, b) => {
|
|
35
|
-
|
|
36
|
-
this.getKeyWithState(b.registration_number, b.gtfs_route_type, b.state))
|
|
37
|
-
return -1;
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return 1;
|
|
41
|
-
}
|
|
35
|
+
return (this.getKeyWithState(a.registration_number, a.gtfs_route_type, a.state) -
|
|
36
|
+
this.getKeyWithState(b.registration_number, b.gtfs_route_type, b.state));
|
|
42
37
|
});
|
|
43
38
|
const seenCombinations = new Set();
|
|
44
39
|
for (const descriptor of sortedDescriptors) {
|
|
@@ -59,7 +54,7 @@ let DescriptorFilter = exports.DescriptorFilter = class DescriptorFilter {
|
|
|
59
54
|
}
|
|
60
55
|
}
|
|
61
56
|
getKeyWithState(registration_number, gtfs_route_type, state) {
|
|
62
|
-
return `${registration_number}
|
|
57
|
+
return parseInt(`${registration_number}${gtfs_route_type}${Object.values(VehicleDescriptorEnums_1.VehicleDescriptorStateEnum).indexOf(state)}`);
|
|
63
58
|
}
|
|
64
59
|
};
|
|
65
60
|
exports.DescriptorFilter = DescriptorFilter = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptorFilter.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/vehicle-positions/workers/vehicle-descriptors/helpers/DescriptorFilter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,wEAAqE;AAErE,iEAAwE;AAExE,0FAA4G;AAGrG,IAAM,gBAAgB,8BAAtB,MAAM,gBAAgB;IACzB,YAAsC,MAAuB;QAAf,WAAM,GAAN,MAAM,CAAS;
|
|
1
|
+
{"version":3,"file":"DescriptorFilter.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/vehicle-positions/workers/vehicle-descriptors/helpers/DescriptorFilter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,wEAAqE;AAErE,iEAAwE;AAExE,0FAA4G;AAGrG,IAAM,gBAAgB,8BAAtB,MAAM,gBAAgB;IACzB,YAAsC,MAAuB;QAAf,WAAM,GAAN,MAAM,CAAS;QAgCrD,iBAAY,GAAG,CAAC,KAAa,EAAuC,EAAE;YAC1E,OAAO,MAAM,CAAC,MAAM,CAAC,mDAA0B,CAAC,CAAC,QAAQ,CAAC,KAAmC,CAAC,CAAC;QACnG,CAAC,CAAC;QAEM,oBAAe,GAAG,CAAC,QAAgB,EAA6C,EAAE;YACtF,OAAO,MAAM,CAAC,MAAM,CAAC,sDAA6B,CAAC,CAAC,QAAQ,CAAC,QAAyC,CAAC,CAAC;QAC5G,CAAC,CAAC;IAtC8D,CAAC;IAEjE;;;OAGG;IACI,CAAC,wBAAwB,CAAC,WAAmC;QAChE,MAAM,iBAAiB,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAChD,OAAO,CACH,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC;gBACvE,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAC1E,CAAC;QACN,CAAC,CAAC,CAAC;QAEH,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAU,CAAC;QAC3C,KAAK,MAAM,UAAU,IAAI,iBAAiB,EAAE;YACxC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC;YAC7E,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE;gBAC5D,MAAM,WAAW,GAAG,GAAG,mBAAmB,IAAI,eAAe,EAAE,CAAC;gBAChE,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;oBACpC,gBAAgB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;oBAClC,MAAM,UAAU,CAAC;iBACpB;qBAAM;oBACH,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,gBAAgB,mBAAmB,mBAAmB,eAAe,aAAa,CAC7G,CAAC;iBACL;aACJ;iBAAM;gBACH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,oBAAoB,KAAK,iBAAiB,QAAQ,EAAE,CAAC,CAAC;aAClG;SACJ;IACL,CAAC;IASO,eAAe,CAAC,mBAA2B,EAAE,eAAuB,EAAE,KAAa;QACvF,OAAO,QAAQ,CACX,GAAG,mBAAmB,GAAG,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,mDAA0B,CAAC,CAAC,OAAO,CACxF,KAAmC,CACtC,EAAE,CACN,CAAC;IACN,CAAC;CACJ,CAAA;2BAhDY,gBAAgB;IAD5B,IAAA,qBAAU,GAAE;IAEI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAD5B,gBAAgB,CAgD5B"}
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -570,7 +570,28 @@ paths:
|
|
|
570
570
|
/v2/vehiclepositions:
|
|
571
571
|
get:
|
|
572
572
|
summary: GET All Vehicle Positions
|
|
573
|
-
description:
|
|
573
|
+
description: |
|
|
574
|
+
Positions in one the following states are included by default:
|
|
575
|
+
- `at_stop` - The position is tracking and the closest anchor point or metro rail track segment is a stop.
|
|
576
|
+
- `on_track` - The position is tracking, but is neither `at_stop` nor `off_track`.
|
|
577
|
+
|
|
578
|
+
Using the `includeNotTracking` parameter, positions in one the following states can be additionally included:
|
|
579
|
+
- `after_track` - The position is not tracking and the trip's last known position is tracking. For metro positions, this can also mean that it is tracking, the vehicle is 200+ meters from the closest metro rail track segment of its track and the vehicle's message attributes `tm` and `odch` or higher than the arrival to the final stop. For other positions from TCP sources (DPP buses and trams), this can also mean that it is tracking and the vehicle sent a message while at the final stop or sent a message with the `tjr` attribute higher than the arrival to the final stop.
|
|
580
|
+
- `before_track` - The position is not tracking and either the trip's previous position is not known, or the previous position's state is `at_stop` or `on_track`.
|
|
581
|
+
- `before_track_delayed` - The last position of the vehicle's trip that is of state `before_track` or `invisible`, with a delay predicted based on the vehicle's previous trip.
|
|
582
|
+
- `canceled` - The position is canceled.
|
|
583
|
+
- `off_track` - The position is tracking and the vehicle is 200+ meters from the closest anchor point or metro rail track segment of its track. For metro positions, it is additionally required that the vehicle's message attributes `tm` and `odch` or less than or equal to the arrival to the final stop.
|
|
584
|
+
|
|
585
|
+
Using the `includeNotPublic` parameter, positions in the following state can be additionally included:
|
|
586
|
+
- `not_public` - The position belongs to a non-public trip (trip without run schedule).
|
|
587
|
+
|
|
588
|
+
The following states also exist internally but are excluded from the API output:
|
|
589
|
+
- `duplicate` - The position is not tracking, the trip's last known position is tracking and there is another position with identical `origin_timestamp`.
|
|
590
|
+
- `invisible` - The position is not tracking and either:
|
|
591
|
+
- the trip's previous position is not known or the previous position's state is `at_stop` or `on_track`, and the vehicle is on its way from the garage;
|
|
592
|
+
- or the trip's last known position is tracking and the vehicle is on its way to the garage.
|
|
593
|
+
- `mismatched` - The position does not make sense (e.g. it was sent late and thus has a mismatched stop sequence).
|
|
594
|
+
- `unknown` - The position is not yet processed (or was determined to never be processed).
|
|
574
595
|
tags:
|
|
575
596
|
- 🛤 PID Realtime Positions (v2)
|
|
576
597
|
parameters:
|
|
@@ -2570,8 +2591,7 @@ components:
|
|
|
2570
2591
|
type: string
|
|
2571
2592
|
example: "service-3-8585"
|
|
2572
2593
|
state_position:
|
|
2573
|
-
|
|
2574
|
-
example: "at_stop"
|
|
2594
|
+
$ref: "#/components/schemas/StatePosition"
|
|
2575
2595
|
required:
|
|
2576
2596
|
- gtfs_trip_id
|
|
2577
2597
|
- route_type
|
|
@@ -2630,17 +2650,8 @@ components:
|
|
|
2630
2650
|
description: "Delay of the vehicle in seconds."
|
|
2631
2651
|
example: 10
|
|
2632
2652
|
state_position:
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
example: at_stop
|
|
2636
|
-
enum:
|
|
2637
|
-
- before_track
|
|
2638
|
-
- before_track_delayed
|
|
2639
|
-
- at_stop
|
|
2640
|
-
- on_track
|
|
2641
|
-
- off_track
|
|
2642
|
-
- after_track
|
|
2643
|
-
- unknown
|
|
2653
|
+
nullable: true
|
|
2654
|
+
$ref: "#/components/schemas/StatePosition"
|
|
2644
2655
|
last_stop_sequence:
|
|
2645
2656
|
type: integer
|
|
2646
2657
|
nullable: true
|
|
@@ -2746,6 +2757,34 @@ components:
|
|
|
2746
2757
|
nullable: true
|
|
2747
2758
|
example: true
|
|
2748
2759
|
|
|
2760
|
+
StatePosition:
|
|
2761
|
+
type: string
|
|
2762
|
+
example: at_stop
|
|
2763
|
+
enum:
|
|
2764
|
+
- at_stop
|
|
2765
|
+
- before_track
|
|
2766
|
+
- before_track_delayed
|
|
2767
|
+
- canceled
|
|
2768
|
+
- off_track
|
|
2769
|
+
- on_track
|
|
2770
|
+
description: |
|
|
2771
|
+
- `at_stop` - The position is tracking and the closest anchor point or metro rail track segment is a stop.
|
|
2772
|
+
- `before_track` - The position is not tracking and either the trip's previous position is not known, or the previous position's state is `at_stop` or `on_track`.
|
|
2773
|
+
- `before_track_delayed` - The last position of the vehicle's trip that is of state `before_track` or `invisible`, with a delay predicted based on the vehicle's previous trip.
|
|
2774
|
+
- `canceled` - The position is canceled.
|
|
2775
|
+
- `off_track` - The position is tracking and the vehicle is 200+ meters from the closest anchor point or metro rail track segment of its track. For metro positions, it is additionally required that the vehicle's message attributes `tm` and `odch` or less than or equal to the arrival to the final stop.
|
|
2776
|
+
- `on_track` - The position is tracking, but is neither `at_stop` nor `off_track`.
|
|
2777
|
+
|
|
2778
|
+
The following states also exist internally but are excluded from the API output:
|
|
2779
|
+
- `after_track` - The position is not tracking and the trip's last known position is tracking. For metro positions, this can also mean that it is tracking, the vehicle is 200+ meters from the closest metro rail track segment of its track and the vehicle's message attributes `tm` and `odch` or higher than the arrival to the final stop. For other positions from TCP sources (DPP buses and trams), this can also mean that it is tracking and the vehicle sent a message while at the final stop or sent a message with the `tjr` attribute higher than the arrival to the final stop.
|
|
2780
|
+
- `duplicate` - The position is not tracking, the trip's last known position is tracking and there is another position with identical `origin_timestamp`.
|
|
2781
|
+
- `invisible` - The position is not tracking and either:
|
|
2782
|
+
- the trip's previous position is not known or the previous position's state is `at_stop` or `on_track`, and the vehicle is on its way from the garage;
|
|
2783
|
+
- or the trip's last known position is tracking and the vehicle is on its way to the garage.
|
|
2784
|
+
- `mismatched` - The position does not make sense (e.g. it was sent late and thus has a mismatched stop sequence).
|
|
2785
|
+
- `not_public` - The position belongs to a non-public trip (trip without run schedule).
|
|
2786
|
+
- `unknown` - The position is not yet processed (or was determined to never be processed).
|
|
2787
|
+
|
|
2749
2788
|
PublicTripShapeFeatureCollection:
|
|
2750
2789
|
type: object
|
|
2751
2790
|
properties:
|