@golemio/pid 2.11.6-dev.1158774210 → 2.11.6

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.
@@ -6,8 +6,10 @@ INSERT INTO vehiclepositions_vehicle_descriptors (id,state,registration_number,r
6
6
  (14,'zar',9366,1,NULL,'Dopravní podnik hl. m. Prahy','Škoda','15T5','tramvaj',0,true,false,'CVR Tommy Hilfiger – Klenoty Aurum, bílá s modrými a červenými pruhy',NULL,NULL,NULL,now(),NULL,NULL,now(),NULL),
7
7
  (15,'zar',9366,1,'8T0 XXXX','ARRIVA STŘEDNÍ ČECHY','SOR','C 10.5','autobus',3,false,false,'Veolia, červená s šedým pruhem',NULL,NULL,NULL,now(),NULL,NULL,now(),NULL),
8
8
  (16,'zar',8582,2,'5SX XXXX','OAD Kolín','Iveco','Crossway LE LINE 12M','autobus',3,false,false,'schéma PID, šedá s červenými svislými pruhy',NULL,NULL,NULL,now(),NULL,NULL,now(),NULL),
9
- (17,'zar',8581,2,'5SU XXXX','OAD Kolín','Iveco','Crossway LE LINE 12M','autobus',3,true,false,'schéma PID, šedá s červenými svislými pruhy',NULL,NULL,NULL,now(),NULL,NULL,now(),NULL);
9
+ (17,'zar',8581,2,'5SU XXXX','OAD Kolín','Iveco','Crossway LE LINE 12M','autobus',3,true,false,'schéma PID, šedá s červenými svislými pruhy',NULL,NULL,NULL,now(),NULL,NULL,now(),NULL),
10
+ (18,'zar',3927,2,'7AP 7543','Dopravní podnik hl. m. Prahy','SOR','NB 12','autobus',3,true,false,'městské schéma, červeno-bílá',null,null,NULL,now(),NULL,NULL,now(),NULL);
11
+
10
12
 
11
13
  -- To be deleted by the test
12
14
  INSERT INTO vehiclepositions_vehicle_descriptors (id,state,registration_number,registration_number_index,license_plate,"operator",manufacturer,"type",traction,gtfs_route_type,is_air_conditioned,has_usb_chargers,paint,thumbnail_url,photo_url,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
13
- (18,'zar',1094,1,'5AC XXXX','ČSAD Česká Lípa','Iveco','Crossway LINE 12M','autobus',3,true,false,'bílá',NULL,NULL,NULL,now() - interval '1 day',NULL,NULL,now() - interval '1 day',NULL);
15
+ (19,'zar',1094,1,'5AC XXXX','ČSAD Česká Lípa','Iveco','Crossway LINE 12M','autobus',3,true,false,'bílá',NULL,NULL,NULL,now() - interval '1 day',NULL,NULL,now() - interval '1 day',NULL);
@@ -0,0 +1,308 @@
1
+ {
2
+ "stop_times": [
3
+ {
4
+ "arrival_time": "16:53:00",
5
+ "departure_time": "16:53:00",
6
+ "shape_dist_traveled": 0,
7
+ "stop_headsign": null,
8
+ "stop_id": "U1040Z19P",
9
+ "stop_sequence": 1,
10
+ "arrival_time_seconds": 60780,
11
+ "departure_time_seconds": 60780,
12
+ "stop": {
13
+ "stop_id": "U1040Z19P",
14
+ "stop_lat": 50.068737,
15
+ "stop_lon": 14.404152,
16
+ "stop_name": "Na Knížecí",
17
+ "zone_id": "P",
18
+ "wheelchair_boarding": 0
19
+ }
20
+ },
21
+ {
22
+ "arrival_time": "16:55:00",
23
+ "departure_time": "16:55:00",
24
+ "shape_dist_traveled": 0.65801,
25
+ "stop_headsign": null,
26
+ "stop_id": "U638Z1P",
27
+ "stop_sequence": 2,
28
+ "arrival_time_seconds": 60900,
29
+ "departure_time_seconds": 60900,
30
+ "stop": {
31
+ "stop_id": "U638Z1P",
32
+ "stop_lat": 50.066711,
33
+ "stop_lon": 14.399107,
34
+ "stop_name": "Santoška",
35
+ "zone_id": "P",
36
+ "wheelchair_boarding": 0
37
+ }
38
+ },
39
+ {
40
+ "arrival_time": "16:57:00",
41
+ "departure_time": "16:57:00",
42
+ "shape_dist_traveled": 1.209992,
43
+ "stop_headsign": null,
44
+ "stop_id": "U835Z1P",
45
+ "stop_sequence": 3,
46
+ "arrival_time_seconds": 61020,
47
+ "departure_time_seconds": 61020,
48
+ "stop": {
49
+ "stop_id": "U835Z1P",
50
+ "stop_lat": 50.065201,
51
+ "stop_lon": 14.393001,
52
+ "stop_name": "Václavka",
53
+ "zone_id": "P",
54
+ "wheelchair_boarding": 0
55
+ }
56
+ },
57
+ {
58
+ "arrival_time": "16:59:00",
59
+ "departure_time": "16:59:00",
60
+ "shape_dist_traveled": 1.606345,
61
+ "stop_headsign": null,
62
+ "stop_id": "U363Z1P",
63
+ "stop_sequence": 4,
64
+ "arrival_time_seconds": 61140,
65
+ "departure_time_seconds": 61140,
66
+ "stop": {
67
+ "stop_id": "U363Z1P",
68
+ "stop_lat": 50.064968,
69
+ "stop_lon": 14.3883,
70
+ "stop_name": "Malvazinky",
71
+ "zone_id": "P",
72
+ "wheelchair_boarding": 0
73
+ }
74
+ },
75
+ {
76
+ "arrival_time": "17:00:00",
77
+ "departure_time": "17:00:00",
78
+ "shape_dist_traveled": 1.992387,
79
+ "stop_headsign": null,
80
+ "stop_id": "U815Z1P",
81
+ "stop_sequence": 5,
82
+ "arrival_time_seconds": 61200,
83
+ "departure_time_seconds": 61200,
84
+ "stop": {
85
+ "stop_id": "U815Z1P",
86
+ "stop_lat": 50.062717,
87
+ "stop_lon": 14.3842,
88
+ "stop_name": "Urbanova",
89
+ "zone_id": "P",
90
+ "wheelchair_boarding": 0
91
+ }
92
+ },
93
+ {
94
+ "arrival_time": "17:01:00",
95
+ "departure_time": "17:01:00",
96
+ "shape_dist_traveled": 2.315504,
97
+ "stop_headsign": null,
98
+ "stop_id": "U116Z1P",
99
+ "stop_sequence": 6,
100
+ "arrival_time_seconds": 61260,
101
+ "departure_time_seconds": 61260,
102
+ "stop": {
103
+ "stop_id": "U116Z1P",
104
+ "stop_lat": 50.060677,
105
+ "stop_lon": 14.381,
106
+ "stop_name": "Farkáň",
107
+ "zone_id": "P",
108
+ "wheelchair_boarding": 0
109
+ }
110
+ },
111
+ {
112
+ "arrival_time": "17:02:00",
113
+ "departure_time": "17:02:00",
114
+ "shape_dist_traveled": 2.881882,
115
+ "stop_headsign": null,
116
+ "stop_id": "U396Z3P",
117
+ "stop_sequence": 7,
118
+ "arrival_time_seconds": 61320,
119
+ "departure_time_seconds": 61320,
120
+ "stop": {
121
+ "stop_id": "U396Z3P",
122
+ "stop_lat": 50.058533,
123
+ "stop_lon": 14.374084,
124
+ "stop_name": "U Waltrovky",
125
+ "zone_id": "P",
126
+ "wheelchair_boarding": 0
127
+ }
128
+ }
129
+ ],
130
+ "shapes": [
131
+ {
132
+ "dist": 0,
133
+ "coords": [14.404205, 50.068688]
134
+ },
135
+ {
136
+ "dist": 0.01058,
137
+ "coords": [14.404082, 50.068635]
138
+ },
139
+ {
140
+ "dist": 0.044712,
141
+ "coords": [14.403617, 50.068567]
142
+ },
143
+ {
144
+ "dist": 0.059745,
145
+ "coords": [14.40366, 50.068434]
146
+ },
147
+ {
148
+ "dist": 0.084765,
149
+ "coords": [14.403721, 50.068213]
150
+ },
151
+ {
152
+ "dist": 0.200199,
153
+ "coords": [14.402149, 50.067983]
154
+ },
155
+ {
156
+ "dist": 0.295907,
157
+ "coords": [14.401721, 50.068798]
158
+ },
159
+ {
160
+ "dist": 0.360976,
161
+ "coords": [14.400827, 50.068691]
162
+ },
163
+ {
164
+ "dist": 0.403178,
165
+ "coords": [14.400279, 50.068552]
166
+ },
167
+ {
168
+ "dist": 0.472604,
169
+ "coords": [14.399364, 50.068343]
170
+ },
171
+ {
172
+ "dist": 0.517881,
173
+ "coords": [14.399381, 50.067937]
174
+ },
175
+ {
176
+ "dist": 0.603356,
177
+ "coords": [14.399419, 50.067168]
178
+ },
179
+ {
180
+ "dist": 0.617285,
181
+ "coords": [14.399374, 50.067046]
182
+ },
183
+ {
184
+ "dist": 0.65801,
185
+ "coords": [14.399237, 50.066691]
186
+ },
187
+ {
188
+ "dist": 0.687292,
189
+ "coords": [14.399138, 50.066436]
190
+ },
191
+ {
192
+ "dist": 0.768563,
193
+ "coords": [14.398926, 50.065718]
194
+ },
195
+ {
196
+ "dist": 0.944574,
197
+ "coords": [14.396494, 50.065484]
198
+ },
199
+ {
200
+ "dist": 1.057871,
201
+ "coords": [14.394951, 50.06571]
202
+ },
203
+ {
204
+ "dist": 1.144033,
205
+ "coords": [14.393905, 50.065326]
206
+ },
207
+ {
208
+ "dist": 1.209992,
209
+ "coords": [14.393026, 50.06515]
210
+ },
211
+ {
212
+ "dist": 1.302185,
213
+ "coords": [14.391796, 50.064903]
214
+ },
215
+ {
216
+ "dist": 1.413343,
217
+ "coords": [14.390305, 50.064625]
218
+ },
219
+ {
220
+ "dist": 1.427235,
221
+ "coords": [14.390125, 50.064673]
222
+ },
223
+ {
224
+ "dist": 1.513142,
225
+ "coords": [14.389478, 50.065323]
226
+ },
227
+ {
228
+ "dist": 1.5457,
229
+ "coords": [14.389047, 50.065231]
230
+ },
231
+ {
232
+ "dist": 1.606345,
233
+ "coords": [14.388344, 50.064926]
234
+ },
235
+ {
236
+ "dist": 1.693733,
237
+ "coords": [14.387331, 50.064488]
238
+ },
239
+ {
240
+ "dist": 1.79135,
241
+ "coords": [14.386246, 50.063956]
242
+ },
243
+ {
244
+ "dist": 1.85738,
245
+ "coords": [14.385572, 50.063551]
246
+ },
247
+ {
248
+ "dist": 1.877629,
249
+ "coords": [14.385358, 50.063432]
250
+ },
251
+ {
252
+ "dist": 1.956502,
253
+ "coords": [14.384609, 50.062912]
254
+ },
255
+ {
256
+ "dist": 1.992387,
257
+ "coords": [14.384258, 50.062682]
258
+ },
259
+ {
260
+ "dist": 2.023509,
261
+ "coords": [14.383954, 50.062482]
262
+ },
263
+ {
264
+ "dist": 2.108156,
265
+ "coords": [14.383142, 50.061928]
266
+ },
267
+ {
268
+ "dist": 2.242171,
269
+ "coords": [14.381833, 50.061068]
270
+ },
271
+ {
272
+ "dist": 2.315504,
273
+ "coords": [14.381076, 50.060623]
274
+ },
275
+ {
276
+ "dist": 2.355064,
277
+ "coords": [14.380668, 50.060383]
278
+ },
279
+ {
280
+ "dist": 2.385935,
281
+ "coords": [14.380306, 50.060233]
282
+ },
283
+ {
284
+ "dist": 2.504636,
285
+ "coords": [14.378887, 50.05968]
286
+ },
287
+ {
288
+ "dist": 2.566321,
289
+ "coords": [14.378125, 50.059422]
290
+ },
291
+ {
292
+ "dist": 2.618876,
293
+ "coords": [14.377484, 50.059192]
294
+ },
295
+ {
296
+ "dist": 2.692306,
297
+ "coords": [14.376667, 50.058793]
298
+ },
299
+ {
300
+ "dist": 2.740389,
301
+ "coords": [14.376057, 50.058611]
302
+ },
303
+ {
304
+ "dist": 2.881882,
305
+ "coords": [14.374089, 50.058498]
306
+ }
307
+ ]
308
+ }
@@ -0,0 +1,37 @@
1
+ [
2
+ {
3
+ "sequence": 1,
4
+ "arr_delay": -12,
5
+ "dep_delay": 17
6
+ },
7
+ {
8
+ "sequence": 2,
9
+ "arr_delay": null,
10
+ "dep_delay": 133
11
+ },
12
+ {
13
+ "sequence": 3,
14
+ "arr_delay": 83,
15
+ "dep_delay": 113
16
+ },
17
+ {
18
+ "sequence": 4,
19
+ "arr_delay": 35,
20
+ "dep_delay": 80
21
+ },
22
+ {
23
+ "sequence": 5,
24
+ "arr_delay": 80,
25
+ "dep_delay": 80
26
+ },
27
+ {
28
+ "sequence": 6,
29
+ "arr_delay": 80,
30
+ "dep_delay": 80
31
+ },
32
+ {
33
+ "sequence": 7,
34
+ "arr_delay": 80,
35
+ "dep_delay": 80
36
+ }
37
+ ]
@@ -1,42 +1,50 @@
1
1
  [
2
2
  {
3
- "gtfs_trip_id": "705_735_231002",
3
+ "gtfs_trip_id": "137_2032_240103",
4
4
  "route_type": 3,
5
- "gtfs_route_short_name": "705",
6
- "lat": 49.90276,
7
- "lng": 15.4047,
8
- "bearing": 221,
9
- "delay": null,
10
- "vehicle_id": "service-3-8585",
5
+ "gtfs_route_short_name": "137",
6
+ "lat": 50.06061,
7
+ "lng": 14.38097,
8
+ "bearing": 229,
9
+ "delay": 89,
11
10
  "state_position": "on_track",
11
+ "vehicle_id": "service-3-3927",
12
12
  "detailed_info": {
13
- "origin_route_name": "705",
14
- "shape_id": null,
15
- "run_number": 29,
16
- "trip_headsign": "Nádraží 1",
17
- "shape_dist_traveled": 7.035025,
18
- "last_stop_sequence": 3,
19
- "origin_timestamp": "2024-03-23T14:00:00.000Z"
13
+ "is_wheelchair_accessible": true,
14
+ "origin_route_name": "137",
15
+ "shape_id": "L137V2",
16
+ "run_number": 1,
17
+ "trip_headsign": "U Waltrovky",
18
+ "shape_dist_traveled": 2.316,
19
+ "last_stop_sequence": 6,
20
+ "origin_timestamp": "2024-02-01T16:02:29.000Z",
21
+ "registration_number": 3927,
22
+ "operator": "DP PRAHA",
23
+ "vehicle_type_id": 3
20
24
  }
21
25
  },
22
26
  {
23
- "gtfs_trip_id": "781_4_231030",
27
+ "gtfs_trip_id": "535_31_231201",
24
28
  "route_type": 3,
25
- "gtfs_route_short_name": "781",
26
- "lat": 49.92452,
27
- "lng": 15.4669,
28
- "bearing": 305,
29
- "delay": 211,
30
- "vehicle_id": "service-3-7630",
29
+ "gtfs_route_short_name": "535",
30
+ "lat": 50.02284,
31
+ "lng": 15.21076,
32
+ "bearing": 149,
33
+ "delay": 11,
31
34
  "state_position": "on_track",
35
+ "vehicle_id": "service-3-8650",
32
36
  "detailed_info": {
33
- "origin_route_name": "781",
34
- "shape_id": null,
35
- "run_number": 19,
36
- "trip_headsign": "Nádraží 2",
37
- "shape_dist_traveled": 8.035025,
38
- "last_stop_sequence": 4,
39
- "origin_timestamp": "2024-03-23T14:00:20.000Z"
37
+ "is_wheelchair_accessible": true,
38
+ "origin_route_name": "421",
39
+ "shape_id": "L535V4",
40
+ "run_number": 69,
41
+ "trip_headsign": "Kolín,nádraží",
42
+ "shape_dist_traveled": 27.545,
43
+ "last_stop_sequence": 20,
44
+ "origin_timestamp": "2024-02-01T16:02:59.000Z",
45
+ "registration_number": 8650,
46
+ "operator": "OAD KOLÍN (Nymburk)",
47
+ "vehicle_type_id": 4
40
48
  }
41
49
  }
42
50
  ]
@@ -47,7 +47,7 @@ class RopidGTFSTripsModel extends models_1.PostgresModel {
47
47
  model: this.modelGTFSStopTimes.sequelizeModel,
48
48
  include: [
49
49
  {
50
- attributes: ["stop_id", "stop_lat", "stop_lon", "stop_name", "zone_id"],
50
+ attributes: ["stop_id", "stop_lat", "stop_lon", "stop_name", "zone_id", "wheelchair_boarding"],
51
51
  as: "stop",
52
52
  model: this.modelGTFSStops.sequelizeModel,
53
53
  required: true,
@@ -1 +1 @@
1
- {"version":3,"file":"RopidGTFSTripsModel.js","sourceRoot":"","sources":["../../../src/integration-engine/ropid-gtfs/RopidGTFSTripsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0DAAuC;AACvC,oEAA4C;AAC5C,gFAAyD;AACzD,yEAAqF;AACrF,mFAAkF;AAClF,oFAA4D;AAC5D,wBAAuF;AAGvF,MAAa,mBAAoB,SAAQ,sBAAa;IAKlD;QACI,KAAK,CACD,sBAAS,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,EAC9B;YACI,yBAAyB,EAAE,sBAAS,CAAC,KAAK,CAAC,yBAAyB;YACpE,WAAW,EAAE,sBAAS,CAAC,KAAK,CAAC,WAAW;YACxC,QAAQ,EAAE,iBAAS;YACnB,UAAU,EAAE,YAAY;SAC3B,EACD,IAAI,uCAAmB,CAAC,sBAAS,CAAC,KAAK,CAAC,IAAI,GAAG,gBAAgB,EAAE,iBAAO,CAAC,UAAU,CAAC,CACvF,CAAC;QAyBC,gCAA2B,GAAG,CAAO,MAAc,EAA+C,EAAE;YACvG,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACrD,UAAU,EAAE,CAAC,UAAU,CAAC;gBACxB,OAAO,EAAE;oBACL;wBACI,UAAU,EAAE;4BACR,cAAc;4BACd,gBAAgB;4BAChB,qBAAqB;4BACrB,eAAe;4BACf,SAAS;4BACT,eAAe;4BACf,CAAC,mBAAS,CAAC,OAAO,CAAC,mDAAmD,CAAC,EAAE,sBAAsB,CAAC;4BAChG,CAAC,mBAAS,CAAC,OAAO,CAAC,qDAAqD,CAAC,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,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,cAAc,EAAE;YAC9E,EAAE,EAAE,MAAM;YACV,UAAU,EAAE,SAAS;YACrB,SAAS,EAAE,SAAS;YACpB,WAAW,EAAE,KAAK;SACrB,CAAC,CAAC;QACH,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE;YAC7D,EAAE,EAAE,QAAQ;YACZ,UAAU,EAAE,UAAU;YACtB,SAAS,EAAE,UAAU;YACrB,WAAW,EAAE,KAAK;SACrB,CAAC,CAAC;IACP,CAAC;CA+CJ;AArFD,kDAqFC"}
1
+ {"version":3,"file":"RopidGTFSTripsModel.js","sourceRoot":"","sources":["../../../src/integration-engine/ropid-gtfs/RopidGTFSTripsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0DAAuC;AACvC,oEAA4C;AAC5C,gFAAyD;AACzD,yEAAqF;AACrF,mFAAkF;AAClF,oFAA4D;AAC5D,wBAAuF;AAGvF,MAAa,mBAAoB,SAAQ,sBAAa;IAKlD;QACI,KAAK,CACD,sBAAS,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,EAC9B;YACI,yBAAyB,EAAE,sBAAS,CAAC,KAAK,CAAC,yBAAyB;YACpE,WAAW,EAAE,sBAAS,CAAC,KAAK,CAAC,WAAW;YACxC,QAAQ,EAAE,iBAAS;YACnB,UAAU,EAAE,YAAY;SAC3B,EACD,IAAI,uCAAmB,CAAC,sBAAS,CAAC,KAAK,CAAC,IAAI,GAAG,gBAAgB,EAAE,iBAAO,CAAC,UAAU,CAAC,CACvF,CAAC;QAyBC,gCAA2B,GAAG,CAAO,MAAc,EAA+C,EAAE;YACvG,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACrD,UAAU,EAAE,CAAC,UAAU,CAAC;gBACxB,OAAO,EAAE;oBACL;wBACI,UAAU,EAAE;4BACR,cAAc;4B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AAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE;YAChE,EAAE,EAAE,YAAY;YAChB,UAAU,EAAE,SAAS;YACrB,SAAS,EAAE,SAAS;YACpB,WAAW,EAAE,KAAK;SACrB,CAAC,CAAC;QACH,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,cAAc,EAAE;YAC9E,EAAE,EAAE,MAAM;YACV,UAAU,EAAE,SAAS;YACrB,SAAS,EAAE,SAAS;YACpB,WAAW,EAAE,KAAK;SACrB,CAAC,CAAC;QACH,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE;YAC7D,EAAE,EAAE,QAAQ;YACZ,UAAU,EAAE,UAAU;YACtB,SAAS,EAAE,UAAU;YACrB,WAAW,EAAE,KAAK;SACrB,CAAC,CAAC;IACP,CAAC;CA+CJ;AArFD,kDAqFC"}
@@ -1,3 +1,4 @@
1
+ import { GtfsStopWheelchairBoardingEnum } from "../../../helpers/AccessibilityEnums";
1
2
  export interface IShape {
2
3
  shape_dist_traveled: number;
3
4
  shape_id: string;
@@ -11,6 +12,7 @@ export interface IStop {
11
12
  stop_lon: number;
12
13
  stop_name: string;
13
14
  zone_id: string | null;
15
+ wheelchair_boarding: GtfsStopWheelchairBoardingEnum | null;
14
16
  }
15
17
  export interface IStopTime {
16
18
  arrival_time_seconds: number;
@@ -20,6 +20,7 @@ export interface IPublicApiDetailedTripScopeInfo {
20
20
  export interface IPublicApiDetailedTripScopeStopTimesProps {
21
21
  stop_name: string;
22
22
  zone_id: string | null;
23
+ is_wheelchair_accessible: boolean | null;
23
24
  shape_dist_traveled: number;
24
25
  arrival_time: string;
25
26
  departure_time: string;
@@ -4,4 +4,5 @@ import { IGeoJSONFeature } from "@golemio/core/dist/output-gateway";
4
4
  export declare class PublicVPTripStopTimesTransformation extends AbstractTransformation<IStopTime, IGeoJSONFeature> {
5
5
  name: string;
6
6
  protected transformInternal: ({ stop, ...stopTime }: IStopTime) => IGeoJSONFeature;
7
+ private isStopWheelchairAccessible;
7
8
  }
@@ -12,6 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.PublicVPTripStopTimesTransformation = void 0;
15
+ const AccessibilityEnums_1 = require("../../../../../helpers/AccessibilityEnums");
15
16
  const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
16
17
  const output_gateway_1 = require("@golemio/core/dist/output-gateway");
17
18
  const luxon_1 = require("@golemio/core/dist/shared/luxon");
@@ -25,6 +26,7 @@ class PublicVPTripStopTimesTransformation extends AbstractTransformation_1.Abstr
25
26
  const properties = {
26
27
  stop_name: stop.stop_name,
27
28
  zone_id: stop.zone_id,
29
+ is_wheelchair_accessible: this.isStopWheelchairAccessible(stop),
28
30
  shape_dist_traveled: stopTime.shape_dist_traveled,
29
31
  arrival_time: startDateTime.plus({ seconds: stopTime.arrival_time_seconds }).toFormat("HH:mm:ss"),
30
32
  departure_time: startDateTime.plus({ seconds: stopTime.departure_time_seconds }).toFormat("HH:mm:ss"),
@@ -35,6 +37,12 @@ class PublicVPTripStopTimesTransformation extends AbstractTransformation_1.Abstr
35
37
  };
36
38
  return (0, output_gateway_1.buildGeojsonFeature)(properties, "lng", "lat", true);
37
39
  };
40
+ this.isStopWheelchairAccessible = ({ wheelchair_boarding }) => {
41
+ if (wheelchair_boarding === null || wheelchair_boarding === AccessibilityEnums_1.GtfsStopWheelchairBoardingEnum.NoInformation) {
42
+ return null;
43
+ }
44
+ return wheelchair_boarding === AccessibilityEnums_1.GtfsStopWheelchairBoardingEnum.AccessibleStation;
45
+ };
38
46
  }
39
47
  }
40
48
  exports.PublicVPTripStopTimesTransformation = PublicVPTripStopTimesTransformation;
@@ -1 +1 @@
1
- {"version":3,"file":"PublicVPTripStopTimesTransformation.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/service/transformations/scopes/PublicVPTripStopTimesTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,6GAA0G;AAC1G,sEAAyF;AACzF,2DAA2D;AAE3D,MAAa,mCAAoC,SAAQ,+CAAkD;IAA3G;;QACW,SAAI,GAAG,6BAA6B,CAAC;QAElC,sBAAiB,GAAG,CAAC,EAAgC,EAAE,EAAE;gBAApC,EAAE,IAAI,OAA0B,EAArB,QAAQ,cAAnB,QAAqB,CAAF;YAC9C,MAAM,aAAa,GAAG,gBAAQ,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACpD,MAAM,UAAU,GAA6E;gBACzF,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,mBAAmB,EAAE,QAAQ,CAAC,mBAAmB;gBACjD,YAAY,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC;gBACjG,cAAc,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,sBAAsB,EAAE,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC;gBACrG,qBAAqB,EAAE,IAAI;gBAC3B,uBAAuB,EAAE,IAAI;gBAC7B,GAAG,EAAE,IAAI,CAAC,QAAQ;gBAClB,GAAG,EAAE,IAAI,CAAC,QAAQ;aACrB,CAAC;YAEF,OAAO,IAAA,oCAAmB,EAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;QAC/D,CAAC,CAAC;IACN,CAAC;CAAA;AAnBD,kFAmBC"}
1
+ {"version":3,"file":"PublicVPTripStopTimesTransformation.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/service/transformations/scopes/PublicVPTripStopTimesTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA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DAA8B,CAAC,iBAAiB,CAAC;QACpF,CAAC,CAAC;IACN,CAAC;CAAA;AA5BD,kFA4BC"}
@@ -1,3 +1,4 @@
1
+ import { GtfsStopWheelchairBoardingEnum } from "../../../../helpers/AccessibilityEnums";
1
2
  export interface IShapePoint {
2
3
  index: number;
3
4
  at_stop: boolean;
@@ -16,6 +17,7 @@ export interface IStop {
16
17
  stop_lon: number;
17
18
  stop_name: string;
18
19
  zone_id: string | null;
20
+ wheelchair_boarding: GtfsStopWheelchairBoardingEnum | null;
19
21
  }
20
22
  export interface IStopTime {
21
23
  arrival_time: string;
@@ -28,8 +28,9 @@ const delayComputationDtoSchema = {
28
28
  stop_lon: { type: "number" },
29
29
  stop_name: { type: "string" },
30
30
  zone_id: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
31
+ wheelchair_boarding: { oneOf: [{ type: "integer" }, { type: "null", nullable: true }] },
31
32
  },
32
- required: ["stop_id", "stop_lat", "stop_lon", "stop_name", "zone_id"],
33
+ required: ["stop_id", "stop_lat", "stop_lon", "stop_name", "zone_id", "wheelchair_boarding"],
33
34
  },
34
35
  },
35
36
  required: [
@@ -1 +1 @@
1
- {"version":3,"file":"DelayComputationDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/ropid-gtfs/redis/schemas/DelayComputationDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,yBAAyB,GAAyC;IACpE,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,2BAA2B;IAClC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAChC,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAClC,mBAAmB,EAA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AAE,sBAAsB,EAAE,QAAQ,CAAC;CACxE,CAAC;AAEoC,8DAAyB"}
1
+ {"version":3,"file":"DelayComputationDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/ropid-gtfs/redis/schemas/DelayComputationDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,yBAAyB,GAAyC;IACpE,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,2BAA2B;IAClC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAChC,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAClC,mBAAmB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACvC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;oBAChF,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC3B,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBAClC,oBAAoB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACzC,sBAAsB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBAC3C,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BAC5B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BAC5B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAA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,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;oBACtF,sBAAsB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBAC7C;gBACD,QAAQ,EAAE;oBACN,OAAO;oBACP,SAAS;oBACT,SAAS;oBACT,aAAa;oBACb,yBAAyB;oBACzB,oBAAoB;oBACpB,oBAAoB;oBACpB,qBAAqB;oBACrB,wBAAwB;iBAC3B;aACJ;SACJ;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACxB,MAAM,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;wBAC/C,QAAQ,EAAE,CAAC;wBACX,QAAQ,EAAE,CAAC;qBACd;iBACJ;gBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;aAC/B;SACJ;KACJ;IACD,QAAQ,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,sBAAsB,EAAE,QAAQ,CAAC;CACxE,CAAC;AAEoC,8DAAyB"}
@@ -1033,23 +1033,18 @@ paths:
1033
1033
  - vehicle_descriptor
1034
1034
  description: "Choose which scopes to include in response."
1035
1035
  required: true
1036
+ example: ["info"]
1036
1037
  responses:
1037
1038
  200:
1038
1039
  description: OK
1039
1040
  content:
1040
1041
  application/json; charset=utf-8:
1041
1042
  schema:
1042
- oneOf:
1043
- - allOf:
1044
- - $ref: "#/components/schemas/ScopeInfo"
1045
- - $ref: "#/components/schemas/ScopeStopTimes"
1046
- - $ref: "#/components/schemas/ScopeShapes"
1047
- - $ref: "#/components/schemas/ScopeVehicleDescriptor"
1048
- - anyOf:
1049
- - $ref: "#/components/schemas/ScopeInfo"
1050
- - $ref: "#/components/schemas/ScopeStopTimes"
1051
- - $ref: "#/components/schemas/ScopeShapes"
1052
- - $ref: "#/components/schemas/ScopeVehicleDescriptor"
1043
+ allOf:
1044
+ - $ref: "#/components/schemas/ScopeInfo"
1045
+ - $ref: "#/components/schemas/ScopeStopTimes"
1046
+ - $ref: "#/components/schemas/ScopeShapes"
1047
+ - $ref: "#/components/schemas/ScopeVehicleDescriptor"
1053
1048
 
1054
1049
  401:
1055
1050
  $ref: "#/components/responses/UnauthorizedError"
@@ -2072,42 +2067,53 @@ components:
2072
2067
  properties:
2073
2068
  gtfs_trip_id:
2074
2069
  type: string
2070
+ nullable: false
2075
2071
  example: "115_107_180501"
2076
2072
  route_type:
2077
2073
  type: string
2074
+ nullable: false
2078
2075
  enum: ["tram", "metro", "train", "bus", "ferry", "funicular", "trolleybus", "ext_miscellaneous"]
2079
2076
  example: "bus"
2080
2077
  route_short_name:
2081
2078
  type: string
2079
+ nullable: false
2082
2080
  example: "22"
2083
2081
  shape_id:
2084
2082
  type: string
2083
+ nullable: true
2085
2084
  example: "L22V3"
2086
2085
  origin_route_name:
2087
2086
  type: string
2087
+ nullable: true
2088
2088
  example: "22"
2089
2089
  run_number:
2090
2090
  type: integer
2091
+ nullable: true
2091
2092
  example: 1
2092
2093
  trip_headsign:
2093
2094
  type: string
2095
+ nullable: true
2094
2096
  example: "Bílá Hora"
2095
2097
  geometry:
2096
2098
  $ref: "#/components/schemas/GeometryPoint"
2097
2099
  shape_dist_traveled:
2098
2100
  type: number
2101
+ nullable: true
2099
2102
  description: "Distance travelled from the first stop of the trip."
2100
2103
  example: 22.804
2101
2104
  bearing:
2102
2105
  type: integer
2106
+ nullable: true
2103
2107
  description: "Bearing of the vehicle in degrees (0-360)."
2104
2108
  example: 45
2105
2109
  delay:
2106
2110
  type: integer
2111
+ nullable: true
2107
2112
  description: "Delay of the vehicle in seconds."
2108
2113
  example: 10
2109
2114
  state_position:
2110
2115
  type: string
2116
+ nullable: false
2111
2117
  example: at_stop
2112
2118
  enum:
2113
2119
  - before_track
@@ -2119,10 +2125,12 @@ components:
2119
2125
  - unknown
2120
2126
  last_stop_sequence:
2121
2127
  type: integer
2128
+ nullable: true
2122
2129
  description: index of last stop passed by the vehicle
2123
2130
  example: 3
2124
2131
  origin_timestamp:
2125
2132
  type: string
2133
+ nullable: true
2126
2134
  description: "time when vehicle send last update"
2127
2135
  example: "2023-12-06T12:00:00+01:00"
2128
2136
 
@@ -2203,6 +2211,7 @@ components:
2203
2211
  properties:
2204
2212
  shape_dist_traveled:
2205
2213
  type: number
2214
+ nullable: false
2206
2215
  description: "Distance from the first stop of the trip."
2207
2216
  example: 0
2208
2217
  type:
@@ -2228,31 +2237,40 @@ components:
2228
2237
  properties:
2229
2238
  stop_name:
2230
2239
  type: string
2240
+ nullable: false
2231
2241
  example: "Nádraží Veleslavín"
2232
2242
  zone_id:
2233
2243
  type: string
2244
+ nullable: true
2234
2245
  example: "P"
2246
+ is_wheelchair_accessible:
2247
+ type: boolean
2248
+ nullable: true
2249
+ example: true
2235
2250
  shape_dist_traveled:
2236
2251
  type: number
2252
+ nullable: false
2237
2253
  example: 0
2238
2254
  arrival_time:
2239
2255
  type: string
2256
+ nullable: false
2240
2257
  description: "Time for arrival to the stop according to trip schedule."
2241
2258
  example: "12:00:00"
2242
2259
  departure_time:
2243
2260
  type: string
2261
+ nullable: false
2244
2262
  description: "Time for departure from the stop according to trip schedule."
2245
- example: "12:00:00"
2263
+ example: "12:00:10"
2246
2264
  realtime_arrival_time:
2247
2265
  type: string
2248
2266
  nullable: true
2249
2267
  description: "Time for arrival to the stop according to realtime data or prediction based on current delay."
2250
- example: "12:00:00"
2268
+ example: "12:00:20"
2251
2269
  realtime_departure_time:
2252
2270
  type: string
2253
2271
  nullable: true
2254
2272
  description: "Time for departure from the stop according to realtime data or prediction based on current delay."
2255
- example: "12:00:00"
2273
+ example: "12:00:25"
2256
2274
  type:
2257
2275
  type: string
2258
2276
  example: Feature
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/pid",
3
- "version": "2.11.6-dev.1158774210",
3
+ "version": "2.11.6",
4
4
  "description": "Golemio PID Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -38,7 +38,7 @@
38
38
  "@commitlint/cli": "^11.0.0",
39
39
  "@commitlint/config-conventional": "^11.0.0",
40
40
  "@golemio/cli": "1.5.0",
41
- "@golemio/core": "1.9.9",
41
+ "@golemio/core": "1.9.10",
42
42
  "@golemio/db-common": "1.1.3",
43
43
  "@golemio/eslint-config": "1.1.1",
44
44
  "@types/amqplib": "^0.5.17",
@@ -77,7 +77,7 @@
77
77
  "@golemio/core": ">=1.7.0"
78
78
  },
79
79
  "dependencies": {
80
- "@golemio/ovapi-gtfs-realtime-bindings": "1.2.1-dev.943774882",
80
+ "@golemio/ovapi-gtfs-realtime-bindings": "1.2.0",
81
81
  "@turf/turf": "^6.5.0",
82
82
  "cheap-ruler": "^3.0.2",
83
83
  "csv-parser": "^3.0.0",