@golemio/pid 6.0.3-dev.2947011918 → 6.0.3-dev.2954837172
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/00_clear_test_data.sql +2 -6
- package/db/example/03_ropidgtfs_dump.sql +210 -0
- package/db/migrations/postgresql/20261012131524-add-gtfs-pathways-levels.js +16 -0
- package/db/migrations/postgresql/20261013120000-drop-ropidvymi-tables.js +16 -0
- package/db/migrations/postgresql/sqls/20261012131524-add-gtfs-pathways-levels-down.sql +100 -0
- package/db/migrations/postgresql/sqls/20261012131524-add-gtfs-pathways-levels-up.sql +180 -0
- package/db/migrations/postgresql/sqls/20261013120000-drop-ropidvymi-tables-down.sql +119 -0
- package/db/migrations/postgresql/sqls/20261013120000-drop-ropidvymi-tables-up.sql +7 -0
- package/dist/integration-engine/index.d.ts +0 -1
- package/dist/integration-engine/index.js +0 -5
- package/dist/integration-engine/index.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/transformations/RopidGTFSTransformation.d.ts +5 -0
- package/dist/integration-engine/ropid-gtfs/transformations/RopidGTFSTransformation.js +16 -1
- package/dist/integration-engine/ropid-gtfs/transformations/RopidGTFSTransformation.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js +2 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js.map +1 -1
- package/dist/integration-engine/shared/RopidMetadataModel.d.ts +1 -2
- package/dist/integration-engine/shared/RopidMetadataModel.js +0 -1
- package/dist/integration-engine/shared/RopidMetadataModel.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/AlertsGenerator.d.ts +1 -4
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/AlertsGenerator.js +3 -11
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/AlertsGenerator.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/tasks/GenerateFilesTask.js +1 -4
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/tasks/GenerateFilesTask.js.map +1 -1
- package/dist/output-gateway/pid/helpers/ParamValidatorManager.d.ts +3 -1
- package/dist/output-gateway/pid/helpers/ParamValidatorManager.js +10 -0
- package/dist/output-gateway/pid/helpers/ParamValidatorManager.js.map +1 -1
- package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js +1 -1
- package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js.map +1 -1
- package/dist/output-gateway/ropid-gtfs/data-access/AbstractGtfsCollectionRepository.d.ts +17 -0
- package/dist/output-gateway/ropid-gtfs/data-access/AbstractGtfsCollectionRepository.js +34 -0
- package/dist/output-gateway/ropid-gtfs/data-access/AbstractGtfsCollectionRepository.js.map +1 -0
- package/dist/output-gateway/ropid-gtfs/data-access/GtfsLevelRepository.d.ts +7 -0
- package/dist/output-gateway/ropid-gtfs/data-access/GtfsLevelRepository.js +30 -0
- package/dist/output-gateway/ropid-gtfs/data-access/GtfsLevelRepository.js.map +1 -0
- package/dist/output-gateway/ropid-gtfs/data-access/GtfsPathwayRepository.d.ts +7 -0
- package/dist/output-gateway/ropid-gtfs/data-access/GtfsPathwayRepository.js +30 -0
- package/dist/output-gateway/ropid-gtfs/data-access/GtfsPathwayRepository.js.map +1 -0
- package/dist/output-gateway/ropid-gtfs/data-access/GtfsTransferRepository.d.ts +7 -0
- package/dist/output-gateway/ropid-gtfs/data-access/GtfsTransferRepository.js +39 -0
- package/dist/output-gateway/ropid-gtfs/data-access/GtfsTransferRepository.js.map +1 -0
- package/dist/output-gateway/ropid-gtfs/domain/IGtfsTransferOutputDto.d.ts +7 -0
- package/dist/output-gateway/ropid-gtfs/domain/IGtfsTransferOutputDto.js +2 -0
- package/dist/output-gateway/ropid-gtfs/domain/IGtfsTransferOutputDto.js.map +1 -0
- package/dist/output-gateway/ropid-gtfs/domain/repository/IGtfsCollectionRepository.d.ts +10 -0
- package/dist/output-gateway/ropid-gtfs/domain/repository/IGtfsCollectionRepository.js +2 -0
- package/dist/output-gateway/ropid-gtfs/domain/repository/IGtfsCollectionRepository.js.map +1 -0
- package/dist/output-gateway/ropid-gtfs/ioc/Di.d.ts +3 -0
- package/dist/output-gateway/ropid-gtfs/ioc/Di.js +13 -0
- package/dist/output-gateway/ropid-gtfs/ioc/Di.js.map +1 -0
- package/dist/output-gateway/ropid-gtfs/ioc/OgGtfsToken.d.ts +5 -0
- package/dist/output-gateway/ropid-gtfs/ioc/OgGtfsToken.js +8 -0
- package/dist/output-gateway/ropid-gtfs/ioc/OgGtfsToken.js.map +1 -0
- package/dist/output-gateway/ropid-gtfs/models/GTFSStopModel.js +2 -2
- package/dist/output-gateway/ropid-gtfs/models/GTFSStopModel.js.map +1 -1
- package/dist/output-gateway/ropid-gtfs/models/GTFSStopModelInterfaces.d.ts +2 -1
- package/dist/output-gateway/ropid-gtfs/routers/v2/V2GTFSRouter.d.ts +9 -0
- package/dist/output-gateway/ropid-gtfs/routers/v2/V2GTFSRouter.js +27 -0
- package/dist/output-gateway/ropid-gtfs/routers/v2/V2GTFSRouter.js.map +1 -1
- package/dist/schema-definitions/index.d.ts +0 -1
- package/dist/schema-definitions/index.js +0 -1
- package/dist/schema-definitions/index.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/RopidGtfsSchedule.d.ts +18 -0
- package/dist/schema-definitions/ropid-gtfs/RopidGtfsSchedule.js +18 -0
- package/dist/schema-definitions/ropid-gtfs/RopidGtfsSchedule.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/interfaces/ILevelDto.d.ts +5 -0
- package/dist/schema-definitions/ropid-gtfs/interfaces/ILevelDto.js +2 -0
- package/dist/schema-definitions/ropid-gtfs/interfaces/ILevelDto.js.map +1 -0
- package/dist/schema-definitions/ropid-gtfs/interfaces/IPathwayDto.d.ts +15 -0
- package/dist/schema-definitions/ropid-gtfs/interfaces/IPathwayDto.js +2 -0
- package/dist/schema-definitions/ropid-gtfs/interfaces/IPathwayDto.js.map +1 -0
- package/dist/schema-definitions/ropid-gtfs/models/LevelDto.d.ts +16 -0
- package/dist/schema-definitions/ropid-gtfs/models/LevelDto.js +25 -0
- package/dist/schema-definitions/ropid-gtfs/models/LevelDto.js.map +1 -0
- package/dist/schema-definitions/ropid-gtfs/models/PathwayDto.d.ts +26 -0
- package/dist/schema-definitions/ropid-gtfs/models/PathwayDto.js +65 -0
- package/dist/schema-definitions/ropid-gtfs/models/PathwayDto.js.map +1 -0
- package/docs/assets/pid_scheduled_erd.png +0 -0
- package/docs/cache/types/redis.md +1 -1
- package/docs/implementation_documentation.md +29 -62
- package/docs/openapi-output.yaml +292 -0
- package/package.json +1 -1
- package/db/example/04_ropidvymi_example.sql +0 -40
- package/db/example/07_tmp_example.sql +0 -4
- package/dist/integration-engine/ropid-vymi/RopidVYMIEventsTransformation.d.ts +0 -21
- package/dist/integration-engine/ropid-vymi/RopidVYMIEventsTransformation.js +0 -81
- package/dist/integration-engine/ropid-vymi/RopidVYMIEventsTransformation.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/index.d.ts +0 -2
- package/dist/integration-engine/ropid-vymi/index.js +0 -3
- package/dist/integration-engine/ropid-vymi/index.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsModel.d.ts +0 -9
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsModel.js +0 -37
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsModel.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsRoutesModel.d.ts +0 -9
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsRoutesModel.js +0 -29
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsRoutesModel.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsStopsModel.d.ts +0 -7
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsStopsModel.js +0 -21
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsStopsModel.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIMetadataModel.d.ts +0 -8
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIMetadataModel.js +0 -30
- package/dist/integration-engine/ropid-vymi/models/RopidVYMIMetadataModel.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/models/index.d.ts +0 -4
- package/dist/integration-engine/ropid-vymi/models/index.js +0 -5
- package/dist/integration-engine/ropid-vymi/models/index.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/workers/RopidVYMIWorker.d.ts +0 -5
- package/dist/integration-engine/ropid-vymi/workers/RopidVYMIWorker.js +0 -14
- package/dist/integration-engine/ropid-vymi/workers/RopidVYMIWorker.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/workers/tasks/CheckForNewEventsTask.d.ts +0 -8
- package/dist/integration-engine/ropid-vymi/workers/tasks/CheckForNewEventsTask.js +0 -19
- package/dist/integration-engine/ropid-vymi/workers/tasks/CheckForNewEventsTask.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/workers/tasks/FetchAndProcessEventsTask.d.ts +0 -17
- package/dist/integration-engine/ropid-vymi/workers/tasks/FetchAndProcessEventsTask.js +0 -94
- package/dist/integration-engine/ropid-vymi/workers/tasks/FetchAndProcessEventsTask.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/workers/tasks/helpers/RopidVYMIApiHelper.d.ts +0 -11
- package/dist/integration-engine/ropid-vymi/workers/tasks/helpers/RopidVYMIApiHelper.js +0 -72
- package/dist/integration-engine/ropid-vymi/workers/tasks/helpers/RopidVYMIApiHelper.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/workers/tasks/helpers/RopidVYMIApiOutputLevel.d.ts +0 -5
- package/dist/integration-engine/ropid-vymi/workers/tasks/helpers/RopidVYMIApiOutputLevel.js +0 -7
- package/dist/integration-engine/ropid-vymi/workers/tasks/helpers/RopidVYMIApiOutputLevel.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/workers/tasks/interfaces/IEventFetchOutput.d.ts +0 -5
- package/dist/integration-engine/ropid-vymi/workers/tasks/interfaces/IEventFetchOutput.js +0 -2
- package/dist/integration-engine/ropid-vymi/workers/tasks/interfaces/IEventFetchOutput.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/workers/tasks/schema/EventFetchOutputValidationSchema.d.ts +0 -6
- package/dist/integration-engine/ropid-vymi/workers/tasks/schema/EventFetchOutputValidationSchema.js +0 -27
- package/dist/integration-engine/ropid-vymi/workers/tasks/schema/EventFetchOutputValidationSchema.js.map +0 -1
- package/dist/integration-engine/ropid-vymi/workers/tasks/schema/RopidVYMIEventValidationSchema.d.ts +0 -47
- package/dist/integration-engine/ropid-vymi/workers/tasks/schema/RopidVYMIEventValidationSchema.js +0 -200
- package/dist/integration-engine/ropid-vymi/workers/tasks/schema/RopidVYMIEventValidationSchema.js.map +0 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/AlertCauseMapper.d.ts +0 -2
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/AlertCauseMapper.js +0 -51
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/AlertCauseMapper.js.map +0 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/AlertEffectMapper.d.ts +0 -6
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/AlertEffectMapper.js +0 -93
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/AlertEffectMapper.js.map +0 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/transformations/AlertsTransformation.d.ts +0 -14
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/transformations/AlertsTransformation.js +0 -82
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/transformations/AlertsTransformation.js.map +0 -1
- package/dist/schema-definitions/ropid-vymi/RopidVYMIOutputSchemas.d.ts +0 -151
- package/dist/schema-definitions/ropid-vymi/RopidVYMIOutputSchemas.js +0 -152
- package/dist/schema-definitions/ropid-vymi/RopidVYMIOutputSchemas.js.map +0 -1
- package/dist/schema-definitions/ropid-vymi/RopidVYMISDMA.d.ts +0 -58
- package/dist/schema-definitions/ropid-vymi/RopidVYMISDMA.js +0 -74
- package/dist/schema-definitions/ropid-vymi/RopidVYMISDMA.js.map +0 -1
- package/dist/schema-definitions/ropid-vymi/index.d.ts +0 -52
- package/dist/schema-definitions/ropid-vymi/index.js +0 -171
- package/dist/schema-definitions/ropid-vymi/index.js.map +0 -1
- package/docs/assets/pid_vymi_erd.png +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ILevelDto.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/interfaces/ILevelDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IPathwayDto {
|
|
2
|
+
pathway_id: string;
|
|
3
|
+
from_stop_id: string;
|
|
4
|
+
to_stop_id: string;
|
|
5
|
+
pathway_mode: number;
|
|
6
|
+
is_bidirectional: number;
|
|
7
|
+
length: number | null;
|
|
8
|
+
traversal_time: number | null;
|
|
9
|
+
stair_count: number | null;
|
|
10
|
+
max_slope: number | null;
|
|
11
|
+
min_width: number | null;
|
|
12
|
+
signposted_as: string | null;
|
|
13
|
+
reversed_signposted_as: string | null;
|
|
14
|
+
bikes_prohibited: number | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPathwayDto.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/interfaces/IPathwayDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ModelAttributes } from "@golemio/core/dist/shared/sequelize.js";
|
|
2
|
+
import SequelizeCore from "@golemio/core/dist/shared/sequelize.js";
|
|
3
|
+
declare const Model: typeof SequelizeCore.Model;
|
|
4
|
+
import { type ILevelDto } from "../interfaces/ILevelDto.js";
|
|
5
|
+
/**
|
|
6
|
+
* Sequelize model of GTFS levels (`levels.txt`), not a DTO.
|
|
7
|
+
* The `Dto` suffix only keeps consistency with the other GTFS models, new models should not be named this way.
|
|
8
|
+
*/
|
|
9
|
+
export declare class LevelDto extends Model<ILevelDto> implements ILevelDto {
|
|
10
|
+
level_id: string;
|
|
11
|
+
level_index: number;
|
|
12
|
+
level_name: string | null;
|
|
13
|
+
/** Attribute order must match the table column order, data are saved by COPY without a column list */
|
|
14
|
+
static attributeModel: ModelAttributes<LevelDto>;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import SequelizeCore from "@golemio/core/dist/shared/sequelize.js";
|
|
2
|
+
const { DataTypes, Model } = SequelizeCore;
|
|
3
|
+
/**
|
|
4
|
+
* Sequelize model of GTFS levels (`levels.txt`), not a DTO.
|
|
5
|
+
* The `Dto` suffix only keeps consistency with the other GTFS models, new models should not be named this way.
|
|
6
|
+
*/
|
|
7
|
+
export class LevelDto extends Model {
|
|
8
|
+
}
|
|
9
|
+
/** Attribute order must match the table column order, data are saved by COPY without a column list */
|
|
10
|
+
LevelDto.attributeModel = {
|
|
11
|
+
level_id: {
|
|
12
|
+
type: DataTypes.TEXT,
|
|
13
|
+
allowNull: false,
|
|
14
|
+
primaryKey: true,
|
|
15
|
+
},
|
|
16
|
+
level_index: {
|
|
17
|
+
type: DataTypes.DOUBLE,
|
|
18
|
+
allowNull: false,
|
|
19
|
+
},
|
|
20
|
+
level_name: {
|
|
21
|
+
type: DataTypes.TEXT,
|
|
22
|
+
allowNull: true,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=LevelDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LevelDto.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/models/LevelDto.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wCAAwC,CAAC;AACnE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,aAAa,CAAC;AAG3C;;;GAGG;AACH,MAAM,OAAO,QAAS,SAAQ,KAAgB;;AAK1C,sGAAsG;AACxF,uBAAc,GAA8B;IACtD,QAAQ,EAAE;QACN,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,IAAI;KACnB;IACD,WAAW,EAAE;QACT,IAAI,EAAE,SAAS,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,SAAS,EAAE,IAAI;KAClB;CACJ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ModelAttributes } from "@golemio/core/dist/shared/sequelize.js";
|
|
2
|
+
import SequelizeCore from "@golemio/core/dist/shared/sequelize.js";
|
|
3
|
+
declare const Model: typeof SequelizeCore.Model;
|
|
4
|
+
import { type IPathwayDto } from "../interfaces/IPathwayDto.js";
|
|
5
|
+
/**
|
|
6
|
+
* Sequelize model of GTFS pathways (`pathways.txt`), not a DTO.
|
|
7
|
+
* The `Dto` suffix only keeps consistency with the other GTFS models, new models should not be named this way.
|
|
8
|
+
*/
|
|
9
|
+
export declare class PathwayDto extends Model<IPathwayDto> implements IPathwayDto {
|
|
10
|
+
pathway_id: string;
|
|
11
|
+
from_stop_id: string;
|
|
12
|
+
to_stop_id: string;
|
|
13
|
+
pathway_mode: number;
|
|
14
|
+
is_bidirectional: number;
|
|
15
|
+
length: number | null;
|
|
16
|
+
traversal_time: number | null;
|
|
17
|
+
stair_count: number | null;
|
|
18
|
+
max_slope: number | null;
|
|
19
|
+
min_width: number | null;
|
|
20
|
+
signposted_as: string | null;
|
|
21
|
+
reversed_signposted_as: string | null;
|
|
22
|
+
bikes_prohibited: number | null;
|
|
23
|
+
/** Attribute order must match the table column order, data are saved by COPY without a column list */
|
|
24
|
+
static attributeModel: ModelAttributes<PathwayDto>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import SequelizeCore from "@golemio/core/dist/shared/sequelize.js";
|
|
2
|
+
const { DataTypes, Model } = SequelizeCore;
|
|
3
|
+
/**
|
|
4
|
+
* Sequelize model of GTFS pathways (`pathways.txt`), not a DTO.
|
|
5
|
+
* The `Dto` suffix only keeps consistency with the other GTFS models, new models should not be named this way.
|
|
6
|
+
*/
|
|
7
|
+
export class PathwayDto extends Model {
|
|
8
|
+
}
|
|
9
|
+
/** Attribute order must match the table column order, data are saved by COPY without a column list */
|
|
10
|
+
PathwayDto.attributeModel = {
|
|
11
|
+
pathway_id: {
|
|
12
|
+
type: DataTypes.TEXT,
|
|
13
|
+
allowNull: false,
|
|
14
|
+
primaryKey: true,
|
|
15
|
+
},
|
|
16
|
+
from_stop_id: {
|
|
17
|
+
type: DataTypes.TEXT,
|
|
18
|
+
allowNull: false,
|
|
19
|
+
},
|
|
20
|
+
to_stop_id: {
|
|
21
|
+
type: DataTypes.TEXT,
|
|
22
|
+
allowNull: false,
|
|
23
|
+
},
|
|
24
|
+
pathway_mode: {
|
|
25
|
+
type: DataTypes.SMALLINT,
|
|
26
|
+
allowNull: false,
|
|
27
|
+
},
|
|
28
|
+
is_bidirectional: {
|
|
29
|
+
type: DataTypes.SMALLINT,
|
|
30
|
+
allowNull: false,
|
|
31
|
+
},
|
|
32
|
+
length: {
|
|
33
|
+
type: DataTypes.DOUBLE,
|
|
34
|
+
allowNull: true,
|
|
35
|
+
},
|
|
36
|
+
traversal_time: {
|
|
37
|
+
type: DataTypes.INTEGER,
|
|
38
|
+
allowNull: true,
|
|
39
|
+
},
|
|
40
|
+
stair_count: {
|
|
41
|
+
type: DataTypes.INTEGER,
|
|
42
|
+
allowNull: true,
|
|
43
|
+
},
|
|
44
|
+
max_slope: {
|
|
45
|
+
type: DataTypes.DOUBLE,
|
|
46
|
+
allowNull: true,
|
|
47
|
+
},
|
|
48
|
+
min_width: {
|
|
49
|
+
type: DataTypes.DOUBLE,
|
|
50
|
+
allowNull: true,
|
|
51
|
+
},
|
|
52
|
+
signposted_as: {
|
|
53
|
+
type: DataTypes.TEXT,
|
|
54
|
+
allowNull: true,
|
|
55
|
+
},
|
|
56
|
+
reversed_signposted_as: {
|
|
57
|
+
type: DataTypes.TEXT,
|
|
58
|
+
allowNull: true,
|
|
59
|
+
},
|
|
60
|
+
bikes_prohibited: {
|
|
61
|
+
type: DataTypes.SMALLINT,
|
|
62
|
+
allowNull: true,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=PathwayDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PathwayDto.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/models/PathwayDto.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wCAAwC,CAAC;AACnE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,aAAa,CAAC;AAG3C;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAkB;;AAe9C,sGAAsG;AACxF,yBAAc,GAAgC;IACxD,UAAU,EAAE;QACR,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,IAAI;KACnB;IACD,YAAY,EAAE;QACV,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;IACD,YAAY,EAAE;QACV,IAAI,EAAE,SAAS,CAAC,QAAQ;QACxB,SAAS,EAAE,KAAK;KACnB;IACD,gBAAgB,EAAE;QACd,IAAI,EAAE,SAAS,CAAC,QAAQ;QACxB,SAAS,EAAE,KAAK;KACnB;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,SAAS,CAAC,MAAM;QACtB,SAAS,EAAE,IAAI;KAClB;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI;KAClB;IACD,WAAW,EAAE;QACT,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI;KAClB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,SAAS,CAAC,MAAM;QACtB,SAAS,EAAE,IAAI;KAClB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,SAAS,CAAC,MAAM;QACtB,SAAS,EAAE,IAAI;KAClB;IACD,aAAa,EAAE;QACX,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,SAAS,EAAE,IAAI;KAClB;IACD,sBAAsB,EAAE;QACpB,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,SAAS,EAAE,IAAI;KAClB;IACD,gBAAgB,EAAE;QACd,IAAI,EAAE,SAAS,CAAC,QAAQ;QACxB,SAAS,EAAE,IAAI;KAClB;CACJ,CAAC"}
|
|
Binary file
|
|
@@ -70,7 +70,7 @@ flowchart TD;
|
|
|
70
70
|
flowchart TD;
|
|
71
71
|
redis_f_1[("Redis files:gtfsRt")];
|
|
72
72
|
redis_t_1[("Redis files:gtfsRt_*_timestamp")];
|
|
73
|
-
psql[("PSQL vehiclepositions_*,
|
|
73
|
+
psql[("PSQL vehiclepositions_*, jis_*")];
|
|
74
74
|
|
|
75
75
|
connector[("OG Redis connector")];
|
|
76
76
|
repository["IE GtfsRtRedisRepository"];
|
|
@@ -16,7 +16,6 @@ Modul slouží k ukládání a poskytování informací o jízdních řádech a
|
|
|
16
16
|
- OIS (Odbavovací a informační systém) mapovací číselník pro tramvaje
|
|
17
17
|
- Oběhy vozidel
|
|
18
18
|
- Presets (definice pro zkracovač URL)
|
|
19
|
-
- ROPID VYMI (Výluky a mimořádnosti)
|
|
20
19
|
- Seznam Autobusu API (informace o vozidlech, např. dostupnost klimatizace nebo USB zásuvek)
|
|
21
20
|
- Statická data
|
|
22
21
|
- Ukazatelé směru jízdy
|
|
@@ -39,7 +38,7 @@ Modul slouží k ukládání a poskytování informací o jízdních řádech a
|
|
|
39
38
|
- zdroj dat
|
|
40
39
|
- cesta: /GTFS (config.datasources.RopidGTFSPath)
|
|
41
40
|
- soubory:
|
|
42
|
-
- PID_GTFS.zip (config.datasources.RopidGTFSFilename) -> agency.txt, calendar.txt, calendar_dates.txt, shapes.txt, stop_times.txt, stops.txt, routes.txt, route_sub_agencies.txt, transfers.txt, trips.txt
|
|
41
|
+
- PID_GTFS.zip (config.datasources.RopidGTFSFilename) -> agency.txt, calendar.txt, calendar_dates.txt, levels.txt, pathways.txt, shapes.txt, stop_times.txt, stops.txt, routes.txt, route_sub_agencies.txt, transfers.txt, trips.txt
|
|
43
42
|
- formát dat
|
|
44
43
|
- protokol: ftp
|
|
45
44
|
- datový typ: csv
|
|
@@ -148,24 +147,6 @@ _:warning: Původním záměrem bylo využití OIS číselníku během zpracová
|
|
|
148
147
|
- vehicle-positions.ropidpresets.checkForNewDeparturesPresets
|
|
149
148
|
- vehicle-positions.ropidpresets.downloadDeparturesPresets
|
|
150
149
|
|
|
151
|
-
#### _VYMI výluky a mimořádnosti_
|
|
152
|
-
|
|
153
|
-
- zdroj dat
|
|
154
|
-
- url: https://vymipid.ropid.cz/ws/list_publ (config.datasources.RopidVYMIApiUrl)
|
|
155
|
-
- parametry dotazu: config.datasources.RopidVYMIApiHeaders
|
|
156
|
-
- formát dat
|
|
157
|
-
- protokol: http
|
|
158
|
-
- datový typ: json
|
|
159
|
-
- validační schéma: [datasourceJsonSchema](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/blob/development/src/schema-definitions/ropid-vymi/index.ts#L62)
|
|
160
|
-
- příklad vstupnich dat: [ropidvymi-datasource.json](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/blob/development/test/integration-engine/ropid-vymi/data/ropidvymi-datasource.json)
|
|
161
|
-
- frekvence stahování
|
|
162
|
-
- cron definice:
|
|
163
|
-
- cron.vehicle-positions.ropidvymi.checkForNewEvents
|
|
164
|
-
- rabin `*/30 * * * * *`
|
|
165
|
-
- prod `*/30 * * * * *`
|
|
166
|
-
- názvy rabbitmq front
|
|
167
|
-
- vehicle-positions.ropidvymi.checkForNewEvents
|
|
168
|
-
|
|
169
150
|
#### _Seznam Autobusu API_
|
|
170
151
|
|
|
171
152
|
- zdroj dat
|
|
@@ -520,6 +501,9 @@ Všechny tabulky se nachází ve schématu `pid`
|
|
|
520
501
|
- rozšířené sloupce GTFS souborů (nestandardní rozšíření ROPID)
|
|
521
502
|
- `trips.txt` – sloupec `headsign_icons`: řetězec dvouznakových kódů ikon (např. `"MbSb"`), uložen do `ropidgtfs_trips.headsign_icons`
|
|
522
503
|
- `stop_times.txt` – sloupec `headsign_icons`: přepis na úrovni zastávky, uložen do `ropidgtfs_stop_times.headsign_icons`; má přednost před hodnotou z `trips.txt` pokud je zároveň vyplněn `stop_headsign`
|
|
504
|
+
- `pathways.txt` – sloupec `bikes_prohibited`: zákaz přepravy jízdních kol na propojení uvnitř stanice, např. chodba, schodiště, eskalátor nebo výtah (`0` povoleno, `1` zakázáno), uložen do `ropidgtfs_pathways.bikes_prohibited`
|
|
505
|
+
- `transfers.txt` – sloupec `max_waiting_time`: maximální doba v sekundách, po kterou navazující spoj čeká na zajištěný přestup (prázdná hodnota = čeká neomezeně nebo dobu nelze určit), uložen do `ropidgtfs_transfers.max_waiting_time`
|
|
506
|
+
- `levels.txt` začíná znakem BOM, transformace ho odstraňuje ze vstupního proudu před parsováním CSV
|
|
523
507
|
- data modely
|
|
524
508
|
- RopidGTFSMetadataModel `ropidgtfs_metadata`
|
|
525
509
|
- RopidGTFSAgencyModel `ropidgtfs_agency`
|
|
@@ -530,6 +514,9 @@ Všechny tabulky se nachází ve schématu `pid`
|
|
|
530
514
|
- RopidGTFSShapesModel `ropidgtfs_shapes`
|
|
531
515
|
- RopidGTFSStopTimesModel `ropidgtfs_stop_times`
|
|
532
516
|
- RopidGTFSStopsModel `ropidgtfs_stops`
|
|
517
|
+
- LevelDto `ropidgtfs_levels`
|
|
518
|
+
- PathwayDto `ropidgtfs_pathways`
|
|
519
|
+
- TransferDto `ropidgtfs_transfers`
|
|
533
520
|
- RopidGTFSTripsModel `ropidgtfs_trips`
|
|
534
521
|
- RopidGTFSCisStopsModel `ropidgtfs_cis_stops`
|
|
535
522
|
- RopidGTFSCisStopGroupsModel `ropidgtfs_cis_stop_groups`
|
|
@@ -564,6 +551,9 @@ Všechny tabulky se nachází ve schématu `pid`
|
|
|
564
551
|
- RopidGTFSShapesModel `ropidgtfs_shapes`
|
|
565
552
|
- RopidGTFSStopTimesModel `ropidgtfs_stop_times`
|
|
566
553
|
- RopidGTFSStopsModel `ropidgtfs_stops`
|
|
554
|
+
- LevelDto `ropidgtfs_levels`
|
|
555
|
+
- PathwayDto `ropidgtfs_pathways`
|
|
556
|
+
- TransferDto `ropidgtfs_transfers`
|
|
567
557
|
- RopidGTFSTripsModel `ropidgtfs_trips`
|
|
568
558
|
- RopidGTFSCisStopsModel `ropidgtfs_cis_stops`
|
|
569
559
|
- RopidGTFSCisStopGroupsModel `ropidgtfs_cis_stop_groups`
|
|
@@ -769,44 +759,6 @@ Task slouží jako ruční spouštěč obnovení všech cache. Nespouští se au
|
|
|
769
759
|
- RopidGTFSMetadataModel `ropidgtfs_metadata`,
|
|
770
760
|
- RopidDeparturesPresetsModel `ropid_departures_presets`
|
|
771
761
|
|
|
772
|
-
### _RopidVYMIWorker_
|
|
773
|
-
|
|
774
|
-
Worker má na starost přípravu podkladových dat pro infotexty pro odjezdové tabule a GTFS real-time alerty
|
|
775
|
-
|
|
776
|
-
#### _task: CheckForNewEventsTask_
|
|
777
|
-
|
|
778
|
-
- vstupní rabbitmq fronta
|
|
779
|
-
- název: vehicle-positions.ropidvymi.checkForNewEvents
|
|
780
|
-
- TTL: 1 minuta
|
|
781
|
-
- parametry: žádné
|
|
782
|
-
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
783
|
-
- název: vehicle-positions.ropidvymi.fetchAndProcessEvents
|
|
784
|
-
- datové zdroje
|
|
785
|
-
- ROPID VYMI
|
|
786
|
-
- transformace
|
|
787
|
-
- žádné
|
|
788
|
-
- data modely
|
|
789
|
-
- RopidVYMIMetadataModel `ropidvymi_metadata`
|
|
790
|
-
|
|
791
|
-
#### _task: FetchAndProcessEventsTask_
|
|
792
|
-
|
|
793
|
-
- vstupní rabbitmq fronta
|
|
794
|
-
- název: vehicle-positions.ropidvymi.fetchAndProcessEvents
|
|
795
|
-
- TTL: 1 minuta
|
|
796
|
-
- parametry: `{ digest, data }`
|
|
797
|
-
- validační schéma: [EventFetchOutputValidationSchema](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/blob/development/src/integration-engine/ropid-vymi/workers/tasks/schema/EventFetchOutputValidationSchema.ts)
|
|
798
|
-
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
799
|
-
- žádné
|
|
800
|
-
- datové zdroje
|
|
801
|
-
- ROPID VYMI
|
|
802
|
-
- transformace
|
|
803
|
-
- [RopidVYMIEventsTransformation](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/blob/development/src/integration-engine/ropid-vymi/RopidVYMIEventsTransformation.ts)
|
|
804
|
-
- data modely
|
|
805
|
-
- RopidVYMIMetadataModel `ropidvymi_metadata`
|
|
806
|
-
- RopidVYMIEventsModel `ropidvymi_events`
|
|
807
|
-
- RopidVYMIEventsRoutesModel `ropidvymi_events_routes`
|
|
808
|
-
- RopidVYMIEventsStopsModel `ropidvymi_events_stops`
|
|
809
|
-
|
|
810
762
|
### _VPWorker_
|
|
811
763
|
|
|
812
764
|
Worker má na starost zpracování a transformaci polohových dat, výpočet zpoždění a přípravu GTFS real-time výstupních dat
|
|
@@ -1126,12 +1078,12 @@ Worker má na starost generování souborů s realtime daty pro `gtfsrt` endpoin
|
|
|
1126
1078
|
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
1127
1079
|
- žádné
|
|
1128
1080
|
- datové zdroje
|
|
1129
|
-
- MPVNET, DPP TCP, DPP metro (UDP → TCP přes MPVnet proxy CHAPS), TELMAX TCP (v produkci vypnuto), ROPID FTPS,
|
|
1081
|
+
- MPVNET, DPP TCP, DPP metro (UDP → TCP přes MPVnet proxy CHAPS), TELMAX TCP (v produkci vypnuto), ROPID FTPS, VYMI (JIS)
|
|
1130
1082
|
- transformace
|
|
1131
1083
|
- žádné
|
|
1132
1084
|
- data modely
|
|
1133
1085
|
- RopidGTFSStopTimesModel `ropidgtfs_stop_times`
|
|
1134
|
-
-
|
|
1086
|
+
- JISEventsModel `jis_events`
|
|
1135
1087
|
- VPTripsModel `vehiclepositions_trips`
|
|
1136
1088
|
- VPPositionsModel `vehiclepositions_positions`
|
|
1137
1089
|
|
|
@@ -1373,8 +1325,6 @@ Worker má na starost stahování VYMI (JIS) událostí a infotextů, jejich tra
|
|
|
1373
1325
|

|
|
1374
1326
|
- Preset logy a statické tabulky<br/>
|
|
1375
1327
|

|
|
1376
|
-
- VYMI<br/>
|
|
1377
|
-

|
|
1378
1328
|
- Polohy vozů (tabulky) <br/>
|
|
1379
1329
|

|
|
1380
1330
|
- Polohy vozů (views) <br/>
|
|
@@ -1468,6 +1418,7 @@ Worker má na starost stahování VYMI (JIS) událostí a infotextů, jejich tra
|
|
|
1468
1418
|
- zdrojové tabulky
|
|
1469
1419
|
- `ropidgtfs_stops`, `ropidgtfs_cis_stops`
|
|
1470
1420
|
- dodatečná transformace: Feature collection
|
|
1421
|
+
- filtr `locationTypes[]` podle GTFS `location_type` (např. `2` = vstupy/výstupy stanic)
|
|
1471
1422
|
|
|
1472
1423
|
#### _/v2/gtfs/stops/{id}_
|
|
1473
1424
|
|
|
@@ -1480,6 +1431,22 @@ Worker má na starost stahování VYMI (JIS) událostí a infotextů, jejich tra
|
|
|
1480
1431
|
- zdrojové tabulky
|
|
1481
1432
|
- `ropidgtfs_stop_times`, `ropidgtfs_stops`, `ropidgtfs_calendar`, `ropidgtfs_trips`
|
|
1482
1433
|
|
|
1434
|
+
#### _/v2/gtfs/levels_
|
|
1435
|
+
|
|
1436
|
+
- zdrojové tabulky
|
|
1437
|
+
- `ropidgtfs_levels`
|
|
1438
|
+
|
|
1439
|
+
#### _/v2/gtfs/pathways_
|
|
1440
|
+
|
|
1441
|
+
- zdrojové tabulky
|
|
1442
|
+
- `ropidgtfs_pathways`
|
|
1443
|
+
|
|
1444
|
+
#### _/v2/gtfs/transfers_
|
|
1445
|
+
|
|
1446
|
+
- zdrojové tabulky
|
|
1447
|
+
- `ropidgtfs_transfers`
|
|
1448
|
+
- dodatečná transformace: `transfer_type` vrácen jako číslo
|
|
1449
|
+
|
|
1483
1450
|
### Vehicle Positions v2
|
|
1484
1451
|
|
|
1485
1452
|
#### _/v2/vehiclepositions_
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -400,6 +400,21 @@ paths:
|
|
|
400
400
|
schema:
|
|
401
401
|
type: string
|
|
402
402
|
example: "U476Z103P"
|
|
403
|
+
- name: locationTypes
|
|
404
|
+
in: query
|
|
405
|
+
description: >-
|
|
406
|
+
Get stops by GTFS `location_type` (0 = stop/platform, 1 = station, 2 = entrance/exit, 3 = generic node,
|
|
407
|
+
4 = boarding area). Preferably use with square brackets `locationTypes[]=1&locationTypes[]=2`
|
|
408
|
+
(though repeating the parameter without brackets is also accepted).
|
|
409
|
+
required: false
|
|
410
|
+
style: form
|
|
411
|
+
explode: true
|
|
412
|
+
schema:
|
|
413
|
+
type: array
|
|
414
|
+
items:
|
|
415
|
+
type: integer
|
|
416
|
+
enum: [0, 1, 2, 3, 4]
|
|
417
|
+
example: [0]
|
|
403
418
|
- name: aswIds
|
|
404
419
|
in: query
|
|
405
420
|
description: Get stops by ASW, use `_` instead of `/` or encode the slash sign with `%2F`. Use with square brackets `aswId[]`.
|
|
@@ -576,6 +591,129 @@ paths:
|
|
|
576
591
|
"404":
|
|
577
592
|
description: Not found
|
|
578
593
|
|
|
594
|
+
/v2/gtfs/levels:
|
|
595
|
+
get:
|
|
596
|
+
summary: GET All GTFS Levels
|
|
597
|
+
description: Levels within stations from GTFS `levels.txt`, ordered by `level_id` ascending.
|
|
598
|
+
tags:
|
|
599
|
+
- 🧾 GTFS Static (v2)
|
|
600
|
+
parameters:
|
|
601
|
+
- name: limit
|
|
602
|
+
in: query
|
|
603
|
+
description: Limits number of retrieved items. The maximum is 10000 (default value).
|
|
604
|
+
required: false
|
|
605
|
+
schema:
|
|
606
|
+
type: number
|
|
607
|
+
format: int64
|
|
608
|
+
example: 10
|
|
609
|
+
- name: offset
|
|
610
|
+
in: query
|
|
611
|
+
description: Number of the first items that are skipped.
|
|
612
|
+
required: false
|
|
613
|
+
schema:
|
|
614
|
+
type: number
|
|
615
|
+
format: int64
|
|
616
|
+
example: 0
|
|
617
|
+
responses:
|
|
618
|
+
"200":
|
|
619
|
+
description: successful operation
|
|
620
|
+
headers:
|
|
621
|
+
Cache-Control:
|
|
622
|
+
description: Cache control directive for caching proxies
|
|
623
|
+
schema:
|
|
624
|
+
type: string
|
|
625
|
+
example: public, s-maxage=14400, stale-while-revalidate=60
|
|
626
|
+
content:
|
|
627
|
+
application/json:
|
|
628
|
+
schema:
|
|
629
|
+
type: array
|
|
630
|
+
items:
|
|
631
|
+
$ref: "#/components/schemas/GTFSLevel"
|
|
632
|
+
"401":
|
|
633
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
634
|
+
|
|
635
|
+
/v2/gtfs/pathways:
|
|
636
|
+
get:
|
|
637
|
+
summary: GET All GTFS Pathways
|
|
638
|
+
description: Pathways linking locations within stations from GTFS `pathways.txt`, ordered by `pathway_id` ascending.
|
|
639
|
+
tags:
|
|
640
|
+
- 🧾 GTFS Static (v2)
|
|
641
|
+
parameters:
|
|
642
|
+
- name: limit
|
|
643
|
+
in: query
|
|
644
|
+
description: Limits number of retrieved items. The maximum is 10000 (default value).
|
|
645
|
+
required: false
|
|
646
|
+
schema:
|
|
647
|
+
type: number
|
|
648
|
+
format: int64
|
|
649
|
+
example: 10
|
|
650
|
+
- name: offset
|
|
651
|
+
in: query
|
|
652
|
+
description: Number of the first items that are skipped.
|
|
653
|
+
required: false
|
|
654
|
+
schema:
|
|
655
|
+
type: number
|
|
656
|
+
format: int64
|
|
657
|
+
example: 0
|
|
658
|
+
responses:
|
|
659
|
+
"200":
|
|
660
|
+
description: successful operation
|
|
661
|
+
headers:
|
|
662
|
+
Cache-Control:
|
|
663
|
+
description: Cache control directive for caching proxies
|
|
664
|
+
schema:
|
|
665
|
+
type: string
|
|
666
|
+
example: public, s-maxage=14400, stale-while-revalidate=60
|
|
667
|
+
content:
|
|
668
|
+
application/json:
|
|
669
|
+
schema:
|
|
670
|
+
type: array
|
|
671
|
+
items:
|
|
672
|
+
$ref: "#/components/schemas/GTFSPathway"
|
|
673
|
+
"401":
|
|
674
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
675
|
+
|
|
676
|
+
/v2/gtfs/transfers:
|
|
677
|
+
get:
|
|
678
|
+
summary: GET All GTFS Transfers
|
|
679
|
+
description: Transfer rules from GTFS `transfers.txt`, ordered by `from_stop_id`, `to_stop_id`, `from_trip_id` and `to_trip_id`, all ascending with empty values last.
|
|
680
|
+
tags:
|
|
681
|
+
- 🧾 GTFS Static (v2)
|
|
682
|
+
parameters:
|
|
683
|
+
- name: limit
|
|
684
|
+
in: query
|
|
685
|
+
description: Limits number of retrieved items. The maximum is 10000 (default value).
|
|
686
|
+
required: false
|
|
687
|
+
schema:
|
|
688
|
+
type: number
|
|
689
|
+
format: int64
|
|
690
|
+
example: 10
|
|
691
|
+
- name: offset
|
|
692
|
+
in: query
|
|
693
|
+
description: Number of the first items that are skipped.
|
|
694
|
+
required: false
|
|
695
|
+
schema:
|
|
696
|
+
type: number
|
|
697
|
+
format: int64
|
|
698
|
+
example: 0
|
|
699
|
+
responses:
|
|
700
|
+
"200":
|
|
701
|
+
description: successful operation
|
|
702
|
+
headers:
|
|
703
|
+
Cache-Control:
|
|
704
|
+
description: Cache control directive for caching proxies
|
|
705
|
+
schema:
|
|
706
|
+
type: string
|
|
707
|
+
example: public, s-maxage=14400, stale-while-revalidate=60
|
|
708
|
+
content:
|
|
709
|
+
application/json:
|
|
710
|
+
schema:
|
|
711
|
+
type: array
|
|
712
|
+
items:
|
|
713
|
+
$ref: "#/components/schemas/GTFSTransfer"
|
|
714
|
+
"401":
|
|
715
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
716
|
+
|
|
579
717
|
/v2/vehiclepositions:
|
|
580
718
|
get:
|
|
581
719
|
summary: GET All Vehicle Positions
|
|
@@ -2632,6 +2770,160 @@ components:
|
|
|
2632
2770
|
- route_type
|
|
2633
2771
|
- route_url
|
|
2634
2772
|
|
|
2773
|
+
GTFSLevel:
|
|
2774
|
+
title: GTFS Level
|
|
2775
|
+
description: See GTFS Schedule Reference for [levels.txt](https://gtfs.org/documentation/schedule/reference/#levelstxt).
|
|
2776
|
+
type: object
|
|
2777
|
+
properties:
|
|
2778
|
+
level_id:
|
|
2779
|
+
type: string
|
|
2780
|
+
example: "U400L1"
|
|
2781
|
+
level_index:
|
|
2782
|
+
type: number
|
|
2783
|
+
format: double
|
|
2784
|
+
description: Numeric index of the level that indicates its relative position. Ground level is 0.
|
|
2785
|
+
example: -1
|
|
2786
|
+
level_name:
|
|
2787
|
+
type: string
|
|
2788
|
+
nullable: true
|
|
2789
|
+
example: "Chodba"
|
|
2790
|
+
required:
|
|
2791
|
+
- level_id
|
|
2792
|
+
- level_index
|
|
2793
|
+
- level_name
|
|
2794
|
+
|
|
2795
|
+
GTFSPathway:
|
|
2796
|
+
title: GTFS Pathway
|
|
2797
|
+
description: See GTFS Schedule Reference for [pathways.txt](https://gtfs.org/documentation/schedule/reference/#pathwaystxt).
|
|
2798
|
+
type: object
|
|
2799
|
+
properties:
|
|
2800
|
+
pathway_id:
|
|
2801
|
+
type: string
|
|
2802
|
+
example: "U400P13"
|
|
2803
|
+
from_stop_id:
|
|
2804
|
+
type: string
|
|
2805
|
+
example: "U400N11"
|
|
2806
|
+
to_stop_id:
|
|
2807
|
+
type: string
|
|
2808
|
+
example: "U400N29"
|
|
2809
|
+
pathway_mode:
|
|
2810
|
+
type: integer
|
|
2811
|
+
enum: [1, 2, 3, 4, 5, 6, 7]
|
|
2812
|
+
description: >-
|
|
2813
|
+
1 = walkway, 2 = stairs, 3 = moving sidewalk/travelator, 4 = escalator, 5 = elevator,
|
|
2814
|
+
6 = fare gate, 7 = exit gate
|
|
2815
|
+
example: 1
|
|
2816
|
+
is_bidirectional:
|
|
2817
|
+
type: integer
|
|
2818
|
+
enum: [0, 1]
|
|
2819
|
+
description: 0 = unidirectional (from `from_stop_id` to `to_stop_id` only), 1 = bidirectional
|
|
2820
|
+
example: 1
|
|
2821
|
+
length:
|
|
2822
|
+
type: number
|
|
2823
|
+
format: double
|
|
2824
|
+
nullable: true
|
|
2825
|
+
description: Horizontal length in meters.
|
|
2826
|
+
example: null
|
|
2827
|
+
traversal_time:
|
|
2828
|
+
type: integer
|
|
2829
|
+
nullable: true
|
|
2830
|
+
description: Average time in seconds needed to walk through the pathway.
|
|
2831
|
+
example: 30
|
|
2832
|
+
stair_count:
|
|
2833
|
+
type: integer
|
|
2834
|
+
nullable: true
|
|
2835
|
+
description: Number of stairs, positive when going up from `from_stop_id` to `to_stop_id`, negative when going down.
|
|
2836
|
+
example: -28
|
|
2837
|
+
max_slope:
|
|
2838
|
+
type: number
|
|
2839
|
+
format: double
|
|
2840
|
+
nullable: true
|
|
2841
|
+
description: Maximum slope ratio of the pathway.
|
|
2842
|
+
example: null
|
|
2843
|
+
min_width:
|
|
2844
|
+
type: number
|
|
2845
|
+
format: double
|
|
2846
|
+
nullable: true
|
|
2847
|
+
description: Minimum width of the pathway in meters.
|
|
2848
|
+
example: null
|
|
2849
|
+
signposted_as:
|
|
2850
|
+
type: string
|
|
2851
|
+
nullable: true
|
|
2852
|
+
description: Public facing text from physical signage visible to riders.
|
|
2853
|
+
example: "Linka C, Line C"
|
|
2854
|
+
reversed_signposted_as:
|
|
2855
|
+
type: string
|
|
2856
|
+
nullable: true
|
|
2857
|
+
description: Same as `signposted_as`, but when the pathway is used from `to_stop_id` to `from_stop_id`.
|
|
2858
|
+
example: "E4, E5 Vinohradská, Legerova"
|
|
2859
|
+
bikes_prohibited:
|
|
2860
|
+
type: integer
|
|
2861
|
+
enum: [0, 1]
|
|
2862
|
+
nullable: true
|
|
2863
|
+
description: 0 = bicycles allowed, 1 = bicycles prohibited. A PID extension of GTFS.
|
|
2864
|
+
example: 0
|
|
2865
|
+
required:
|
|
2866
|
+
- pathway_id
|
|
2867
|
+
- from_stop_id
|
|
2868
|
+
- to_stop_id
|
|
2869
|
+
- pathway_mode
|
|
2870
|
+
- is_bidirectional
|
|
2871
|
+
- length
|
|
2872
|
+
- traversal_time
|
|
2873
|
+
- stair_count
|
|
2874
|
+
- max_slope
|
|
2875
|
+
- min_width
|
|
2876
|
+
- signposted_as
|
|
2877
|
+
- reversed_signposted_as
|
|
2878
|
+
- bikes_prohibited
|
|
2879
|
+
|
|
2880
|
+
GTFSTransfer:
|
|
2881
|
+
title: GTFS Transfer
|
|
2882
|
+
description: See GTFS Schedule Reference for [transfers.txt](https://gtfs.org/documentation/schedule/reference/#transferstxt).
|
|
2883
|
+
type: object
|
|
2884
|
+
properties:
|
|
2885
|
+
from_stop_id:
|
|
2886
|
+
type: string
|
|
2887
|
+
nullable: true
|
|
2888
|
+
example: "U1071Z3P"
|
|
2889
|
+
to_stop_id:
|
|
2890
|
+
type: string
|
|
2891
|
+
nullable: true
|
|
2892
|
+
example: "U1071Z3P"
|
|
2893
|
+
from_trip_id:
|
|
2894
|
+
type: string
|
|
2895
|
+
nullable: true
|
|
2896
|
+
example: "909_271_251110"
|
|
2897
|
+
to_trip_id:
|
|
2898
|
+
type: string
|
|
2899
|
+
nullable: true
|
|
2900
|
+
example: "916_175_260101"
|
|
2901
|
+
transfer_type:
|
|
2902
|
+
type: integer
|
|
2903
|
+
enum: [0, 1, 2, 3, 4, 5]
|
|
2904
|
+
description: >-
|
|
2905
|
+
0 = recommended transfer point, 1 = timed transfer point, 2 = transfer requires `min_transfer_time`,
|
|
2906
|
+
3 = transfer not possible, 4 = in-seat transfer, 5 = in-seat transfer not allowed
|
|
2907
|
+
example: 1
|
|
2908
|
+
min_transfer_time:
|
|
2909
|
+
type: integer
|
|
2910
|
+
nullable: true
|
|
2911
|
+
description: Minimum time in seconds needed for the transfer.
|
|
2912
|
+
example: null
|
|
2913
|
+
max_waiting_time:
|
|
2914
|
+
type: integer
|
|
2915
|
+
nullable: true
|
|
2916
|
+
description: Maximum time in seconds the connecting vehicle waits. A PID extension of GTFS.
|
|
2917
|
+
example: 180
|
|
2918
|
+
required:
|
|
2919
|
+
- from_stop_id
|
|
2920
|
+
- to_stop_id
|
|
2921
|
+
- from_trip_id
|
|
2922
|
+
- to_trip_id
|
|
2923
|
+
- transfer_type
|
|
2924
|
+
- min_transfer_time
|
|
2925
|
+
- max_waiting_time
|
|
2926
|
+
|
|
2635
2927
|
Point:
|
|
2636
2928
|
title: Point
|
|
2637
2929
|
type: array
|