@golemio/pid 2.13.6-dev.1310475463 → 2.13.6-dev.1313672574

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.
Files changed (124) hide show
  1. package/db/example/02_pid_line_example_115.sql +148 -0
  2. package/db/migrations/postgresql/20240523123717-add-stop-name-and-gps-to-history-data.js +53 -0
  3. package/db/migrations/postgresql/20240529165139-gtfs-index-optimization.js +53 -0
  4. package/db/migrations/postgresql/sqls/20240523123717-add-stop-name-and-gps-to-history-data-down.sql +107 -0
  5. package/db/migrations/postgresql/sqls/20240523123717-add-stop-name-and-gps-to-history-data-up.sql +118 -0
  6. package/db/migrations/postgresql/sqls/20240529165139-gtfs-index-optimization-down.sql +2 -0
  7. package/db/migrations/postgresql/sqls/20240529165139-gtfs-index-optimization-up.sql +2 -0
  8. package/dist/helpers/PassengerTransferEnums.d.ts +20 -0
  9. package/dist/helpers/PassengerTransferEnums.js +26 -0
  10. package/dist/helpers/PassengerTransferEnums.js.map +1 -0
  11. package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/CheckForNewDeparturesPresetsTask.js +0 -1
  12. package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/CheckForNewDeparturesPresetsTask.js.map +1 -1
  13. package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/DownloadDeparturesPresetsTask.js +0 -1
  14. package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/DownloadDeparturesPresetsTask.js.map +1 -1
  15. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.d.ts +1 -0
  16. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js +9 -6
  17. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js.map +1 -1
  18. package/dist/output-gateway/pid/PIDRouter.d.ts +1 -0
  19. package/dist/output-gateway/pid/PIDRouter.js +9 -9
  20. package/dist/output-gateway/pid/PIDRouter.js.map +1 -1
  21. package/dist/output-gateway/public/controllers/v1/PublicGtfsController.d.ts +6 -0
  22. package/dist/output-gateway/public/controllers/v1/PublicGtfsController.js +44 -0
  23. package/dist/output-gateway/public/controllers/v1/PublicGtfsController.js.map +1 -0
  24. package/dist/output-gateway/public/controllers/v1/interfaces/PublicParamsInterfaces.d.ts +4 -0
  25. package/dist/output-gateway/public/domain/ITripScopeHandler.d.ts +7 -0
  26. package/dist/output-gateway/public/domain/{ITripScopeHandlerFactory.js → ITripScopeHandler.js} +1 -1
  27. package/dist/output-gateway/public/domain/ITripScopeHandler.js.map +1 -0
  28. package/dist/output-gateway/public/domain/PublicApiGtfsTripLookupInterfaces.d.ts +35 -0
  29. package/dist/output-gateway/public/domain/PublicApiGtfsTripLookupInterfaces.js +3 -0
  30. package/dist/output-gateway/public/domain/PublicApiGtfsTripLookupInterfaces.js.map +1 -0
  31. package/dist/output-gateway/public/ioc/Di.js +34 -8
  32. package/dist/output-gateway/public/ioc/Di.js.map +1 -1
  33. package/dist/output-gateway/public/ioc/OgModuleToken.d.ts +10 -0
  34. package/dist/output-gateway/public/ioc/OgModuleToken.js +14 -0
  35. package/dist/output-gateway/public/ioc/OgModuleToken.js.map +1 -1
  36. package/dist/output-gateway/public/routers/v1/PublicDeparturesRouter.d.ts +2 -1
  37. package/dist/output-gateway/public/routers/v1/PublicDeparturesRouter.js +8 -4
  38. package/dist/output-gateway/public/routers/v1/PublicDeparturesRouter.js.map +1 -1
  39. package/dist/output-gateway/public/routers/v1/PublicGtfsRouter.d.ts +11 -0
  40. package/dist/output-gateway/public/routers/v1/PublicGtfsRouter.js +27 -0
  41. package/dist/output-gateway/public/routers/v1/PublicGtfsRouter.js.map +1 -0
  42. package/dist/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.d.ts +2 -1
  43. package/dist/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.js +9 -3
  44. package/dist/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.js.map +1 -1
  45. package/dist/output-gateway/public/service/facade/DetailedTripFacade.d.ts +2 -2
  46. package/dist/output-gateway/public/service/facade/DetailedTripFacade.js.map +1 -1
  47. package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.d.ts +10 -0
  48. package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.js +50 -0
  49. package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.js.map +1 -0
  50. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.d.ts +11 -0
  51. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.js +43 -0
  52. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.js.map +1 -0
  53. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/AbstractGtfsTripScopeHandler.d.ts +6 -0
  54. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/AbstractGtfsTripScopeHandler.js +7 -0
  55. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/AbstractGtfsTripScopeHandler.js.map +1 -0
  56. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/InfoTripScopeHandler.d.ts +9 -0
  57. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/InfoTripScopeHandler.js +35 -0
  58. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/InfoTripScopeHandler.js.map +1 -0
  59. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/ShapesTripScopeHandler.d.ts +9 -0
  60. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/ShapesTripScopeHandler.js +36 -0
  61. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/ShapesTripScopeHandler.js.map +1 -0
  62. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/StopTimesTripScopeHandler.d.ts +9 -0
  63. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/StopTimesTripScopeHandler.js +38 -0
  64. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/StopTimesTripScopeHandler.js.map +1 -0
  65. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/VehicleDescriptorTripScopeHandler.d.ts +9 -0
  66. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/VehicleDescriptorTripScopeHandler.js +35 -0
  67. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/VehicleDescriptorTripScopeHandler.js.map +1 -0
  68. package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.d.ts +4 -5
  69. package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.js +6 -6
  70. package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.js.map +1 -1
  71. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/{AbstractTripScopeHandler.d.ts → AbstractDetailedTripScopeHandler.d.ts} +2 -1
  72. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractDetailedTripScopeHandler.js +7 -0
  73. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractDetailedTripScopeHandler.js.map +1 -0
  74. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/InfoTripScopeHandler.d.ts +2 -2
  75. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/InfoTripScopeHandler.js +2 -2
  76. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/InfoTripScopeHandler.js.map +1 -1
  77. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/ShapesTripScopeHandler.d.ts +2 -2
  78. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/ShapesTripScopeHandler.js +2 -2
  79. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/ShapesTripScopeHandler.js.map +1 -1
  80. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHandler.d.ts +2 -2
  81. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHandler.js +2 -2
  82. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHandler.js.map +1 -1
  83. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/VehicleDescriptorTripScopeHandler.d.ts +2 -2
  84. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/VehicleDescriptorTripScopeHandler.js +2 -2
  85. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/VehicleDescriptorTripScopeHandler.js.map +1 -1
  86. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripInfoTransformation.d.ts +15 -0
  87. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripInfoTransformation.js +35 -0
  88. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripInfoTransformation.js.map +1 -0
  89. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripShapesTransformation.d.ts +7 -0
  90. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripShapesTransformation.js +30 -0
  91. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripShapesTransformation.js.map +1 -0
  92. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsVehicleDescriptorTransformation.d.ts +10 -0
  93. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsVehicleDescriptorTransformation.js +33 -0
  94. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsVehicleDescriptorTransformation.js.map +1 -0
  95. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicTripStopTimesTransformation.d.ts +8 -0
  96. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicTripStopTimesTransformation.js +46 -0
  97. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicTripStopTimesTransformation.js.map +1 -0
  98. package/dist/output-gateway/ropid-gtfs/GTFSRouter.d.ts +2 -1
  99. package/dist/output-gateway/ropid-gtfs/GTFSRouter.js +30 -27
  100. package/dist/output-gateway/ropid-gtfs/GTFSRouter.js.map +1 -1
  101. package/dist/output-gateway/ropid-gtfs/data-access/GtfsTripScheduleRepository.d.ts +8 -0
  102. package/dist/output-gateway/ropid-gtfs/data-access/GtfsTripScheduleRepository.js +22 -0
  103. package/dist/output-gateway/ropid-gtfs/data-access/GtfsTripScheduleRepository.js.map +1 -0
  104. package/dist/output-gateway/ropid-gtfs/models/GTFSStopTimesModel.js +2 -1
  105. package/dist/output-gateway/ropid-gtfs/models/GTFSStopTimesModel.js.map +1 -1
  106. package/dist/output-gateway/ropid-gtfs/models/GTFSTripsModel.d.ts +9 -1
  107. package/dist/output-gateway/ropid-gtfs/models/GTFSTripsModel.js +93 -2
  108. package/dist/output-gateway/ropid-gtfs/models/GTFSTripsModel.js.map +1 -1
  109. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.d.ts +1 -0
  110. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js +27 -9
  111. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js.map +1 -1
  112. package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js +8 -2
  113. package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js.map +1 -1
  114. package/dist/schema-definitions/ropid-gtfs/RopidGTFSRunNumbers.d.ts +1 -1
  115. package/dist/schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto.d.ts +19 -0
  116. package/dist/schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto.js +3 -0
  117. package/dist/schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto.js.map +1 -0
  118. package/docs/implementation_documentation.md +10 -1
  119. package/docs/openapi-output.yaml +151 -13
  120. package/package.json +2 -2
  121. package/dist/output-gateway/public/domain/ITripScopeHandlerFactory.d.ts +0 -5
  122. package/dist/output-gateway/public/domain/ITripScopeHandlerFactory.js.map +0 -1
  123. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractTripScopeHandler.js +0 -7
  124. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractTripScopeHandler.js.map +0 -1
@@ -13,6 +13,9 @@ VALUES
13
13
  (2,NULL,0,0,E'L115',E'1111111-1',E'L115V1',E'Chodov',E'115_6_201230_V2',1,1000000115,E'2021-07-26 05:35:28.331+02',NULL,-1,E'2021-07-26 05:35:28.331+02',NULL,NULL,'115_short'),
14
14
  (2,NULL,0,0,E'L115',E'1111111-1',E'L115V1',E'Chodov',E'115_6_201230_V3',1,1000000115,E'2021-07-26 05:35:28.331+02',NULL,-1,E'2021-07-26 05:35:28.331+02',NULL,NULL,'115_short');
15
15
 
16
+ INSERT INTO ropidgtfs_routes_actual (agency_id,is_night,route_color,route_desc,route_id,route_long_name,route_short_name,route_text_color,route_type,route_url,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,is_regional,is_substitute_transport) VALUES
17
+ ('99','0','007DA8',NULL,'L115','Chodov - Městský archiv Chodovec - Chodov','115','FFFFFF',3,'https://pid.cz/linka/115',NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL,'0','0');
18
+
16
19
  INSERT INTO "ropidgtfs_stops_actual"("location_type","parent_station","platform_code","stop_id","stop_lat","stop_lon","stop_name","stop_url","wheelchair_boarding","zone_id","create_batch_id","created_at","created_by","update_batch_id","updated_at","updated_by","level_id","stop_code","stop_desc","stop_timezone")
17
20
  VALUES
18
21
  (0,NULL,E'A',E'U1131Z1P',50.03554,14.49369,E'Pod Chodovem',NULL,0,E'P',1000000115,E'2021-07-26 05:35:24.266+02',NULL,-1,E'2021-07-26 05:35:24.266+02',NULL,NULL,NULL,NULL,NULL),
@@ -70,6 +73,151 @@ VALUES
70
73
  (E'10:56:00',NULL,E'10:56:00',NULL,E'3',E'3',3.91433,NULL,E'U1131Z1P',7,E'115_6_201230_V3',1000000115,E'2021-07-26 05:36:31.281+02',NULL,-1,E'2021-07-26 05:36:31.281+02',NULL,NULL),
71
74
  (E'10:58:00',NULL,E'10:58:00',NULL,E'0',E'0',4.87451,NULL,E'U52Z2P',8,E'115_6_201230_V3',1000000115,E'2021-07-26 05:36:31.281+02',NULL,-1,E'2021-07-26 05:36:31.281+02',NULL,NULL);
72
75
 
76
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
77
+ (0.0,'L115V1',50.03086,14.491693,1,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
78
+ (0.032964,'L115V1',50.031104,14.491434,2,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
79
+ (0.074365,'L115V1',50.031368,14.491026,3,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
80
+ (0.117504,'L115V1',50.031608,14.490552,4,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
81
+ (0.148617,'L115V1',50.031777,14.490206,5,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
82
+ (0.229239,'L115V1',50.032225,14.489322,6,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
83
+ (0.250872,'L115V1',50.032371,14.489122,7,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
84
+ (0.268337,'L115V1',50.032518,14.489035,8,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
85
+ (0.293337,'L115V1',50.03274,14.489086,9,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
86
+ (0.341044,'L115V1',50.03302,14.48959,10,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
87
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
88
+ (0.386222,'L115V1',50.033256,14.490104,11,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
89
+ (0.400539,'L115V1',50.033325,14.490272,12,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
90
+ (0.459063,'L115V1',50.03367,14.49089,13,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
91
+ (0.472101,'L115V1',50.033746,14.491028,14,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
92
+ (0.49734,'L115V1',50.033896,14.491292,15,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
93
+ (0.537303,'L115V1',50.034125,14.491723,16,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
94
+ (0.556171,'L115V1',50.034233,14.491925,17,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
95
+ (0.575039,'L115V1',50.034342,14.492128,18,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
96
+ (0.589251,'L115V1',50.034435,14.492263,19,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
97
+ (0.6155,'L115V1',50.034611,14.492507,20,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
98
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
99
+ (0.6355,'L115V1',50.034737,14.492706,21,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
100
+ (0.783758,'L115V1',50.035639,14.49423,22,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
101
+ (0.795006,'L115V1',50.035707,14.494346,23,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
102
+ (0.853255,'L115V1',50.03606,14.494947,24,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
103
+ (0.869255,'L115V1',50.036079,14.495169,25,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
104
+ (0.881904,'L115V1',50.03613,14.495327,26,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
105
+ (0.894434,'L115V1',50.036235,14.495389,27,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
106
+ (0.90847,'L115V1',50.036358,14.495349,28,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
107
+ (0.926162,'L115V1',50.036489,14.49549,29,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
108
+ (0.979762,'L115V1',50.036826,14.496025,30,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
109
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
110
+ (1.017775,'L115V1',50.03706,14.496412,31,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
111
+ (1.048304,'L115V1',50.037234,14.496741,32,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
112
+ (1.070664,'L115V1',50.037347,14.496999,33,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
113
+ (1.088553,'L115V1',50.037438,14.497205,34,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
114
+ (1.122391,'L115V1',50.037575,14.497627,35,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
115
+ (1.140419,'L115V1',50.037649,14.497851,36,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
116
+ (1.147699,'L115V1',50.037709,14.49781,37,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
117
+ (1.233425,'L115V1',50.038409,14.497309,38,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
118
+ (1.283714,'L115V1',50.038819,14.497011,39,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
119
+ (1.400915,'L115V1',50.039393,14.498383,40,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
120
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
121
+ (1.578048,'L115V1',50.040265,14.500452,41,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
122
+ (1.592812,'L115V1',50.040389,14.500525,42,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
123
+ (1.601868,'L115V1',50.04047,14.500522,43,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
124
+ (1.640352,'L115V1',50.040763,14.500234,44,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
125
+ (1.671672,'L115V1',50.041019,14.500053,45,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
126
+ (1.694759,'L115V1',50.041226,14.500037,46,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
127
+ (1.708076,'L115V1',50.041341,14.499982,47,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
128
+ (1.731256,'L115V1',50.04154,14.499886,48,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
129
+ (1.737659,'L115V1',50.041589,14.499932,49,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
130
+ (1.745275,'L115V1',50.041655,14.49996,50,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
131
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
132
+ (1.751275,'L115V1',50.041709,14.499949,51,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
133
+ (1.757678,'L115V1',50.041748,14.499884,52,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
134
+ (1.763761,'L115V1',50.04175,14.499799,53,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
135
+ (1.768761,'L115V1',50.041744,14.49973,54,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
136
+ (1.773761,'L115V1',50.041712,14.499681,55,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
137
+ (1.780469,'L115V1',50.041655,14.49965,56,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
138
+ (1.786552,'L115V1',50.041603,14.499676,57,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
139
+ (1.792955,'L115V1',50.041563,14.49974,58,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
140
+ (1.801201,'L115V1',50.041555,14.499855,59,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
141
+ (1.810256,'L115V1',50.041476,14.499886,60,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
142
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
143
+ (1.839684,'L115V1',50.041224,14.50001,61,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
144
+ (1.862771,'L115V1',50.041017,14.500025,62,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
145
+ (1.894787,'L115V1',50.04075,14.500195,63,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
146
+ (1.931461,'L115V1',50.040476,14.500478,64,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
147
+ (1.941659,'L115V1',50.040389,14.500525,65,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
148
+ (1.956424,'L115V1',50.040265,14.500452,66,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
149
+ (2.133556,'L115V1',50.039393,14.498383,67,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
150
+ (2.250757,'L115V1',50.038819,14.497011,68,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
151
+ (2.407948,'L115V1',50.040098,14.496078,69,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
152
+ (2.455875,'L115V1',50.040467,14.495732,70,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
153
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
154
+ (2.531837,'L115V1',50.04107,14.495234,71,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
155
+ (2.577366,'L115V1',50.041431,14.494935,72,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
156
+ (2.635305,'L115V1',50.041887,14.494543,73,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
157
+ (2.750622,'L115V1',50.042787,14.493746,74,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
158
+ (2.818471,'L115V1',50.042556,14.492869,75,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
159
+ (2.862193,'L115V1',50.042407,14.492305,76,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
160
+ (2.943446,'L115V1',50.042141,14.491248,77,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
161
+ (2.975834,'L115V1',50.042058,14.490815,78,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
162
+ (2.994939,'L115V1',50.042052,14.490548,79,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
163
+ (3.011939,'L115V1',50.041909,14.490466,80,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
164
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
165
+ (3.043052,'L115V1',50.041686,14.490203,81,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
166
+ (3.141647,'L115V1',50.041025,14.489287,82,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
167
+ (3.157926,'L115V1',50.040912,14.489141,83,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
168
+ (3.213243,'L115V1',50.040582,14.489719,84,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
169
+ (3.24321,'L115V1',50.040357,14.48995,85,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
170
+ (3.329076,'L115V1',50.039644,14.490411,86,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
171
+ (3.341348,'L115V1',50.039547,14.49049,87,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
172
+ (3.385378,'L115V1',50.039195,14.490774,88,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
173
+ (3.421156,'L115V1',50.03893,14.491056,89,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
174
+ (3.460551,'L115V1',50.038629,14.491345,90,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
175
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
176
+ (3.501891,'L115V1',50.038344,14.491715,91,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
177
+ (3.575952,'L115V1',50.037851,14.492412,92,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
178
+ (3.5942,'L115V1',50.037695,14.492487,93,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
179
+ (3.615671,'L115V1',50.037538,14.492661,94,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
180
+ (3.718472,'L115V1',50.036883,14.493674,95,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
181
+ (3.774275,'L115V1',50.036522,14.494215,96,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
182
+ (3.783275,'L115V1',50.036442,14.494232,97,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
183
+ (3.804746,'L115V1',50.036285,14.494407,98,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
184
+ (3.819612,'L115V1',50.036166,14.494502,99,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
185
+ (3.838051,'L115V1',50.036001,14.494481,100,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
186
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
187
+ (3.85649,'L115V1',50.035877,14.49431,101,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
188
+ (3.914325,'L115V1',50.035514,14.493731,102,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
189
+ (3.955893,'L115V1',50.035254,14.493315,103,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
190
+ (3.987294,'L115V1',50.035054,14.493005,104,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
191
+ (4.017526,'L115V1',50.034872,14.492691,105,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
192
+ (4.042765,'L115V1',50.034722,14.492427,106,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
193
+ (4.064166,'L115V1',50.034585,14.492217,107,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
194
+ (4.079978,'L115V1',50.034489,14.492054,108,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
195
+ (4.098579,'L115V1',50.034373,14.491867,109,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
196
+ (4.116606,'L115V1',50.034266,14.491679,110,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
197
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
198
+ (4.189277,'L115V1',50.033828,14.490927,111,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
199
+ (4.202315,'L115V1',50.033752,14.490788,112,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
200
+ (4.269732,'L115V1',50.033362,14.490067,113,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
201
+ (4.318486,'L115V1',50.033121,14.489499,114,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
202
+ (4.331486,'L115V1',50.033062,14.489342,115,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
203
+ (4.367611,'L115V1',50.032991,14.48885,116,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
204
+ (4.390239,'L115V1',50.033114,14.488598,117,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
205
+ (4.411616,'L115V1',50.033124,14.4883,118,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
206
+ (4.441882,'L115V1',50.033052,14.487893,119,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
207
+ (4.471088,'L115V1',50.032864,14.487609,120,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
208
+ INSERT INTO ropidgtfs_shapes_actual (shape_dist_traveled,shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
209
+ (4.487851,'L115V1',50.032715,14.48757,121,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
210
+ (4.512871,'L115V1',50.032494,14.487631,122,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
211
+ (4.537951,'L115V1',50.032301,14.487813,123,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
212
+ (4.579544,'L115V1',50.032177,14.48836,124,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
213
+ (4.586544,'L115V1',50.032185,14.488457,125,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
214
+ (4.597724,'L115V1',50.032217,14.488606,126,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
215
+ (4.619265,'L115V1',50.032312,14.488867,127,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
216
+ (4.827275,'L115V1',50.031131,14.491118,128,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL),
217
+ (4.874506,'L115V1',50.030786,14.491502,129,NULL,'2024-05-27 05:24:45.114',NULL,NULL,'2024-05-27 05:24:45.114',NULL);
218
+
219
+ INSERT INTO ropidgtfs_run_numbers_actual (route_id,run_number,service_id,trip_id,vehicle_type,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,trip_number,route_licence_number) VALUES
220
+ ('L115',39,'1111100-1','115_6_201230',33,NULL,NULL,NULL,NULL,NULL,NULL,1173,100115);
73
221
 
74
222
  WITH init_values AS (
75
223
  SELECT NOW()::DATE AS now_date,
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ var dbm;
4
+ var type;
5
+ var seed;
6
+ var fs = require('fs');
7
+ var path = require('path');
8
+ var Promise;
9
+
10
+ /**
11
+ * We receive the dbmigrate dependency from dbmigrate initially.
12
+ * This enables us to not have to rely on NODE_PATH.
13
+ */
14
+ exports.setup = function(options, seedLink) {
15
+ dbm = options.dbmigrate;
16
+ type = dbm.dataType;
17
+ seed = seedLink;
18
+ Promise = options.Promise;
19
+ };
20
+
21
+ exports.up = function(db) {
22
+ var filePath = path.join(__dirname, 'sqls', '20240523123717-add-stop-name-and-gps-to-history-data-up.sql');
23
+ return new Promise( function( resolve, reject ) {
24
+ fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
25
+ if (err) return reject(err);
26
+ console.log('received data: ' + data);
27
+
28
+ resolve(data);
29
+ });
30
+ })
31
+ .then(function(data) {
32
+ return db.runSql(data);
33
+ });
34
+ };
35
+
36
+ exports.down = function(db) {
37
+ var filePath = path.join(__dirname, 'sqls', '20240523123717-add-stop-name-and-gps-to-history-data-down.sql');
38
+ return new Promise( function( resolve, reject ) {
39
+ fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
40
+ if (err) return reject(err);
41
+ console.log('received data: ' + data);
42
+
43
+ resolve(data);
44
+ });
45
+ })
46
+ .then(function(data) {
47
+ return db.runSql(data);
48
+ });
49
+ };
50
+
51
+ exports._meta = {
52
+ "version": 1
53
+ };
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ var dbm;
4
+ var type;
5
+ var seed;
6
+ var fs = require('fs');
7
+ var path = require('path');
8
+ var Promise;
9
+
10
+ /**
11
+ * We receive the dbmigrate dependency from dbmigrate initially.
12
+ * This enables us to not have to rely on NODE_PATH.
13
+ */
14
+ exports.setup = function(options, seedLink) {
15
+ dbm = options.dbmigrate;
16
+ type = dbm.dataType;
17
+ seed = seedLink;
18
+ Promise = options.Promise;
19
+ };
20
+
21
+ exports.up = function(db) {
22
+ var filePath = path.join(__dirname, 'sqls', '20240529165139-gtfs-index-optimization-up.sql');
23
+ return new Promise( function( resolve, reject ) {
24
+ fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
25
+ if (err) return reject(err);
26
+ console.log('received data: ' + data);
27
+
28
+ resolve(data);
29
+ });
30
+ })
31
+ .then(function(data) {
32
+ return db.runSql(data);
33
+ });
34
+ };
35
+
36
+ exports.down = function(db) {
37
+ var filePath = path.join(__dirname, 'sqls', '20240529165139-gtfs-index-optimization-down.sql');
38
+ return new Promise( function( resolve, reject ) {
39
+ fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
40
+ if (err) return reject(err);
41
+ console.log('received data: ' + data);
42
+
43
+ resolve(data);
44
+ });
45
+ })
46
+ .then(function(data) {
47
+ return db.runSql(data);
48
+ });
49
+ };
50
+
51
+ exports._meta = {
52
+ "version": 1
53
+ };
@@ -0,0 +1,107 @@
1
+ alter table vehiclepositions_stop_times_history
2
+ drop COLUMN stop_name,
3
+ drop COLUMN lat,
4
+ drop COLUMN lng;
5
+
6
+
7
+ drop view v_vehiclepositions_past_stop_times;
8
+
9
+ CREATE VIEW v_vehiclepositions_past_stop_times
10
+ AS SELECT sub.trips_id AS rt_trip_id,
11
+ sub.last_stop_sequence AS stop_sequence,
12
+ sub.last_stop_id AS stop_id,
13
+ sub.last_stop_arrival_time AS stop_arrival,
14
+ sub.last_stop_departure_time AS stop_departure,
15
+ max(sub.delay_stop_arrival) AS stop_arr_delay,
16
+ min(sub.delay_stop_departure) AS stop_dep_delay
17
+ FROM ( SELECT rt_position.trips_id,
18
+ rt_position.last_stop_sequence,
19
+ rt_position.last_stop_id,
20
+ rt_position.last_stop_arrival_time,
21
+ rt_position.last_stop_departure_time,
22
+ rt_position.delay_stop_arrival,
23
+ rt_position.delay_stop_departure,
24
+ row_number() OVER seq AS rn
25
+ FROM vehiclepositions_positions rt_position
26
+ WHERE (rt_position.delay_stop_arrival IS NOT NULL OR rt_position.delay_stop_departure IS NOT NULL) AND (rt_position.state_position::text = ANY (ARRAY['on_track'::character varying::text, 'at_stop'::character varying::text, 'after_track'::character varying::text]))
27
+ WINDOW seq AS (PARTITION BY rt_position.trips_id, rt_position.last_stop_sequence, rt_position.state_position ORDER BY rt_position.id)) sub
28
+ WHERE sub.rn = 1
29
+ GROUP BY sub.trips_id, sub.last_stop_arrival_time, sub.last_stop_departure_time, sub.last_stop_sequence, sub.last_stop_id
30
+ ORDER BY sub.trips_id, sub.last_stop_sequence;
31
+
32
+ CREATE OR REPLACE PROCEDURE vehiclepositions_data_retention(inout numberOfRows int, in dataRetentionMinutes int)
33
+ LANGUAGE plpgsql
34
+ SET search_path FROM CURRENT
35
+ AS $procedure$
36
+ declare
37
+ idsForDelete varchar(255)[];
38
+ begin
39
+ select array_agg(t.id) from vehiclepositions_trips t
40
+ left join vehiclepositions_positions p on
41
+ p.id = t.last_position_id
42
+ where
43
+ p.valid_to < (NOW() - (dataRetentionMinutes || ' minutes')::interval)
44
+ or (t.gtfs_trip_id is null and p.valid_to is null and p.updated_at < NOW() - (dataRetentionMinutes || ' minutes')::interval) -- entries with valid to is null
45
+ into idsForDelete;
46
+
47
+ INSERT INTO vehiclepositions_trips_history
48
+ select * from vehiclepositions_trips where id = ANY(idsForDelete)
49
+ on conflict do nothing;
50
+
51
+ INSERT INTO vehiclepositions_positions_history
52
+ select * from vehiclepositions_positions where trips_id = ANY(idsForDelete)
53
+ on conflict do nothing;
54
+
55
+ insert into vehiclepositions_stop_times_history (
56
+ rt_trip_id,
57
+ gtfs_date,
58
+ gtfs_trip_id,
59
+ gtfs_direction_id,
60
+ gtfs_route_short_name,
61
+ gtfs_route_type,
62
+ run_number,
63
+ vehicle_registration_number,
64
+ gtfs_stop_id,
65
+ gtfs_stop_sequence,
66
+ current_stop_arrival,
67
+ current_stop_departure,
68
+ current_stop_arr_delay,
69
+ current_stop_dep_delay,
70
+ created_at,
71
+ updated_at,
72
+ origin_route_name
73
+ )
74
+ select
75
+ rt_trip.id,
76
+ rt_trip.gtfs_date,
77
+ rt_trip.gtfs_trip_id,
78
+ rt_trip.gtfs_direction_id,
79
+ rt_trip.gtfs_route_short_name,
80
+ rt_trip.gtfs_route_type,
81
+ rt_trip.run_number,
82
+ rt_trip.vehicle_registration_number,
83
+ stop_time.stop_id,
84
+ stop_time.stop_sequence,
85
+ stop_time.stop_arrival,
86
+ stop_time.stop_departure,
87
+ stop_time.stop_arr_delay,
88
+ stop_time.stop_dep_delay,
89
+ now(),
90
+ now(),
91
+ rt_trip.origin_route_name
92
+ from
93
+ vehiclepositions_trips rt_trip
94
+ join
95
+ v_vehiclepositions_past_stop_times stop_time on stop_time.rt_trip_id = rt_trip.id
96
+ where
97
+ rt_trip.id = ANY(idsForDelete)
98
+ on conflict do nothing;
99
+
100
+
101
+ delete from vehiclepositions_positions where trips_id = ANY(idsForDelete);
102
+ delete from vehiclepositions_trips where id = ANY(idsForDelete);
103
+ delete from vehiclepositions_cis_stops where rt_trip_id = ANY(idsForDelete);
104
+
105
+ select array_length(idsForDelete,1) into numberOfRows;
106
+ end;
107
+ $procedure$;
@@ -0,0 +1,118 @@
1
+ alter table vehiclepositions_stop_times_history
2
+ add COLUMN stop_name varchar(255),
3
+ add COLUMN lat numeric,
4
+ add COLUMN lng numeric;
5
+
6
+
7
+ CREATE OR REPLACE VIEW v_vehiclepositions_past_stop_times
8
+ AS SELECT sub.trips_id AS rt_trip_id,
9
+ sub.last_stop_sequence AS stop_sequence,
10
+ sub.last_stop_id AS stop_id,
11
+ sub.last_stop_arrival_time AS stop_arrival,
12
+ sub.last_stop_departure_time AS stop_departure,
13
+ max(sub.delay_stop_arrival) AS stop_arr_delay,
14
+ min(sub.delay_stop_departure) AS stop_dep_delay,
15
+ sub.last_stop_name as stop_name,
16
+ sub.lat as lat,
17
+ sub.lng as lng
18
+ FROM ( SELECT rt_position.trips_id,
19
+ rt_position.last_stop_sequence,
20
+ rt_position.last_stop_id,
21
+ rt_position.last_stop_arrival_time,
22
+ rt_position.last_stop_departure_time,
23
+ rt_position.delay_stop_arrival,
24
+ rt_position.delay_stop_departure,
25
+ rt_position.last_stop_name,
26
+ rs.stop_lat as lat,
27
+ rs.stop_lon as lng,
28
+ row_number() OVER seq AS rn
29
+ FROM vehiclepositions_positions rt_position
30
+ JOIN ropidgtfs_stops rs ON rs.stop_id = rt_position.last_stop_id
31
+ WHERE (rt_position.delay_stop_arrival IS NOT NULL OR rt_position.delay_stop_departure IS NOT NULL) AND (rt_position.state_position::text = ANY (ARRAY['on_track'::character varying::text, 'at_stop'::character varying::text, 'after_track'::character varying::text]))
32
+ WINDOW seq AS (PARTITION BY rt_position.trips_id, rt_position.last_stop_sequence, rt_position.state_position ORDER BY rt_position.id)) sub
33
+ WHERE sub.rn = 1
34
+ GROUP BY sub.trips_id, sub.last_stop_arrival_time, sub.last_stop_departure_time, sub.last_stop_sequence, sub.last_stop_id, sub.last_stop_name, sub.lat, sub.lng
35
+ ORDER BY sub.trips_id, sub.last_stop_sequence;
36
+
37
+ CREATE OR REPLACE PROCEDURE vehiclepositions_data_retention(inout numberOfRows int, in dataRetentionMinutes int)
38
+ LANGUAGE plpgsql
39
+ SET search_path FROM CURRENT
40
+ AS $procedure$
41
+ declare
42
+ idsForDelete varchar(255)[];
43
+ begin
44
+ select array_agg(t.id) from vehiclepositions_trips t
45
+ left join vehiclepositions_positions p on
46
+ p.id = t.last_position_id
47
+ where
48
+ p.valid_to < (NOW() - (dataRetentionMinutes || ' minutes')::interval)
49
+ or (t.gtfs_trip_id is null and p.valid_to is null and p.updated_at < NOW() - (dataRetentionMinutes || ' minutes')::interval) -- entries with valid to is null
50
+ into idsForDelete;
51
+
52
+ INSERT INTO vehiclepositions_trips_history
53
+ select * from vehiclepositions_trips where id = ANY(idsForDelete)
54
+ on conflict do nothing;
55
+
56
+ INSERT INTO vehiclepositions_positions_history
57
+ select * from vehiclepositions_positions where trips_id = ANY(idsForDelete)
58
+ on conflict do nothing;
59
+
60
+ insert into vehiclepositions_stop_times_history (
61
+ rt_trip_id,
62
+ gtfs_date,
63
+ gtfs_trip_id,
64
+ gtfs_direction_id,
65
+ gtfs_route_short_name,
66
+ gtfs_route_type,
67
+ run_number,
68
+ vehicle_registration_number,
69
+ gtfs_stop_id,
70
+ gtfs_stop_sequence,
71
+ current_stop_arrival,
72
+ current_stop_departure,
73
+ current_stop_arr_delay,
74
+ current_stop_dep_delay,
75
+ created_at,
76
+ updated_at,
77
+ origin_route_name,
78
+ stop_name,
79
+ lat,
80
+ lng
81
+ )
82
+ select
83
+ rt_trip.id,
84
+ rt_trip.gtfs_date,
85
+ rt_trip.gtfs_trip_id,
86
+ rt_trip.gtfs_direction_id,
87
+ rt_trip.gtfs_route_short_name,
88
+ rt_trip.gtfs_route_type,
89
+ rt_trip.run_number,
90
+ rt_trip.vehicle_registration_number,
91
+ stop_time.stop_id,
92
+ stop_time.stop_sequence,
93
+ stop_time.stop_arrival,
94
+ stop_time.stop_departure,
95
+ stop_time.stop_arr_delay,
96
+ stop_time.stop_dep_delay,
97
+ now(),
98
+ now(),
99
+ rt_trip.origin_route_name,
100
+ stop_time.stop_name,
101
+ stop_time.lat,
102
+ stop_time.lng
103
+ from
104
+ vehiclepositions_trips rt_trip
105
+ join
106
+ v_vehiclepositions_past_stop_times stop_time on stop_time.rt_trip_id = rt_trip.id
107
+ where
108
+ rt_trip.id = ANY(idsForDelete)
109
+ on conflict do nothing;
110
+
111
+
112
+ delete from vehiclepositions_positions where trips_id = ANY(idsForDelete);
113
+ delete from vehiclepositions_trips where id = ANY(idsForDelete);
114
+ delete from vehiclepositions_cis_stops where rt_trip_id = ANY(idsForDelete);
115
+
116
+ select array_length(idsForDelete,1) into numberOfRows;
117
+ end;
118
+ $procedure$;
@@ -0,0 +1,2 @@
1
+ drop index ropidgtfs_stop_times_drop_off_pickup_type_idx;
2
+ drop index if exists ropidgtfs_stop_times_drop_off_pickup_type_actual_idx;
@@ -0,0 +1,2 @@
1
+ create index ropidgtfs_stop_times_drop_off_pickup_type_idx on ropidgtfs_stop_times (drop_off_type, pickup_type);
2
+ create index ropidgtfs_stop_times_drop_off_pickup_type_actual_idx on ropidgtfs_stop_times_actual (drop_off_type, pickup_type);
@@ -0,0 +1,20 @@
1
+ export declare enum GtfsStopTimePickupType {
2
+ /** Regularly scheduled pickup */
3
+ RegularlyScheduled = 0,
4
+ /** No pickup available */
5
+ NoPickup = 1,
6
+ /** Must phone agency to arrange pickup */
7
+ MustPhone = 2,
8
+ /** Must coordinate with driver to arrange pickup */
9
+ MustCoordinate = 3
10
+ }
11
+ export declare enum GtfsStopTimeDropOffType {
12
+ /** Regularly scheduled drop off */
13
+ RegularlyScheduled = 0,
14
+ /** No drop off available */
15
+ NoDropOff = 1,
16
+ /** Must phone agency to arrange drop off */
17
+ MustPhone = 2,
18
+ /** Must coordinate with driver to arrange drop off */
19
+ MustCoordinate = 3
20
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GtfsStopTimeDropOffType = exports.GtfsStopTimePickupType = void 0;
4
+ var GtfsStopTimePickupType;
5
+ (function (GtfsStopTimePickupType) {
6
+ /** Regularly scheduled pickup */
7
+ GtfsStopTimePickupType[GtfsStopTimePickupType["RegularlyScheduled"] = 0] = "RegularlyScheduled";
8
+ /** No pickup available */
9
+ GtfsStopTimePickupType[GtfsStopTimePickupType["NoPickup"] = 1] = "NoPickup";
10
+ /** Must phone agency to arrange pickup */
11
+ GtfsStopTimePickupType[GtfsStopTimePickupType["MustPhone"] = 2] = "MustPhone";
12
+ /** Must coordinate with driver to arrange pickup */
13
+ GtfsStopTimePickupType[GtfsStopTimePickupType["MustCoordinate"] = 3] = "MustCoordinate";
14
+ })(GtfsStopTimePickupType || (exports.GtfsStopTimePickupType = GtfsStopTimePickupType = {}));
15
+ var GtfsStopTimeDropOffType;
16
+ (function (GtfsStopTimeDropOffType) {
17
+ /** Regularly scheduled drop off */
18
+ GtfsStopTimeDropOffType[GtfsStopTimeDropOffType["RegularlyScheduled"] = 0] = "RegularlyScheduled";
19
+ /** No drop off available */
20
+ GtfsStopTimeDropOffType[GtfsStopTimeDropOffType["NoDropOff"] = 1] = "NoDropOff";
21
+ /** Must phone agency to arrange drop off */
22
+ GtfsStopTimeDropOffType[GtfsStopTimeDropOffType["MustPhone"] = 2] = "MustPhone";
23
+ /** Must coordinate with driver to arrange drop off */
24
+ GtfsStopTimeDropOffType[GtfsStopTimeDropOffType["MustCoordinate"] = 3] = "MustCoordinate";
25
+ })(GtfsStopTimeDropOffType || (exports.GtfsStopTimeDropOffType = GtfsStopTimeDropOffType = {}));
26
+ //# sourceMappingURL=PassengerTransferEnums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PassengerTransferEnums.js","sourceRoot":"","sources":["../../src/helpers/PassengerTransferEnums.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAYX;AAZD,WAAY,sBAAsB;IAC9B,iCAAiC;IACjC,+FAAsB,CAAA;IAEtB,0BAA0B;IAC1B,2EAAY,CAAA;IAEZ,0CAA0C;IAC1C,6EAAa,CAAA;IAEb,oDAAoD;IACpD,uFAAkB,CAAA;AACtB,CAAC,EAZW,sBAAsB,sCAAtB,sBAAsB,QAYjC;AAED,IAAY,uBAYX;AAZD,WAAY,uBAAuB;IAC/B,mCAAmC;IACnC,iGAAsB,CAAA;IAEtB,4BAA4B;IAC5B,+EAAa,CAAA;IAEb,4CAA4C;IAC5C,+EAAa,CAAA;IAEb,sDAAsD;IACtD,yFAAkB,CAAA;AACtB,CAAC,EAZW,uBAAuB,uCAAvB,uBAAuB,QAYlC"}
@@ -52,7 +52,6 @@ let CheckForNewDeparturesPresetsTask = exports.CheckForNewDeparturesPresetsTask
52
52
  throw err;
53
53
  }
54
54
  else {
55
- console.log(err);
56
55
  throw new golemio_errors_1.GeneralError("Error while checking for new departures presets", this.constructor.name, err);
57
56
  }
58
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CheckForNewDeparturesPresetsTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/presets/tasks/CheckForNewDeparturesPresetsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,sFAAyF;AACzF,kFAAqF;AACrF,8EAAwF;AACxF,iEAAwE;AACxE,8DAAuD;AACvD,6EAA8F;AAC9F,4FAAyF;AACzF,6EAA4C;AAGrC,IAAM,gCAAgC,8CAAtC,MAAM,gCAAiC,SAAQ,sCAAiB;IAInE,YACiE,kBAAuD,EAEpH,2BAAgE;QAEhE,KAAK,CAAC,sBAAS,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAJiC,uBAAkB,GAAlB,kBAAkB,CAA6B;QAE5G,gCAA2B,GAA3B,2BAA2B,CAA6B;QANpD,cAAS,GAAG,8BAA8B,CAAC;QAC3C,aAAQ,GAAG,EAAE,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,YAAY;IAQtD,CAAC;IAEe,OAAO;;YACnB,IAAI;gBACA,MAAM,mCAAmC,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,eAAe,EAAE,CAAC;gBACrG,MAAM,+BAA+B,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,6BAAW,CAAC,kBAAkB,CAAC,CAAC;gBACtH,IAAI,mCAAmC,KAAK,+BAA+B,CAAC,YAAY,EAAE;oBACtF,MAAM,iCAAY,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,2BAA2B,EAAE,EAAE,CAAC,CAAC;iBAC/F;aACJ;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,GAAG,YAAY,qCAAoB,EAAE;oBACrC,MAAM,GAAG,CAAC;iBACb;qBAAM;oBACH,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;oBACjB,MAAM,IAAI,6BAAY,CAAC,iDAAiD,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;iBACzG;aACJ;QACL,CAAC;KAAA;CACJ,CAAA;2CA5BY,gCAAgC;IAD5C,IAAA,qBAAU,GAAE;IAMJ,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,2BAA2B,CAAC,CAAA;IAC3D,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,2BAA2B,CAAC,CAAA;qCAD6B,yDAA2B;QAE/E,yDAA2B;GAP3D,gCAAgC,CA4B5C"}
1
+ {"version":3,"file":"CheckForNewDeparturesPresetsTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/presets/tasks/CheckForNewDeparturesPresetsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,sFAAyF;AACzF,kFAAqF;AACrF,8EAAwF;AACxF,iEAAwE;AACxE,8DAAuD;AACvD,6EAA8F;AAC9F,4FAAyF;AACzF,6EAA4C;AAGrC,IAAM,gCAAgC,8CAAtC,MAAM,gCAAiC,SAAQ,sCAAiB;IAInE,YACiE,kBAAuD,EAEpH,2BAAgE;QAEhE,KAAK,CAAC,sBAAS,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAJiC,uBAAkB,GAAlB,kBAAkB,CAA6B;QAE5G,gCAA2B,GAA3B,2BAA2B,CAA6B;QANpD,cAAS,GAAG,8BAA8B,CAAC;QAC3C,aAAQ,GAAG,EAAE,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,YAAY;IAQtD,CAAC;IAEe,OAAO;;YACnB,IAAI;gBACA,MAAM,mCAAmC,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,eAAe,EAAE,CAAC;gBACrG,MAAM,+BAA+B,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,6BAAW,CAAC,kBAAkB,CAAC,CAAC;gBACtH,IAAI,mCAAmC,KAAK,+BAA+B,CAAC,YAAY,EAAE;oBACtF,MAAM,iCAAY,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,2BAA2B,EAAE,EAAE,CAAC,CAAC;iBAC/F;aACJ;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,GAAG,YAAY,qCAAoB,EAAE;oBACrC,MAAM,GAAG,CAAC;iBACb;qBAAM;oBACH,MAAM,IAAI,6BAAY,CAAC,iDAAiD,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;iBACzG;aACJ;QACL,CAAC;KAAA;CACJ,CAAA;2CA3BY,gCAAgC;IAD5C,IAAA,qBAAU,GAAE;IAMJ,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,2BAA2B,CAAC,CAAA;IAC3D,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,2BAA2B,CAAC,CAAA;qCAD6B,yDAA2B;QAE/E,yDAA2B;GAP3D,gCAAgC,CA2B5C"}
@@ -45,7 +45,6 @@ let DownloadDeparturesPresetsTask = exports.DownloadDeparturesPresetsTask = clas
45
45
  yield this.facade.handleNewDeparturePresets(file.data, lastModified);
46
46
  }
47
47
  catch (err) {
48
- console.log(err);
49
48
  if (err instanceof golemio_errors_1.AbstractGolemioError) {
50
49
  throw err;
51
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DownloadDeparturesPresetsTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/presets/tasks/DownloadDeparturesPresetsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mFAAsF;AACtF,kFAAqF;AACrF,8EAA0E;AAC1E,6EAA8F;AAC9F,iEAAwE;AACxE,4FAAyF;AAEzF,6EAA4C;AAGrC,IAAM,6BAA6B,2CAAnC,MAAM,6BAA8B,SAAQ,sCAAiB;IAIhE,YAEI,2BAAgE,EACR,MAAsC;QAE9F,KAAK,CAAC,sBAAS,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAH5B,gCAA2B,GAA3B,2BAA2B,CAA6B;QACA,WAAM,GAAN,MAAM,CAAwB;QANlG,cAAS,GAAG,2BAA2B,CAAC;QACxC,aAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,YAAY;IAQtC,CAAC;IAEe,OAAO;;YACnB,IAAI;gBACA,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,MAAM,EAAE,CAAC;gBAC7D,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,eAAe,EAAE,CAAC;gBAC9E,MAAM,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;aACxE;YAAC,OAAO,GAAG,EAAE;gBACV,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACjB,IAAI,GAAG,YAAY,qCAAoB,EAAE;oBACrC,MAAM,GAAG,CAAC;iBACb;qBAAM;oBACH,MAAM,IAAI,6BAAY,CAAC,8CAA8C,GAAG,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;iBACpH;aACJ;QACL,CAAC;KAAA;CACJ,CAAA;wCA1BY,6BAA6B;IADzC,IAAA,qBAAU,GAAE;IAMJ,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,2BAA2B,CAAC,CAAA;IAE3D,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,sBAAsB,CAAC,CAAA;qCADlB,yDAA2B;QACQ,+CAAsB;GAPzF,6BAA6B,CA0BzC"}
1
+ {"version":3,"file":"DownloadDeparturesPresetsTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/presets/tasks/DownloadDeparturesPresetsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mFAAsF;AACtF,kFAAqF;AACrF,8EAA0E;AAC1E,6EAA8F;AAC9F,iEAAwE;AACxE,4FAAyF;AAEzF,6EAA4C;AAGrC,IAAM,6BAA6B,2CAAnC,MAAM,6BAA8B,SAAQ,sCAAiB;IAIhE,YAEI,2BAAgE,EACR,MAAsC;QAE9F,KAAK,CAAC,sBAAS,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAH5B,gCAA2B,GAA3B,2BAA2B,CAA6B;QACA,WAAM,GAAN,MAAM,CAAwB;QANlG,cAAS,GAAG,2BAA2B,CAAC;QACxC,aAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,YAAY;IAQtC,CAAC;IAEe,OAAO;;YACnB,IAAI;gBACA,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,MAAM,EAAE,CAAC;gBAC7D,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,eAAe,EAAE,CAAC;gBAC9E,MAAM,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;aACxE;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,GAAG,YAAY,qCAAoB,EAAE;oBACrC,MAAM,GAAG,CAAC;iBACb;qBAAM;oBACH,MAAM,IAAI,6BAAY,CAAC,8CAA8C,GAAG,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;iBACpH;aACJ;QACL,CAAC;KAAA;CACJ,CAAA;wCAzBY,6BAA6B;IADzC,IAAA,qBAAU,GAAE;IAMJ,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,2BAA2B,CAAC,CAAA;IAE3D,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,sBAAsB,CAAC,CAAA;qCADlB,yDAA2B;QACQ,+CAAsB;GAPzF,6BAA6B,CAyBzC"}
@@ -15,6 +15,7 @@ import { NextFunction, Request, Response, Router } from "@golemio/core/dist/shar
15
15
  */
16
16
  export declare class DepartureBoardsRouter extends BaseRouter {
17
17
  router: Router;
18
+ private cacheHeaderMiddleware;
18
19
  private defaultQueryParameters;
19
20
  protected departureBoardsModel: PIDDepartureBoardsModel;
20
21
  constructor();