@golemio/pid 2.11.6-dev.1157246600 → 2.11.6-dev.1157466489
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/17_blocked_trains.sql +5 -8
- package/db/example/redis/publicVehiclePositionsMock.json +26 -8
- package/db/migrations/postgresql/20240122141600-public-api-detailed-endpoint.js +53 -0
- package/db/migrations/postgresql/sqls/20240122141600-public-api-detailed-endpoint-down.sql +16 -0
- package/db/migrations/postgresql/sqls/20240122141600-public-api-detailed-endpoint-up.sql +137 -0
- package/dist/integration-engine/ioc/Di.d.ts +2 -1
- package/dist/integration-engine/ioc/Di.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/RopidGTFSTripsModel.js +1 -1
- package/dist/integration-engine/ropid-gtfs/RopidGTFSTripsModel.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/data-access/cache/DelayComputationRedisRepository.d.ts +1 -0
- package/dist/integration-engine/ropid-gtfs/data-access/cache/DelayComputationRedisRepository.js +27 -1
- package/dist/integration-engine/ropid-gtfs/data-access/cache/DelayComputationRedisRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js +4 -2
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/interfaces/TripModelInterfaces.d.ts +1 -0
- package/dist/integration-engine/vehicle-positions/ioc/Di.js +8 -2
- package/dist/integration-engine/vehicle-positions/ioc/Di.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.d.ts +4 -1
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.js +4 -1
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/VPWorker.js +2 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/VPWorker.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +13 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/cache/PublicApiCacheRepository.js +2 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/cache/PublicApiCacheRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/cache/PublicStopTimeCacheRepository.d.ts +7 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/cache/PublicStopTimeCacheRepository.js +70 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/cache/PublicStopTimeCacheRepository.js.map +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js +7 -3
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/TripsMapper.js +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/TripsMapper.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/interfaces/TripRepositoryInterfaces.d.ts +13 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/views/PublicStopTimeRepository.d.ts +9 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/views/PublicStopTimeRepository.js +54 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/views/PublicStopTimeRepository.js.map +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/DelayComputationManager.d.ts +2 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/DelayComputationManager.js +9 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/DelayComputationManager.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/VPUtils.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/VPUtils.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/anchor-points/AnchorPointSegmenter.js +0 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/anchor-points/AnchorPointSegmenter.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/interfaces/VPInterfaces.d.ts +2 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/ProcessRegionalBusPositionsTask.d.ts +4 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/ProcessRegionalBusPositionsTask.js +14 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/ProcessRegionalBusPositionsTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.d.ts +19 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js +117 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js.map +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/{RefreshPublicCacheTask.d.ts → RefreshPublicTripCacheTask.d.ts} +2 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/{RefreshPublicCacheTask.js → RefreshPublicTripCacheTask.js} +14 -14
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicTripCacheTask.js.map +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/UpdateDelayTask.d.ts +4 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/UpdateDelayTask.js +14 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/UpdateDelayTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.d.ts +2 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js +21 -3
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js.map +1 -1
- package/dist/output-gateway/pid/PIDRouter.d.ts +1 -1
- package/dist/output-gateway/pid/PIDRouter.js +1 -1
- package/dist/output-gateway/pid/PIDRouter.js.map +1 -1
- package/dist/output-gateway/public/controllers/v1/PublicVehiclePositionsController.d.ts +6 -5
- package/dist/output-gateway/public/controllers/v1/PublicVehiclePositionsController.js +22 -3
- package/dist/output-gateway/public/controllers/v1/PublicVehiclePositionsController.js.map +1 -1
- package/dist/output-gateway/public/controllers/v1/interfaces/PublicParamsInterfaces.d.ts +12 -0
- package/dist/output-gateway/public/controllers/v1/interfaces/PublicParamsInterfaces.js +3 -0
- package/dist/output-gateway/public/controllers/v1/interfaces/PublicParamsInterfaces.js.map +1 -0
- package/dist/output-gateway/public/data-access/VehicleDescriptorCachedRepository.d.ts +13 -0
- package/dist/output-gateway/public/data-access/VehicleDescriptorCachedRepository.js +71 -0
- package/dist/output-gateway/public/data-access/VehicleDescriptorCachedRepository.js.map +1 -0
- package/dist/output-gateway/public/data-access/redis/DelayComputationRepository.d.ts +10 -0
- package/dist/output-gateway/public/data-access/redis/DelayComputationRepository.js +68 -0
- package/dist/output-gateway/public/data-access/redis/DelayComputationRepository.js.map +1 -0
- package/dist/output-gateway/public/data-access/redis/PublicStopTimeRepository.d.ts +10 -0
- package/dist/output-gateway/public/data-access/redis/PublicStopTimeRepository.js +68 -0
- package/dist/output-gateway/public/data-access/redis/PublicStopTimeRepository.js.map +1 -0
- package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.d.ts +3 -1
- package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.js +64 -7
- package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.js.map +1 -1
- package/dist/output-gateway/public/domain/PublicApiDetailedTripInterfaces.d.ts +48 -0
- package/dist/output-gateway/public/domain/PublicApiDetailedTripInterfaces.js +3 -0
- package/dist/output-gateway/public/domain/PublicApiDetailedTripInterfaces.js.map +1 -0
- package/dist/output-gateway/public/domain/repository/IDelayComputationRepository.d.ts +4 -0
- package/dist/output-gateway/public/domain/repository/IDelayComputationRepository.js +3 -0
- package/dist/output-gateway/public/domain/repository/IDelayComputationRepository.js.map +1 -0
- package/dist/output-gateway/public/domain/repository/IStopTimeRepository.d.ts +4 -0
- package/dist/output-gateway/public/domain/repository/IStopTimeRepository.js +3 -0
- package/dist/output-gateway/public/domain/repository/IStopTimeRepository.js.map +1 -0
- package/dist/output-gateway/public/domain/repository/IVehiclePositionsRepository.d.ts +3 -1
- package/dist/output-gateway/public/ioc/Di.js +20 -0
- package/dist/output-gateway/public/ioc/Di.js.map +1 -1
- package/dist/output-gateway/public/ioc/OgModuleToken.d.ts +8 -0
- package/dist/output-gateway/public/ioc/OgModuleToken.js +8 -0
- package/dist/output-gateway/public/ioc/OgModuleToken.js.map +1 -1
- package/dist/output-gateway/public/routers/v1/PublicRouter.d.ts +1 -1
- package/dist/output-gateway/public/routers/v1/PublicRouter.js +4 -2
- package/dist/output-gateway/public/routers/v1/PublicRouter.js.map +1 -1
- package/dist/output-gateway/public/routers/v1/helpers/CustomScopeValidator.d.ts +6 -0
- package/dist/output-gateway/public/routers/v1/helpers/CustomScopeValidator.js +26 -0
- package/dist/output-gateway/public/routers/v1/helpers/CustomScopeValidator.js.map +1 -0
- package/dist/output-gateway/public/routers/v1/helpers/DetailedTripScopeEnum.d.ts +6 -0
- package/dist/output-gateway/public/routers/v1/helpers/DetailedTripScopeEnum.js +11 -0
- package/dist/output-gateway/public/routers/v1/helpers/DetailedTripScopeEnum.js.map +1 -0
- package/dist/output-gateway/public/service/facade/DetailedTripFacade.d.ts +8 -0
- package/dist/output-gateway/public/service/facade/DetailedTripFacade.js +42 -0
- package/dist/output-gateway/public/service/facade/DetailedTripFacade.js.map +1 -0
- package/dist/output-gateway/public/service/facade/VehiclePositionsFacade.js +10 -1
- package/dist/output-gateway/public/service/facade/VehiclePositionsFacade.js.map +1 -1
- package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHelper.d.ts +6 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHelper.js +11 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHelper.js.map +1 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractTripScopeHandler.d.ts +5 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractTripScopeHandler.js +7 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractTripScopeHandler.js.map +1 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/InfoTripScopeHelper.d.ts +8 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/InfoTripScopeHelper.js +41 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/InfoTripScopeHelper.js.map +1 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/ShapesTripScopeHelper.d.ts +10 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/ShapesTripScopeHelper.js +53 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/ShapesTripScopeHelper.js.map +1 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHelper.d.ts +12 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHelper.js +77 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHelper.js.map +1 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/TripScopeHandlerFactory.d.ts +9 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/TripScopeHandlerFactory.js +30 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/TripScopeHandlerFactory.js.map +1 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/VehicleDescriptorTripScopeHelper.d.ts +10 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/VehicleDescriptorTripScopeHelper.js +54 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/VehicleDescriptorTripScopeHelper.js.map +1 -0
- package/dist/output-gateway/public/service/transformations/PublicVehiclePositionsTransformation.d.ts +1 -1
- package/dist/output-gateway/public/service/transformations/PublicVehiclePositionsTransformation.js +15 -3
- package/dist/output-gateway/public/service/transformations/PublicVehiclePositionsTransformation.js.map +1 -1
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripInfoTransformation.d.ts +26 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripInfoTransformation.js +47 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripInfoTransformation.js.map +1 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripShapesTransformation.d.ts +7 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripShapesTransformation.js +21 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripShapesTransformation.js.map +1 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripStopTimesTransformation.d.ts +7 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripStopTimesTransformation.js +41 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripStopTimesTransformation.js.map +1 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPVehicleDescriptorTransformation.d.ts +14 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPVehicleDescriptorTransformation.js +22 -0
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPVehicleDescriptorTransformation.js.map +1 -0
- package/dist/output-gateway/vehicle-positions/data-access/TripRepository.js +1 -0
- package/dist/output-gateway/vehicle-positions/data-access/TripRepository.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.d.ts +3 -0
- package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js +4 -0
- package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/redis/interfaces/IDelayComputationDto.d.ts +6 -0
- package/dist/schema-definitions/ropid-gtfs/redis/schemas/DelayComputationDtoSchema.js +19 -2
- package/dist/schema-definitions/ropid-gtfs/redis/schemas/DelayComputationDtoSchema.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.d.ts +1 -0
- package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.js +4 -0
- package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/models/interfaces/IVPTripsModel.d.ts +1 -0
- package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.d.ts +10 -0
- package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js +33 -0
- package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js.map +1 -0
- package/dist/schema-definitions/vehicle-positions/models/views/index.d.ts +1 -0
- package/dist/schema-definitions/vehicle-positions/models/views/index.js +1 -0
- package/dist/schema-definitions/vehicle-positions/models/views/index.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/models/views/interfaces/IPublicStopTimeDto.d.ts +6 -0
- package/dist/{output-gateway/public/controllers/v1/IParams.js → schema-definitions/vehicle-positions/models/views/interfaces/IPublicStopTimeDto.js} +1 -1
- package/dist/schema-definitions/vehicle-positions/models/views/interfaces/IPublicStopTimeDto.js.map +1 -0
- package/dist/schema-definitions/vehicle-positions/redis/const.d.ts +2 -0
- package/dist/schema-definitions/vehicle-positions/redis/const.js +3 -1
- package/dist/schema-definitions/vehicle-positions/redis/const.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/redis/interfaces/IGtfsRunTripCacheDto.d.ts +1 -0
- package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicApiCacheDto.d.ts +13 -0
- package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicStopTimeCacheDto.d.ts +5 -0
- package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicStopTimeCacheDto.js +3 -0
- package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicStopTimeCacheDto.js.map +1 -0
- package/dist/schema-definitions/vehicle-positions/redis/schemas/GtfsRunTripCacheDtoSchema.js +1 -0
- package/dist/schema-definitions/vehicle-positions/redis/schemas/GtfsRunTripCacheDtoSchema.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js +49 -0
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.d.ts +4 -0
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js +41 -0
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js.map +1 -0
- package/docs/implementation_documentation.md +30 -3
- package/docs/openapi-input.yaml +4 -5
- package/docs/openapi-output.yaml +262 -3
- package/package.json +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicCacheTask.js.map +0 -1
- package/dist/output-gateway/public/controllers/v1/IParams.d.ts +0 -7
- package/dist/output-gateway/public/controllers/v1/IParams.js.map +0 -1
|
@@ -49,6 +49,54 @@ const publicApiCacheDtoSchema = {
|
|
|
49
49
|
},
|
|
50
50
|
],
|
|
51
51
|
},
|
|
52
|
+
detailed_info: {
|
|
53
|
+
type: "object",
|
|
54
|
+
properties: {
|
|
55
|
+
is_wheelchair_accessible: {
|
|
56
|
+
oneOf: [{ type: "boolean" }, { type: "null", nullable: true }],
|
|
57
|
+
},
|
|
58
|
+
origin_route_name: {
|
|
59
|
+
oneOf: [{ type: "string" }, { type: "null", nullable: true }],
|
|
60
|
+
},
|
|
61
|
+
shape_id: {
|
|
62
|
+
oneOf: [{ type: "string" }, { type: "null", nullable: true }],
|
|
63
|
+
},
|
|
64
|
+
run_number: {
|
|
65
|
+
oneOf: [{ type: "number" }, { type: "null", nullable: true }],
|
|
66
|
+
},
|
|
67
|
+
trip_headsign: {
|
|
68
|
+
oneOf: [{ type: "string" }, { type: "null", nullable: true }],
|
|
69
|
+
},
|
|
70
|
+
shape_dist_traveled: {
|
|
71
|
+
oneOf: [{ type: "number" }, { type: "null", nullable: true }],
|
|
72
|
+
},
|
|
73
|
+
last_stop_sequence: {
|
|
74
|
+
oneOf: [{ type: "number" }, { type: "null", nullable: true }],
|
|
75
|
+
},
|
|
76
|
+
origin_timestamp: { type: "string" },
|
|
77
|
+
registration_number: {
|
|
78
|
+
oneOf: [{ type: "number" }, { type: "null", nullable: true }],
|
|
79
|
+
},
|
|
80
|
+
operator: {
|
|
81
|
+
oneOf: [{ type: "string" }, { type: "null", nullable: true }],
|
|
82
|
+
},
|
|
83
|
+
vehicle_type_id: {
|
|
84
|
+
oneOf: [{ type: "number" }, { type: "null", nullable: true }],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
required: [
|
|
88
|
+
"origin_timestamp",
|
|
89
|
+
"origin_route_name",
|
|
90
|
+
"shape_id",
|
|
91
|
+
"run_number",
|
|
92
|
+
"trip_headsign",
|
|
93
|
+
"shape_dist_traveled",
|
|
94
|
+
"last_stop_sequence",
|
|
95
|
+
"registration_number",
|
|
96
|
+
"operator",
|
|
97
|
+
"vehicle_type_id",
|
|
98
|
+
],
|
|
99
|
+
},
|
|
52
100
|
},
|
|
53
101
|
required: [
|
|
54
102
|
"vehicle_id",
|
|
@@ -60,6 +108,7 @@ const publicApiCacheDtoSchema = {
|
|
|
60
108
|
"bearing",
|
|
61
109
|
"delay",
|
|
62
110
|
"state_position",
|
|
111
|
+
"detailed_info",
|
|
63
112
|
],
|
|
64
113
|
},
|
|
65
114
|
};
|
package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicApiCacheDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,uBAAuB,GAAyC;IAClE,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,YAAY,EAAE;gBACV,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,qBAAqB,EAAE;gBACnB,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAClC,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE;gBACL,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,KAAK,EAAE;gBACH,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;SACJ;QACD,QAAQ,EAAE;YACN,YAAY;YACZ,cAAc;YACd,YAAY;YACZ,uBAAuB;YACvB,KAAK;YACL,KAAK;YACL,SAAS;YACT,OAAO;YACP,gBAAgB;
|
|
1
|
+
{"version":3,"file":"PublicApiCacheDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,uBAAuB,GAAyC;IAClE,OAAO,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,eAAe;oBACf,qBAAqB;oBACrB,oBAAoB;oBACpB,qBAAqB;oBACrB,UAAU;oBACV,iBAAiB;iBACpB;aACJ;SACJ;QACD,QAAQ,EAAE;YACN,YAAY;YACZ,cAAc;YACd,YAAY;YACZ,uBAAuB;YACvB,KAAK;YACL,KAAK;YACL,SAAS;YACT,OAAO;YACP,gBAAgB;YAChB,eAAe;SAClB;KACJ;CACJ,CAAC;AACkC,0DAAuB"}
|
package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
+
import { IPublicStopTimeCacheDto } from "../interfaces/IPublicStopTimeCacheDto";
|
|
3
|
+
declare const publicStopTimeCacheDtoSchema: JSONSchemaType<IPublicStopTimeCacheDto[]>;
|
|
4
|
+
export { publicStopTimeCacheDtoSchema as PublicStopTimeCacheDtoSchema };
|
package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicStopTimeCacheDtoSchema = void 0;
|
|
4
|
+
const publicStopTimeCacheDtoSchema = {
|
|
5
|
+
$schema: "http://json-schema.org/draft-04/schema#",
|
|
6
|
+
title: "PublicApiCacheDto",
|
|
7
|
+
type: "array",
|
|
8
|
+
items: {
|
|
9
|
+
type: "object",
|
|
10
|
+
properties: {
|
|
11
|
+
sequence: {
|
|
12
|
+
type: "number",
|
|
13
|
+
},
|
|
14
|
+
arr_delay: {
|
|
15
|
+
oneOf: [
|
|
16
|
+
{
|
|
17
|
+
type: "number",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
type: "null",
|
|
21
|
+
nullable: true,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
dep_delay: {
|
|
26
|
+
oneOf: [
|
|
27
|
+
{
|
|
28
|
+
type: "number",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: "null",
|
|
32
|
+
nullable: true,
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
required: ["sequence", "arr_delay", "dep_delay"],
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
exports.PublicStopTimeCacheDtoSchema = publicStopTimeCacheDtoSchema;
|
|
41
|
+
//# sourceMappingURL=PublicStopTimeCacheDtoSchema.js.map
|
package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicStopTimeCacheDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,4BAA4B,GAA8C;IAC5E,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,SAAS,EAAE;gBACP,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,SAAS,EAAE;gBACP,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;SACJ;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC;KACnD;CACJ,CAAC;AACuC,oEAA4B"}
|
|
@@ -846,14 +846,14 @@ Worker má na starost zpracování a transformaci polohových dat, výpočet zpo
|
|
|
846
846
|
- VPTripsModel `vehiclepositions_trips`
|
|
847
847
|
- VPTripsHistoryModel `vehiclepositions_trips_history`
|
|
848
848
|
|
|
849
|
-
#### _task:
|
|
849
|
+
#### _task: RefreshPublicTripCacheTask_
|
|
850
850
|
|
|
851
851
|
- vstupní rabbitmq fronta
|
|
852
|
-
- název: vehicle-positions.vehiclepositions.
|
|
852
|
+
- název: vehicle-positions.vehiclepositions.refreshPublicTripCache
|
|
853
853
|
- TTL: 1s
|
|
854
854
|
- parametry: žádné
|
|
855
855
|
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
856
|
-
- `vehicle-positions.vehiclepositions.
|
|
856
|
+
- `vehicle-positions.vehiclepositions.refreshPublicTripCache` task se spouští sám sebe a cron plní doplňující funkci.
|
|
857
857
|
- popis
|
|
858
858
|
- před samotným spuštěním se zkontroluje pomocí semaforu zdali task již někde neběží
|
|
859
859
|
- připraví zjednodušené informace o aktuálních pozicích, které se odešlou do redisu
|
|
@@ -862,6 +862,24 @@ Worker má na starost zpracování a transformaci polohových dat, výpočet zpo
|
|
|
862
862
|
- VPPositionsModel `vehiclepositions_positions`
|
|
863
863
|
- VPTripsModel `vehiclepositions_trips`
|
|
864
864
|
|
|
865
|
+
#### _task: RefreshPublicStopTimeCacheTask_
|
|
866
|
+
|
|
867
|
+
- vstupní rabbitmq fronta
|
|
868
|
+
- název: vehicle-positions.vehiclepositions.refreshPublicStopTimeCache
|
|
869
|
+
- TTL: 5s
|
|
870
|
+
- parametry: žádné
|
|
871
|
+
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
872
|
+
- `vehicle-positions.vehiclepositions.refreshPublicStopTimeCache` task se spouští sám sebe a cron plní doplňující funkci.
|
|
873
|
+
- popis
|
|
874
|
+
- před samotným spuštěním se zkontroluje pomocí semaforu zdali task již někde neběží
|
|
875
|
+
- připraví informace o historických a predikovaných zpožděních aktivních spojů, které se odešlou do redisu
|
|
876
|
+
- data modely
|
|
877
|
+
- VPPositionsModel `vehiclepositions_positions`
|
|
878
|
+
- VPTripsModel `vehiclepositions_trips`
|
|
879
|
+
- DescriptorModel `vehiclepositions_vehicle_descriptors`
|
|
880
|
+
- GtfsShapesModel `ropidgtfs_shapes`
|
|
881
|
+
- PublicStopTimeModel `v_public_vehiclepositions_combined_stop_times`
|
|
882
|
+
|
|
865
883
|
### _RunsWorker_
|
|
866
884
|
|
|
867
885
|
Worker má na starost zpracování a transformaci TCP oběhů
|
|
@@ -1278,3 +1296,12 @@ Worker má na starost retenci dat tabulek Azure Table Storage
|
|
|
1278
1296
|
- načte aktuální polohy vozidel z redisu a vrátí je ve formátu geojson
|
|
1279
1297
|
- možno filtrovat dle bouding box na straně redisu
|
|
1280
1298
|
- podle typu vozidla a gtfs route number na klientské straně
|
|
1299
|
+
|
|
1300
|
+
#### _/public/vehiclepositions/{vehicleId}_
|
|
1301
|
+
|
|
1302
|
+
- načte jednu aktuální polohu z redisu
|
|
1303
|
+
- výstup možno filtrovat podle query parametru `scopes`
|
|
1304
|
+
- `info`: detailní informace o spoji, vč. realtime dat
|
|
1305
|
+
- `stop_times`: seznam zastávek, které vozidlo projelo a projede, vč. informací o zpoždění (historických/predikovaných), ve formátu geojson
|
|
1306
|
+
- `shapes`: seznam tvarů trasy (podle GTFS; nejedná se o naše předpočítané anchor pointy, které se mimo zastávky oproti GTFS shapes mohou lišit), ve formátu geojson
|
|
1307
|
+
- `vehicle_descriptor`: informace o vozidle (dopravce, dostupnost klimatizace, USB, ...)
|
package/docs/openapi-input.yaml
CHANGED
|
@@ -2,10 +2,9 @@ openapi: 3.0.3
|
|
|
2
2
|
info:
|
|
3
3
|
title: 🚋 Public Transport | Golemio Input Gateway
|
|
4
4
|
description: >-
|
|
5
|
-
<p>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
href="https://pid.cz/o-systemu/opendata/">pid.cz</a>.</p>
|
|
5
|
+
<p>
|
|
6
|
+
This is a placeholder description that is automatically replaced in the build process, see the <a href="https://gitlab.com/operator-ict/golemio/code/vp/input-gateway/-/blob/development/docs/openapi-header.yaml" target="_blank">/vp/input-gateway/docs/openapi-header.yaml</a> file.
|
|
7
|
+
</p>
|
|
9
8
|
version: 1.0.0
|
|
10
9
|
contact:
|
|
11
10
|
name: Golemio Prague Data Plaform
|
|
@@ -433,4 +432,4 @@ components:
|
|
|
433
432
|
"route": "/pid/departureboards",
|
|
434
433
|
"query": "?minutesAfter=40&limit=6&mode=departures&filter=routeHeadingOnceNoGapFill&order=real&aswIds=2781_2&aswIds=2781_52&skip=atStop&airCondition=true"
|
|
435
434
|
}
|
|
436
|
-
]
|
|
435
|
+
]
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -3,9 +3,9 @@ openapi: 3.0.3
|
|
|
3
3
|
info:
|
|
4
4
|
title: 🚋 Public Transport
|
|
5
5
|
description: >-
|
|
6
|
-
<p>
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
<p>
|
|
7
|
+
This is a placeholder description that is automatically replaced in the build process, see <a href="https://gitlab.com/operator-ict/golemio/code/vp/output-gateway/-/blob/development/docs/openapi-header.yaml" target="_blank">/vp/output-gateway/docs/openapi-header.yaml</a>.
|
|
8
|
+
</p>
|
|
9
9
|
version: 1.0.0
|
|
10
10
|
contact:
|
|
11
11
|
name: Golemio Prague Data Plaform
|
|
@@ -1006,6 +1006,56 @@ paths:
|
|
|
1006
1006
|
404:
|
|
1007
1007
|
description: Not found
|
|
1008
1008
|
|
|
1009
|
+
/public/vehiclepositions/{vehicleId}:
|
|
1010
|
+
get:
|
|
1011
|
+
tags:
|
|
1012
|
+
- 🕐 Public Vehicle Positions (experimental)
|
|
1013
|
+
summary: GET Vehicle Positions
|
|
1014
|
+
parameters:
|
|
1015
|
+
- name: vehicleId
|
|
1016
|
+
in: path
|
|
1017
|
+
description:
|
|
1018
|
+
Filter result by vehicle ID (same as *vehicle_id* from the `/public/vehiclepositions` EP or *id* from GTFS-RT `VehicleDescriptor`)
|
|
1019
|
+
required: true
|
|
1020
|
+
schema:
|
|
1021
|
+
type: string
|
|
1022
|
+
example: "service-3-1001"
|
|
1023
|
+
- name: scopes
|
|
1024
|
+
in: query
|
|
1025
|
+
schema:
|
|
1026
|
+
type: array
|
|
1027
|
+
items:
|
|
1028
|
+
type: string
|
|
1029
|
+
enum:
|
|
1030
|
+
- info
|
|
1031
|
+
- stop_times
|
|
1032
|
+
- shapes
|
|
1033
|
+
- vehicle_descriptor
|
|
1034
|
+
description: "Choose which scopes to include in response."
|
|
1035
|
+
required: true
|
|
1036
|
+
responses:
|
|
1037
|
+
200:
|
|
1038
|
+
description: OK
|
|
1039
|
+
content:
|
|
1040
|
+
application/json; charset=utf-8:
|
|
1041
|
+
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"
|
|
1053
|
+
|
|
1054
|
+
401:
|
|
1055
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
1056
|
+
404:
|
|
1057
|
+
description: Not found
|
|
1058
|
+
|
|
1009
1059
|
|
|
1010
1060
|
components:
|
|
1011
1061
|
responses:
|
|
@@ -2016,3 +2066,212 @@ components:
|
|
|
2016
2066
|
type:
|
|
2017
2067
|
type: string
|
|
2018
2068
|
example: Feature
|
|
2069
|
+
|
|
2070
|
+
ScopeInfo:
|
|
2071
|
+
type: object
|
|
2072
|
+
properties:
|
|
2073
|
+
gtfs_trip_id:
|
|
2074
|
+
type: string
|
|
2075
|
+
example: "115_107_180501"
|
|
2076
|
+
route_type:
|
|
2077
|
+
type: string
|
|
2078
|
+
enum: ["tram", "metro", "train", "bus", "ferry", "funicular", "trolleybus", "ext_miscellaneous"]
|
|
2079
|
+
example: "bus"
|
|
2080
|
+
route_short_name:
|
|
2081
|
+
type: string
|
|
2082
|
+
example: "22"
|
|
2083
|
+
shape_id:
|
|
2084
|
+
type: string
|
|
2085
|
+
example: "L22V3"
|
|
2086
|
+
origin_route_name:
|
|
2087
|
+
type: string
|
|
2088
|
+
example: "22"
|
|
2089
|
+
run_number:
|
|
2090
|
+
type: integer
|
|
2091
|
+
example: 1
|
|
2092
|
+
trip_headsign:
|
|
2093
|
+
type: string
|
|
2094
|
+
example: "Bílá Hora"
|
|
2095
|
+
geometry:
|
|
2096
|
+
$ref: "#/components/schemas/GeometryPoint"
|
|
2097
|
+
shape_dist_traveled:
|
|
2098
|
+
type: number
|
|
2099
|
+
description: "Distance travelled from the first stop of the trip."
|
|
2100
|
+
example: 22.804
|
|
2101
|
+
bearing:
|
|
2102
|
+
type: integer
|
|
2103
|
+
description: "Bearing of the vehicle in degrees (0-360)."
|
|
2104
|
+
example: 45
|
|
2105
|
+
delay:
|
|
2106
|
+
type: integer
|
|
2107
|
+
description: "Delay of the vehicle in seconds."
|
|
2108
|
+
example: 10
|
|
2109
|
+
state_position:
|
|
2110
|
+
type: string
|
|
2111
|
+
example: at_stop
|
|
2112
|
+
enum:
|
|
2113
|
+
- before_track
|
|
2114
|
+
- before_track_delayed
|
|
2115
|
+
- at_stop
|
|
2116
|
+
- on_track
|
|
2117
|
+
- off_track
|
|
2118
|
+
- after_track
|
|
2119
|
+
- unknown
|
|
2120
|
+
last_stop_sequence:
|
|
2121
|
+
type: integer
|
|
2122
|
+
description: index of last stop passed by the vehicle
|
|
2123
|
+
example: 3
|
|
2124
|
+
origin_timestamp:
|
|
2125
|
+
type: string
|
|
2126
|
+
description: "time when vehicle send last update"
|
|
2127
|
+
example: "2023-12-06T12:00:00+01:00"
|
|
2128
|
+
|
|
2129
|
+
ScopeStopTimes:
|
|
2130
|
+
type: object
|
|
2131
|
+
properties:
|
|
2132
|
+
stop_times:
|
|
2133
|
+
$ref: "#/components/schemas/PublicTripStopTimeFeatureCollection"
|
|
2134
|
+
|
|
2135
|
+
ScopeShapes:
|
|
2136
|
+
type: object
|
|
2137
|
+
properties:
|
|
2138
|
+
shapes:
|
|
2139
|
+
$ref: "#/components/schemas/PublicTripShapeFeatureCollection"
|
|
2140
|
+
|
|
2141
|
+
ScopeVehicleDescriptor:
|
|
2142
|
+
type: object
|
|
2143
|
+
properties:
|
|
2144
|
+
vehicle_descriptor:
|
|
2145
|
+
type: object
|
|
2146
|
+
properties:
|
|
2147
|
+
operator:
|
|
2148
|
+
type: string
|
|
2149
|
+
nullable: true
|
|
2150
|
+
example: "DPP"
|
|
2151
|
+
vehicle_type:
|
|
2152
|
+
type: string
|
|
2153
|
+
nullable: true
|
|
2154
|
+
example: "3"
|
|
2155
|
+
enum:
|
|
2156
|
+
- "1" # see MPVRouteTypesEnum
|
|
2157
|
+
- "2" # 1 - metro, 2 - tram, 3 - bus regional, 4 - bus regional, 5 - bus night
|
|
2158
|
+
- "3" # 6 - tram night, 7 - bus substitute, 8 - funicular, 9 - school, 10 - disability
|
|
2159
|
+
- "4" # 11 - contractual, 12 - ferry, 13 - train, 14 - train substitute, 15 - tram substitute
|
|
2160
|
+
- "5" # 16 - bus night regional, 17 - other, 18 - troleybus
|
|
2161
|
+
- "6"
|
|
2162
|
+
- "7"
|
|
2163
|
+
- "8"
|
|
2164
|
+
- "9"
|
|
2165
|
+
- "10"
|
|
2166
|
+
- "11"
|
|
2167
|
+
- "12"
|
|
2168
|
+
- "13"
|
|
2169
|
+
- "14"
|
|
2170
|
+
- "15"
|
|
2171
|
+
- "16"
|
|
2172
|
+
- "17"
|
|
2173
|
+
- "18"
|
|
2174
|
+
is_wheelchair_accessible:
|
|
2175
|
+
type: boolean
|
|
2176
|
+
nullable: true
|
|
2177
|
+
example: true
|
|
2178
|
+
is_air_conditioned:
|
|
2179
|
+
type: boolean
|
|
2180
|
+
nullable: true
|
|
2181
|
+
example: false
|
|
2182
|
+
has_usb_chargers:
|
|
2183
|
+
type: boolean
|
|
2184
|
+
nullable: true
|
|
2185
|
+
example: false
|
|
2186
|
+
vehicle_registration_number:
|
|
2187
|
+
type: string
|
|
2188
|
+
nullable: true
|
|
2189
|
+
example: "1001"
|
|
2190
|
+
|
|
2191
|
+
PublicTripShapeFeatureCollection:
|
|
2192
|
+
type: object
|
|
2193
|
+
properties:
|
|
2194
|
+
features:
|
|
2195
|
+
type: array
|
|
2196
|
+
items:
|
|
2197
|
+
type: object
|
|
2198
|
+
properties:
|
|
2199
|
+
geometry:
|
|
2200
|
+
$ref: "#/components/schemas/GeometryPoint"
|
|
2201
|
+
properties:
|
|
2202
|
+
type: object
|
|
2203
|
+
properties:
|
|
2204
|
+
shape_dist_traveled:
|
|
2205
|
+
type: number
|
|
2206
|
+
description: "Distance from the first stop of the trip."
|
|
2207
|
+
example: 0
|
|
2208
|
+
type:
|
|
2209
|
+
type: string
|
|
2210
|
+
example: Feature
|
|
2211
|
+
type:
|
|
2212
|
+
type: string
|
|
2213
|
+
example: FeatureCollection
|
|
2214
|
+
|
|
2215
|
+
PublicTripStopTimeFeatureCollection:
|
|
2216
|
+
type: object
|
|
2217
|
+
description: "List of stop and arrival, departure times for the trip."
|
|
2218
|
+
properties:
|
|
2219
|
+
features:
|
|
2220
|
+
type: array
|
|
2221
|
+
items:
|
|
2222
|
+
type: object
|
|
2223
|
+
properties:
|
|
2224
|
+
geometry:
|
|
2225
|
+
$ref: "#/components/schemas/GeometryPoint"
|
|
2226
|
+
properties:
|
|
2227
|
+
type: object
|
|
2228
|
+
properties:
|
|
2229
|
+
stop_name:
|
|
2230
|
+
type: string
|
|
2231
|
+
example: "Nádraží Veleslavín"
|
|
2232
|
+
zone_id:
|
|
2233
|
+
type: string
|
|
2234
|
+
example: "P"
|
|
2235
|
+
shape_dist_traveled:
|
|
2236
|
+
type: number
|
|
2237
|
+
example: 0
|
|
2238
|
+
arrival_time:
|
|
2239
|
+
type: string
|
|
2240
|
+
description: "Time for arrival to the stop according to trip schedule."
|
|
2241
|
+
example: "12:00:00"
|
|
2242
|
+
departure_time:
|
|
2243
|
+
type: string
|
|
2244
|
+
description: "Time for departure from the stop according to trip schedule."
|
|
2245
|
+
example: "12:00:00"
|
|
2246
|
+
realtime_arrival_time:
|
|
2247
|
+
type: string
|
|
2248
|
+
nullable: true
|
|
2249
|
+
description: "Time for arrival to the stop according to realtime data or prediction based on current delay."
|
|
2250
|
+
example: "12:00:00"
|
|
2251
|
+
realtime_departure_time:
|
|
2252
|
+
type: string
|
|
2253
|
+
nullable: true
|
|
2254
|
+
description: "Time for departure from the stop according to realtime data or prediction based on current delay."
|
|
2255
|
+
example: "12:00:00"
|
|
2256
|
+
type:
|
|
2257
|
+
type: string
|
|
2258
|
+
example: Feature
|
|
2259
|
+
|
|
2260
|
+
type:
|
|
2261
|
+
type: string
|
|
2262
|
+
example: FeatureCollection
|
|
2263
|
+
|
|
2264
|
+
GeometryPoint:
|
|
2265
|
+
type: object
|
|
2266
|
+
description: GeoJson point
|
|
2267
|
+
properties:
|
|
2268
|
+
coordinates:
|
|
2269
|
+
type: array
|
|
2270
|
+
items:
|
|
2271
|
+
type: number
|
|
2272
|
+
example: [14.441252, 50.109318]
|
|
2273
|
+
description: Point
|
|
2274
|
+
type:
|
|
2275
|
+
type: string
|
|
2276
|
+
enum:
|
|
2277
|
+
- Point
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshPublicCacheTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicCacheTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAA8E;AAC9E,2F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CAAC;aAC5E;QACL,CAAC;KAAA;IAEO,WAAW;QACf,OAAO,IAAI,uBAAK,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,EAAE,IAAI,CAAC,WAAW,EAAE;YACjE,oBAAoB,EAAE,CAAC;YACvB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE;gBAChB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,uBAAuB,CAAC,CAAC;YAC5E,CAAC;SACJ,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;iCA5EY,sBAAsB;IADlC,IAAA,qBAAU,GAAE;IAUJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,YAAY,CAAC,CAAA;IAC9B,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;IACxB,WAAA,IAAA,iBAAM,EAAC,oBAAc,CAAC,cAAc,CAAC,CAAA;IACrC,WAAA,IAAA,iBAAM,EAAC,mCAAgB,CAAC,wBAAwB,CAAC,CAAA;IAEjD,WAAA,IAAA,iBAAM,EAAC,mCAAgB,CAAC,2BAA2B,CAAC,CAAA;qDAHO,mCAAgB;QAE1C,mDAAwB;QAErB,yDAA2B;GAf3D,sBAAsB,CA4ElC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GTFSRouteTypeEnum } from "../../../../helpers/RouteTypeEnums";
|
|
2
|
-
import { IBoundingBox } from "../../domain/IBoudingBox";
|
|
3
|
-
export interface IParams {
|
|
4
|
-
boundingBox: IBoundingBox;
|
|
5
|
-
routeShortName: string | undefined;
|
|
6
|
-
type: GTFSRouteTypeEnum[] | undefined;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IParams.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/controllers/v1/IParams.ts"],"names":[],"mappings":""}
|