@golemio/parkings 1.19.1-dev.1750146209 → 1.19.1-dev.1752705002
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 +1 -0
- package/db/example/01_sql_dump.sql +15 -9
- package/db/example/02_ztp_updated_recently.sql +0 -2
- package/db/example/03_tsk_measurements_for_legacy_endpoints.sql +2 -2
- package/db/example/04_tsk_parking_v2.sql +5 -2
- package/db/example/08_isphk_data.sql +6 -6
- package/db/example/09_korid_data.sql +17 -8
- package/db/example/10_osm_data.sql +12 -12
- package/db/example/11_parking_machines.sql +24 -14
- package/db/example/12_pmdp_data.sql +3 -3
- package/db/example/13_data_new_filter.sql +2 -2
- package/db/example/14_greencenter_data.sql +2 -2
- package/db/migrations/postgresql/20250328122412-tariff-ids.js +53 -0
- package/db/migrations/postgresql/sqls/20241029121711-create-area-column-down.sql +4 -2
- package/db/migrations/postgresql/sqls/20241106090940-address-updated-down.sql +4 -1
- package/db/migrations/postgresql/sqls/20241202123008-active-down.sql +3 -0
- package/db/migrations/postgresql/sqls/20250328122412-tariff-ids-down.sql +70 -0
- package/db/migrations/postgresql/sqls/20250328122412-tariff-ids-up.sql +110 -0
- package/dist/integration-engine/ParkingInterface.d.ts +0 -1
- package/dist/integration-engine/ParkingsWorker.d.ts +1 -0
- package/dist/integration-engine/ParkingsWorker.js +2 -0
- package/dist/integration-engine/ParkingsWorker.js.map +1 -1
- package/dist/integration-engine/ZtpParkingZones/ZtpParkingZonesWorker.js +7 -6
- package/dist/integration-engine/ZtpParkingZones/ZtpParkingZonesWorker.js.map +1 -1
- package/dist/integration-engine/ioc/Di.js +2 -0
- package/dist/integration-engine/ioc/Di.js.map +1 -1
- package/dist/integration-engine/ioc/ModuleContainerToken.d.ts +1 -0
- package/dist/integration-engine/ioc/ModuleContainerToken.js +1 -0
- package/dist/integration-engine/ioc/ModuleContainerToken.js.map +1 -1
- package/dist/integration-engine/repositories/ParkingTariffRelationsRepository.d.ts +10 -0
- package/dist/integration-engine/repositories/ParkingTariffRelationsRepository.js +88 -0
- package/dist/integration-engine/repositories/ParkingTariffRelationsRepository.js.map +1 -0
- package/dist/integration-engine/repositories/ParkingTariffsRepository.d.ts +1 -12
- package/dist/integration-engine/repositories/ParkingTariffsRepository.js +2 -59
- package/dist/integration-engine/repositories/ParkingTariffsRepository.js.map +1 -1
- package/dist/integration-engine/repositories/ParkingsRepository.d.ts +8 -2
- package/dist/integration-engine/repositories/ParkingsRepository.js +19 -3
- package/dist/integration-engine/repositories/ParkingsRepository.js.map +1 -1
- package/dist/integration-engine/repositories/ParkingsSecondaryRepository.js +3 -1
- package/dist/integration-engine/repositories/ParkingsSecondaryRepository.js.map +1 -1
- package/dist/integration-engine/transformations/IptOictTariffsTransformation.d.ts +2 -6
- package/dist/integration-engine/transformations/IptOictTariffsTransformation.js +3 -4
- package/dist/integration-engine/transformations/IptOictTariffsTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/KoridParkingConfigTransformation.d.ts +4 -1
- package/dist/integration-engine/transformations/KoridParkingConfigTransformation.js +17 -4
- package/dist/integration-engine/transformations/KoridParkingConfigTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/MrParkitGarageTransformation.d.ts +1 -0
- package/dist/integration-engine/transformations/MrParkitGarageTransformation.js +11 -4
- package/dist/integration-engine/transformations/MrParkitGarageTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/StaticTariffsMatcher.d.ts +4 -4
- package/dist/integration-engine/transformations/StaticTariffsMatcher.js +11 -8
- package/dist/integration-engine/transformations/StaticTariffsMatcher.js.map +1 -1
- package/dist/integration-engine/transformations/TSKParkingTransformation.d.ts +3 -1
- package/dist/integration-engine/transformations/TSKParkingTransformation.js +14 -3
- package/dist/integration-engine/transformations/TSKParkingTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/TskParkingMachinesTransformation.d.ts +2 -0
- package/dist/integration-engine/transformations/TskParkingMachinesTransformation.js +11 -1
- package/dist/integration-engine/transformations/TskParkingMachinesTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/TskParkingSectionTransformation.d.ts +2 -0
- package/dist/integration-engine/transformations/TskParkingSectionTransformation.js +13 -1
- package/dist/integration-engine/transformations/TskParkingSectionTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/interfaces/IMrParkitGarageTransformation.d.ts +2 -0
- package/dist/integration-engine/transformations/iptoict/IptOictParkingMachinesTransformation.js +0 -1
- package/dist/integration-engine/transformations/iptoict/IptOictParkingMachinesTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/osm/OsmParkingMachinesTransformation.js +0 -1
- package/dist/integration-engine/transformations/osm/OsmParkingMachinesTransformation.js.map +1 -1
- package/dist/integration-engine/workers/StaticTariffsWorker.js +3 -5
- package/dist/integration-engine/workers/StaticTariffsWorker.js.map +1 -1
- package/dist/integration-engine/workers/TskParkingWorker.js +5 -5
- package/dist/integration-engine/workers/TskParkingWorker.js.map +1 -1
- package/dist/integration-engine/workers/tasks/SaveIptOictTariffsDataTask.d.ts +3 -3
- package/dist/integration-engine/workers/tasks/SaveIptOictTariffsDataTask.js +7 -7
- package/dist/integration-engine/workers/tasks/SaveIptOictTariffsDataTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/SaveMrParkitDataTask.d.ts +3 -1
- package/dist/integration-engine/workers/tasks/SaveMrParkitDataTask.js +11 -4
- package/dist/integration-engine/workers/tasks/SaveMrParkitDataTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/SaveParkingZonesPrague.d.ts +2 -0
- package/dist/integration-engine/workers/tasks/SaveParkingZonesPrague.js +7 -0
- package/dist/integration-engine/workers/tasks/SaveParkingZonesPrague.js.map +1 -1
- package/dist/integration-engine/workers/tasks/SaveTskParkingMachinesTask.d.ts +3 -1
- package/dist/integration-engine/workers/tasks/SaveTskParkingMachinesTask.js +6 -3
- package/dist/integration-engine/workers/tasks/SaveTskParkingMachinesTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/SaveTskParkingSectionsTask.d.ts +3 -1
- package/dist/integration-engine/workers/tasks/SaveTskParkingSectionsTask.js +4 -1
- package/dist/integration-engine/workers/tasks/SaveTskParkingSectionsTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/UpdateStaticTariffsTask.d.ts +7 -7
- package/dist/integration-engine/workers/tasks/UpdateStaticTariffsTask.js +6 -5
- package/dist/integration-engine/workers/tasks/UpdateStaticTariffsTask.js.map +1 -1
- package/dist/output-gateway/data-access/ParkingMachinesRepository.d.ts +5 -3
- package/dist/output-gateway/data-access/ParkingMachinesRepository.js +32 -1
- package/dist/output-gateway/data-access/ParkingMachinesRepository.js.map +1 -1
- package/dist/output-gateway/data-access/ParkingRepository.d.ts +3 -1
- package/dist/output-gateway/data-access/ParkingRepository.js +31 -5
- package/dist/output-gateway/data-access/ParkingRepository.js.map +1 -1
- package/dist/output-gateway/data-access/ParkingTariffRelationsRepository.d.ts +6 -0
- package/dist/output-gateway/data-access/ParkingTariffRelationsRepository.js +34 -0
- package/dist/output-gateway/data-access/ParkingTariffRelationsRepository.js.map +1 -0
- package/dist/output-gateway/data-access/ParkingsFilteredRepository.d.ts +2 -1
- package/dist/output-gateway/data-access/ParkingsFilteredRepository.js +6 -3
- package/dist/output-gateway/data-access/ParkingsFilteredRepository.js.map +1 -1
- package/dist/output-gateway/ioc/Di.js +2 -0
- package/dist/output-gateway/ioc/Di.js.map +1 -1
- package/dist/output-gateway/ioc/ModuleContainerToken.d.ts +1 -0
- package/dist/output-gateway/ioc/ModuleContainerToken.js +1 -0
- package/dist/output-gateway/ioc/ModuleContainerToken.js.map +1 -1
- package/dist/output-gateway/models/ParkingsModel.d.ts +5 -1
- package/dist/output-gateway/models/ParkingsModel.js +27 -0
- package/dist/output-gateway/models/ParkingsModel.js.map +1 -1
- package/dist/output-gateway/models/helpers/DetailAttributesHelper.js +0 -1
- package/dist/output-gateway/models/helpers/DetailAttributesHelper.js.map +1 -1
- package/dist/output-gateway/models/index.d.ts +2 -0
- package/dist/output-gateway/models/index.js +2 -0
- package/dist/output-gateway/models/index.js.map +1 -1
- package/dist/output-gateway/routers/v2/V2ParkingRouter.js +4 -2
- package/dist/output-gateway/routers/v2/V2ParkingRouter.js.map +1 -1
- package/dist/output-gateway/transformations/ParkingsTransformationFabric.d.ts +3 -3
- package/dist/output-gateway/transformations/ParkingsTransformationFabric.js +4 -4
- package/dist/output-gateway/transformations/ParkingsTransformationFabric.js.map +1 -1
- package/dist/output-gateway/transformations/v3/ParkingMachinesDtoTransformation.d.ts +4 -4
- package/dist/output-gateway/transformations/v3/ParkingMachinesDtoTransformation.js +1 -1
- package/dist/output-gateway/transformations/v3/ParkingMachinesDtoTransformation.js.map +1 -1
- package/dist/schema-definitions/index.js +0 -1
- package/dist/schema-definitions/index.js.map +1 -1
- package/dist/schema-definitions/models/ParkingMachinesModel.d.ts +0 -1
- package/dist/schema-definitions/models/ParkingMachinesModel.js +0 -1
- package/dist/schema-definitions/models/ParkingMachinesModel.js.map +1 -1
- package/dist/schema-definitions/models/ParkingModel.d.ts +0 -2
- package/dist/schema-definitions/models/ParkingModel.js +0 -2
- package/dist/schema-definitions/models/ParkingModel.js.map +1 -1
- package/dist/schema-definitions/models/ParkingTariffsRelationModel.d.ts +12 -0
- package/dist/schema-definitions/models/ParkingTariffsRelationModel.js +36 -0
- package/dist/schema-definitions/models/ParkingTariffsRelationModel.js.map +1 -0
- package/dist/schema-definitions/models/interfaces/IParking.d.ts +1 -1
- package/dist/schema-definitions/models/interfaces/IParkingMachine.d.ts +5 -1
- package/dist/schema-definitions/models/interfaces/IParkingTariffRelation.d.ts +5 -0
- package/dist/schema-definitions/models/interfaces/IParkingTariffRelation.js +3 -0
- package/dist/schema-definitions/models/interfaces/IParkingTariffRelation.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
INSERT INTO parkings (id, source, source_id, data_provider, name, category, date_modified, address, location, area_served, total_spot_number, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by, valid_from, valid_to,
|
|
2
|
-
('korid-20', 'korid', '20', 'www.korid.cz', 'Husova (u nemocnice)', 'park_and_ride', '2021-02-24T16:30:06.236Z', NULL, 'SRID=4326;POLYGON ((15.062502659291217 50.770489928646725, 15.062502659291217 50.770489928646725, 15.062514877513413 50.770475464787815, 15.062581794635213 50.77049826073106, 15.062649860572028 50.77051945225214, 15.062721314704385 50.77053616989129, 15.062866130284114 50.77056691550288, 15.062858059655783 50.77058240811945, 15.062712703761884 50.77055201164475, 15.062639428783918 50.77053457887742, 15.062570095936087 50.770512962386164, 15.062502659291217 50.770489928646725), (15.063333627169191 50.77068339655547, 15.06334151399964 50.77066874944876, 15.063552868836394 50.77071451523553, 15.063544982051344 50.77072916234581, 15.063333627169191 50.77068339655547), (15.06402203793059 50.77082695501542, 15.064028816089055 50.77081205354126, 15.064389053210448 50.77087794685548, 15.064382275155646 50.770892848349554, 15.06402203793059 50.77082695501542))'::geometry, NULL, 13, NULL, '2020-09-07 14:51:40.308', NULL, NULL, '2021-02-24 17:37:14.372', NULL, NULL, NULL,
|
|
3
|
-
('korid-21', 'korid', '21', 'www.korid.cz', 'Purkyňova ulice', 'park_and_ride', '2021-02-24T16:30:06.236Z', NULL, 'SRID=4326;POLYGON ((15.073535465794144 50.777867143328834, 15.074364650303988 50.77813579123175, 15.074351908646097 50.77815160179682, 15.073522723931404 50.77788295380698, 15.073535465794144 50.777867143328834), (15.074416914065177 50.77817503753822, 15.074429497702463 50.77815935612828, 15.074877094523854 50.77830375040025, 15.07486451099657 50.77831943185654, 15.074416914065177 50.77817503753822), (15.075650733190733 50.77868651870031, 15.075650733190733 50.77868651870031, 15.075564634987378 50.77861045467845, 15.07554201324507 50.77862087663137, 15.075499118355399 50.77858247914091, 15.075484187776214 50.77858944482163, 15.075439271486093 50.778550497382035, 15.075419840628033 50.77855937822567, 15.07537695602758 50.77852084116626, 15.075367120753475 50.778525311406675, 15.075303564462287 50.778468503035036, 15.075300595898385 50.77846615599911, 15.075300381548084 50.77846626713369, 15.075300234820142 50.77846634207723, 15.075281186802224 50.778474938792975, 15.075239435968914 50.77843771729444, 15.075290246614136 50.77841473660306, 15.075335124012991 50.778454153668214, 15.075354558422568 50.7784452488684, 15.075419494920078 50.77850296000166, 15.075429096512892 50.77849851290845, 15.075472261228347 50.778537033865646, 15.075491718741654 50.77852840732294, 15.075535754974565 50.77856669175267, 15.075550961185778 50.77856003875174, 15.075592711076746 50.778597264182665, 15.075594228650798 50.77859843531407, 15.075616936041953 50.77858819748631, 15.075701590126364 50.778663498184564, 15.075650733190733 50.77868651870031), (15.07560156777543 50.778786780162434, 15.075555472608372 50.77876012088723, 15.075653399037733 50.778692051930335, 15.075699494193103 50.77871871116814, 15.07560156777543 50.778786780162434))'::geometry, NULL, 36, NULL, '2020-09-07 14:51:40.308', NULL, NULL, '2021-02-24 17:37:14.372', NULL, NULL, NULL,
|
|
4
|
-
('korid-22', 'korid', '22', 'www.korid.cz', '1. máje', 'park_and_ride', '2021-02-24T16:30:06.236Z', NULL, 'SRID=4326;POLYGON ((15.048722595067447 50.7628457146645, 15.048722595067447 50.7628457146645, 15.048716367962248 50.762775507841255, 15.048714333981806 50.76275172992911, 15.048708229671679 50.7627273495386, 15.048702773889246 50.76270523464775, 15.04868944177133 50.762682678960275, 15.04867244079242 50.76266133636074, 15.04865023927992 50.76264190854471, 15.048649402627722 50.76264118626388, 15.048623574726843 50.762625199920016, 15.048596683892479 50.76261077980552, 15.04859384730661 50.76260985825769, 15.048561836071121 50.76259896923075, 15.0485601909124 50.76259868552474, 15.048489675092718 50.76258643560388, 15.048453440099811 50.76258008299823, 15.048471025844593 50.76253882873844, 15.048578026434075 50.76255720127448, 15.048594207710732 50.76256107058631, 15.048625684902126 50.76257199494989, 15.04866886409942 50.76259326854139, 15.048696211394889 50.76260996068015, 15.048704793973265 50.76261659348581, 15.048726266686511 50.76263471221044, 15.048732389247313 50.76264098464028, 15.048748953217547 50.762661821774046, 15.048752747631736 50.762666098660354, 15.048767166826684 50.76268976425888, 15.048768226638888 50.762692496329485, 15.048782164668745 50.76274633176619, 15.048789999980308 50.76284334276083, 15.048722595067447 50.7628457146645), (15.049380440528726 50.76344758984489, 15.048898232808483 50.763099770866226, 15.048918567269727 50.763088430051425, 15.04940077503638 50.76343624894975, 15.049380440528726 50.76344758984489), (15.050030797711324 50.76391444180497, 15.049437157489526 50.76348812537081, 15.049457464142574 50.76347675036433, 15.050051104402723 50.76390306669833, 15.050030797711324 50.76391444180497), (15.049543289349549 50.76375586697499, 15.04895132968074 50.76333211903317, 15.048971598131555 50.76332072886077, 15.049563557837509 50.76374447670289, 15.049543289349549 50.76375586697499), (15.049969473187774 50.764062225545175, 15.049647751202544 50.76383206153527, 15.049668054031324 50.76382064542361, 15.049989776036675 50.76405080937923, 15.049969473187774 50.764062225545175), (15.051079857038813 50.76466958394885, 15.050704013715515 50.76440055939813, 15.050724440719415 50.76438907978244, 15.05110028407871 50.76465810427945, 15.051079857038813 50.76466958394885))'::geometry, NULL, 59, NULL, '2020-09-07 14:51:40.308', NULL, NULL, '2021-02-24 17:37:14.373', NULL, NULL, NULL, '
|
|
5
|
-
('korid-54', 'korid', '54', 'www.korid.cz', 'Masarykova ulice', 'park_paid_private', '2021-02-24T16:30:06.236Z', NULL, 'SRID=4326;POLYGON ((15.074568223409903 50.77590827454969, 15.074585370561389 50.77586811775529, 15.074947701396539 50.775930320848644, 15.07493055452721 50.7759704777025, 15.074568223409903 50.77590827454969))'::geometry, NULL, 10, NULL, '2020-09-07 14:51:40.308', NULL, NULL, '2021-02-24 17:37:14.383', NULL, NULL, NULL,
|
|
6
|
-
('korid-66', 'korid', '66', 'www.korid.cz', 'Bedřichov Maliník', 'park_paid_private', '2021-02-24T16:30:06.236Z', NULL, 'SRID=4326;POLYGON ((15.12984438981548 50.79081757392241, 15.12984438981548 50.79081757392241, 15.13037179413462 50.790730250342165, 15.130753864365996 50.79092958629554, 15.130713357525435 50.791100395437105, 15.130553614214087 50.79105491924561, 15.13047129608269 50.791119029561514, 15.12984438981548 50.79081757392241))'::geometry, NULL, 150, NULL, '2020-09-07 14:51:40.309', NULL, NULL, '2021-02-24 17:37:14.383', NULL, NULL, NULL,
|
|
7
|
-
('tsk-p10-0101', 'tsk', 'P10-0101', 'www.tsk-praha.cz/opendata.iprpraha.cz', 'Vršovická', 'zone_mixed', NULL, NULL, 'SRID=4326;MULTIPOLYGON(((14.442026998000074 50.06601274800005,14.442419875000041 50.06614420200003,14.442591187000062 50.06619752600005,14.442808352000043 50.066260947000046,14.442850540000052 50.06627157200006,14.442861204000053 50.06627366200007,14.442861340000036 50.06627368800008,14.442865644000051 50.06626524500007,14.442870553000034 50.06625561700008,14.442858070000057 50.066253062000044,14.442822584000055 50.06624306500004,14.442603739000049 50.06618012200005,14.442432840000038 50.06612731600006,14.442041462000077 50.06599543900006,14.442026998000074 50.06601274800005)),((14.442957874000058 50.066294001000074,14.443108320000022 50.066323381000075,14.443235403000074 50.06634590400006,14.44334182800003 50.06635943900005,14.44340083000003 50.066364219000036,14.443499923000047 50.06637041700003,14.44373672000006 50.06637909300008,14.443896228000028 50.06638351700008,14.443977411000049 50.066381679000074,14.444057027000042 50.066378514000064,14.444135120000055 50.06637377200008,14.444216630000028 50.066366954000046,14.444371433000072 50.06635020500005,14.444604102000028 50.066319399000065,14.444930623000062 50.06627467900006,14.445063594000032 50.066256371000065,14.445058759000062 50.06623613200003,14.444923410000058 50.06625482000004,14.444599407000055 50.06629989900006,14.44436481100007 50.06633101400007,14.444210644000066 50.06634829200004,14.44413343900004 50.06635573600005,14.444053998000072 50.06635986900005,14.44397478600007 50.066362842000046,14.443897136000032 50.06636379400004,14.443819198000028 50.06636258700007,14.443739550000032 50.06636073800007,14.443582152000033 50.06635507800007,14.44350187300006 50.06635103200006,14.443404135000037 50.066345424000076,14.443346720000022 50.06634007700006,14.443241561000036 50.06632760700006,14.443117486000062 50.06630487900003,14.442966530000035 50.066276162000065,14.442870437000067 50.06625616000008,14.442865644000051 50.06626524500007,14.442861204000053 50.06627366200007,14.442861064000056 50.066273928000044,14.442957874000058 50.066294001000074)),((14.442023651000056 50.06601310500008,14.442038317000026 50.06599511500008,14.441514275000031 50.06581806600008,14.441501448000054 50.06583139900005,14.442023651000056 50.06601310500008)))'::geometry, NULL, 49, NULL, '2022-05-26 22:32:48.384+00', NULL, NULL, '2022-05-26 22:32:48.384+00', NULL, '2020-06-26 20:47:07.213+00', '2999-12-31 22:59:59.999+00', '
|
|
8
|
-
('tsk-p7-9080', 'tsk', 'P7-9080', 'www.tsk-praha.cz', NULL, 'zone_other', NULL, NULL, 'SRID=4326;POLYGON((14.4331297 50.0968683,14.4336875 50.0975736,14.4348569 50.0972503,14.4331297 50.0968683))'::geometry, NULL, 0, NULL, '2022-05-06 04:01:03.981+02', NULL, NULL, '2022-05-26 04:01:22.951+02', NULL, '2018-08-01 02:00:00+02', '2999-12-31 01:00:00+01', '
|
|
9
|
-
('korid-888','korid','62992d91-6048-4c5e-b94f-be796056b88e','www.mrparkit.com','Brno - Centrum Vídeňská ',NULL,'2024-07-03 15:00:01.157+02','{"address_country":"Česko","address_formatted":"Strážní 639 00, Brno"}','SRID=4326;POINT (16.599509 49.1759116)',NULL,NULL,NULL,'2023-11-21 11:38:10.829+01',NULL,NULL,'2024-07-03 15:00:01.307+02',NULL,NULL,'2023-11-21 11:38:10.75+01',
|
|
1
|
+
INSERT INTO parkings (id, source, source_id, data_provider, name, category, date_modified, address, location, area_served, total_spot_number, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by, valid_from, valid_to, parking_type, zone_type, centroid) VALUES
|
|
2
|
+
('korid-20', 'korid', '20', 'www.korid.cz', 'Husova (u nemocnice)', 'park_and_ride', '2021-02-24T16:30:06.236Z', NULL, 'SRID=4326;POLYGON ((15.062502659291217 50.770489928646725, 15.062502659291217 50.770489928646725, 15.062514877513413 50.770475464787815, 15.062581794635213 50.77049826073106, 15.062649860572028 50.77051945225214, 15.062721314704385 50.77053616989129, 15.062866130284114 50.77056691550288, 15.062858059655783 50.77058240811945, 15.062712703761884 50.77055201164475, 15.062639428783918 50.77053457887742, 15.062570095936087 50.770512962386164, 15.062502659291217 50.770489928646725), (15.063333627169191 50.77068339655547, 15.06334151399964 50.77066874944876, 15.063552868836394 50.77071451523553, 15.063544982051344 50.77072916234581, 15.063333627169191 50.77068339655547), (15.06402203793059 50.77082695501542, 15.064028816089055 50.77081205354126, 15.064389053210448 50.77087794685548, 15.064382275155646 50.770892848349554, 15.06402203793059 50.77082695501542))'::geometry, NULL, 13, NULL, '2020-09-07 14:51:40.308', NULL, NULL, '2021-02-24 17:37:14.372', NULL, NULL, NULL,'on_street', NULL, 'SRID=4326;POINT (15.05929990174349 50.77035456801465)'::geometry),
|
|
3
|
+
('korid-21', 'korid', '21', 'www.korid.cz', 'Purkyňova ulice', 'park_and_ride', '2021-02-24T16:30:06.236Z', NULL, 'SRID=4326;POLYGON ((15.073535465794144 50.777867143328834, 15.074364650303988 50.77813579123175, 15.074351908646097 50.77815160179682, 15.073522723931404 50.77788295380698, 15.073535465794144 50.777867143328834), (15.074416914065177 50.77817503753822, 15.074429497702463 50.77815935612828, 15.074877094523854 50.77830375040025, 15.07486451099657 50.77831943185654, 15.074416914065177 50.77817503753822), (15.075650733190733 50.77868651870031, 15.075650733190733 50.77868651870031, 15.075564634987378 50.77861045467845, 15.07554201324507 50.77862087663137, 15.075499118355399 50.77858247914091, 15.075484187776214 50.77858944482163, 15.075439271486093 50.778550497382035, 15.075419840628033 50.77855937822567, 15.07537695602758 50.77852084116626, 15.075367120753475 50.778525311406675, 15.075303564462287 50.778468503035036, 15.075300595898385 50.77846615599911, 15.075300381548084 50.77846626713369, 15.075300234820142 50.77846634207723, 15.075281186802224 50.778474938792975, 15.075239435968914 50.77843771729444, 15.075290246614136 50.77841473660306, 15.075335124012991 50.778454153668214, 15.075354558422568 50.7784452488684, 15.075419494920078 50.77850296000166, 15.075429096512892 50.77849851290845, 15.075472261228347 50.778537033865646, 15.075491718741654 50.77852840732294, 15.075535754974565 50.77856669175267, 15.075550961185778 50.77856003875174, 15.075592711076746 50.778597264182665, 15.075594228650798 50.77859843531407, 15.075616936041953 50.77858819748631, 15.075701590126364 50.778663498184564, 15.075650733190733 50.77868651870031), (15.07560156777543 50.778786780162434, 15.075555472608372 50.77876012088723, 15.075653399037733 50.778692051930335, 15.075699494193103 50.77871871116814, 15.07560156777543 50.778786780162434))'::geometry, NULL, 36, NULL, '2020-09-07 14:51:40.308', NULL, NULL, '2021-02-24 17:37:14.372', NULL, NULL, NULL, 'on_street', NULL, 'SRID=4326;POINT (15.05929990174349 50.77035456801465)'::geometry),
|
|
4
|
+
('korid-22', 'korid', '22', 'www.korid.cz', '1. máje', 'park_and_ride', '2021-02-24T16:30:06.236Z', NULL, 'SRID=4326;POLYGON ((15.048722595067447 50.7628457146645, 15.048722595067447 50.7628457146645, 15.048716367962248 50.762775507841255, 15.048714333981806 50.76275172992911, 15.048708229671679 50.7627273495386, 15.048702773889246 50.76270523464775, 15.04868944177133 50.762682678960275, 15.04867244079242 50.76266133636074, 15.04865023927992 50.76264190854471, 15.048649402627722 50.76264118626388, 15.048623574726843 50.762625199920016, 15.048596683892479 50.76261077980552, 15.04859384730661 50.76260985825769, 15.048561836071121 50.76259896923075, 15.0485601909124 50.76259868552474, 15.048489675092718 50.76258643560388, 15.048453440099811 50.76258008299823, 15.048471025844593 50.76253882873844, 15.048578026434075 50.76255720127448, 15.048594207710732 50.76256107058631, 15.048625684902126 50.76257199494989, 15.04866886409942 50.76259326854139, 15.048696211394889 50.76260996068015, 15.048704793973265 50.76261659348581, 15.048726266686511 50.76263471221044, 15.048732389247313 50.76264098464028, 15.048748953217547 50.762661821774046, 15.048752747631736 50.762666098660354, 15.048767166826684 50.76268976425888, 15.048768226638888 50.762692496329485, 15.048782164668745 50.76274633176619, 15.048789999980308 50.76284334276083, 15.048722595067447 50.7628457146645), (15.049380440528726 50.76344758984489, 15.048898232808483 50.763099770866226, 15.048918567269727 50.763088430051425, 15.04940077503638 50.76343624894975, 15.049380440528726 50.76344758984489), (15.050030797711324 50.76391444180497, 15.049437157489526 50.76348812537081, 15.049457464142574 50.76347675036433, 15.050051104402723 50.76390306669833, 15.050030797711324 50.76391444180497), (15.049543289349549 50.76375586697499, 15.04895132968074 50.76333211903317, 15.048971598131555 50.76332072886077, 15.049563557837509 50.76374447670289, 15.049543289349549 50.76375586697499), (15.049969473187774 50.764062225545175, 15.049647751202544 50.76383206153527, 15.049668054031324 50.76382064542361, 15.049989776036675 50.76405080937923, 15.049969473187774 50.764062225545175), (15.051079857038813 50.76466958394885, 15.050704013715515 50.76440055939813, 15.050724440719415 50.76438907978244, 15.05110028407871 50.76465810427945, 15.051079857038813 50.76466958394885))'::geometry, NULL, 59, NULL, '2020-09-07 14:51:40.308', NULL, NULL, '2021-02-24 17:37:14.373', NULL, NULL, NULL, 'on_street', NULL, 'SRID=4326;POINT (15.05929990174349 50.77035456801465)'::geometry),
|
|
5
|
+
('korid-54', 'korid', '54', 'www.korid.cz', 'Masarykova ulice', 'park_paid_private', '2021-02-24T16:30:06.236Z', NULL, 'SRID=4326;POLYGON ((15.074568223409903 50.77590827454969, 15.074585370561389 50.77586811775529, 15.074947701396539 50.775930320848644, 15.07493055452721 50.7759704777025, 15.074568223409903 50.77590827454969))'::geometry, NULL, 10, NULL, '2020-09-07 14:51:40.308', NULL, NULL, '2021-02-24 17:37:14.383', NULL, NULL, NULL, 'on_street', NULL, 'SRID=4326;POINT (15.05929990174349 50.77035456801465)'::geometry),
|
|
6
|
+
('korid-66', 'korid', '66', 'www.korid.cz', 'Bedřichov Maliník', 'park_paid_private', '2021-02-24T16:30:06.236Z', NULL, 'SRID=4326;POLYGON ((15.12984438981548 50.79081757392241, 15.12984438981548 50.79081757392241, 15.13037179413462 50.790730250342165, 15.130753864365996 50.79092958629554, 15.130713357525435 50.791100395437105, 15.130553614214087 50.79105491924561, 15.13047129608269 50.791119029561514, 15.12984438981548 50.79081757392241))'::geometry, NULL, 150, NULL, '2020-09-07 14:51:40.309', NULL, NULL, '2021-02-24 17:37:14.383', NULL, NULL, NULL, 'on_street', NULL, 'SRID=4326;POINT (15.05929990174349 50.77035456801465)'::geometry),
|
|
7
|
+
('tsk-p10-0101', 'tsk', 'P10-0101', 'www.tsk-praha.cz/opendata.iprpraha.cz', 'Vršovická', 'zone_mixed', NULL, NULL, 'SRID=4326;MULTIPOLYGON(((14.442026998000074 50.06601274800005,14.442419875000041 50.06614420200003,14.442591187000062 50.06619752600005,14.442808352000043 50.066260947000046,14.442850540000052 50.06627157200006,14.442861204000053 50.06627366200007,14.442861340000036 50.06627368800008,14.442865644000051 50.06626524500007,14.442870553000034 50.06625561700008,14.442858070000057 50.066253062000044,14.442822584000055 50.06624306500004,14.442603739000049 50.06618012200005,14.442432840000038 50.06612731600006,14.442041462000077 50.06599543900006,14.442026998000074 50.06601274800005)),((14.442957874000058 50.066294001000074,14.443108320000022 50.066323381000075,14.443235403000074 50.06634590400006,14.44334182800003 50.06635943900005,14.44340083000003 50.066364219000036,14.443499923000047 50.06637041700003,14.44373672000006 50.06637909300008,14.443896228000028 50.06638351700008,14.443977411000049 50.066381679000074,14.444057027000042 50.066378514000064,14.444135120000055 50.06637377200008,14.444216630000028 50.066366954000046,14.444371433000072 50.06635020500005,14.444604102000028 50.066319399000065,14.444930623000062 50.06627467900006,14.445063594000032 50.066256371000065,14.445058759000062 50.06623613200003,14.444923410000058 50.06625482000004,14.444599407000055 50.06629989900006,14.44436481100007 50.06633101400007,14.444210644000066 50.06634829200004,14.44413343900004 50.06635573600005,14.444053998000072 50.06635986900005,14.44397478600007 50.066362842000046,14.443897136000032 50.06636379400004,14.443819198000028 50.06636258700007,14.443739550000032 50.06636073800007,14.443582152000033 50.06635507800007,14.44350187300006 50.06635103200006,14.443404135000037 50.066345424000076,14.443346720000022 50.06634007700006,14.443241561000036 50.06632760700006,14.443117486000062 50.06630487900003,14.442966530000035 50.066276162000065,14.442870437000067 50.06625616000008,14.442865644000051 50.06626524500007,14.442861204000053 50.06627366200007,14.442861064000056 50.066273928000044,14.442957874000058 50.066294001000074)),((14.442023651000056 50.06601310500008,14.442038317000026 50.06599511500008,14.441514275000031 50.06581806600008,14.441501448000054 50.06583139900005,14.442023651000056 50.06601310500008)))'::geometry, NULL, 49, NULL, '2022-05-26 22:32:48.384+00', NULL, NULL, '2022-05-26 22:32:48.384+00', NULL, '2020-06-26 20:47:07.213+00', '2999-12-31 22:59:59.999+00', 'on_street', 'zone_mixed', 'SRID=4326;POINT(14.443355698017905 50.066266757446506)'::geometry),
|
|
8
|
+
('tsk-p7-9080', 'tsk', 'P7-9080', 'www.tsk-praha.cz', NULL, 'zone_other', NULL, NULL, 'SRID=4326;POLYGON((14.4331297 50.0968683,14.4336875 50.0975736,14.4348569 50.0972503,14.4331297 50.0968683))'::geometry, NULL, 0, NULL, '2022-05-06 04:01:03.981+02', NULL, NULL, '2022-05-26 04:01:22.951+02', NULL, '2018-08-01 02:00:00+02', '2999-12-31 01:00:00+01', 'on_street', 'zone_other', 'SRID=4326;POINT(14.433891388888866 50.09723073333333)'::geometry),
|
|
9
|
+
('korid-888','korid','62992d91-6048-4c5e-b94f-be796056b88e','www.mrparkit.com','Brno - Centrum Vídeňská ',NULL,'2024-07-03 15:00:01.157+02','{"address_country":"Česko","address_formatted":"Strážní 639 00, Brno"}','SRID=4326;POINT (16.599509 49.1759116)',NULL,NULL,NULL,'2023-11-21 11:38:10.829+01',NULL,NULL,'2024-07-03 15:00:01.307+02',NULL,NULL,'2023-11-21 11:38:10.75+01','underground',NULL,'SRID=4326;POINT (16.599509 49.1759116)');
|
|
10
10
|
|
|
11
11
|
INSERT INTO parkings_location (id, source, source_id, data_provider, location, centroid, address, total_spot_number, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by) VALUES
|
|
12
12
|
('16424', 'tsk', 'P10-0101', 'www.tsk-praha.cz/opendata.iprpraha.cz', 'SRID=4326;MULTIPOLYGON(((14.442026998000074 50.06601274800005,14.442419875000041 50.06614420200003,14.442591187000062 50.06619752600005,14.442808352000043 50.066260947000046,14.442850540000052 50.06627157200006,14.442861204000053 50.06627366200007,14.442861340000036 50.06627368800008,14.442865644000051 50.06626524500007,14.442870553000034 50.06625561700008,14.442858070000057 50.066253062000044,14.442822584000055 50.06624306500004,14.442603739000049 50.06618012200005,14.442432840000038 50.06612731600006,14.442041462000077 50.06599543900006,14.442026998000074 50.06601274800005)),((14.442957874000058 50.066294001000074,14.443108320000022 50.066323381000075,14.443235403000074 50.06634590400006,14.44334182800003 50.06635943900005,14.44340083000003 50.066364219000036,14.443499923000047 50.06637041700003,14.44373672000006 50.06637909300008,14.443896228000028 50.06638351700008,14.443977411000049 50.066381679000074,14.444057027000042 50.066378514000064,14.444135120000055 50.06637377200008,14.444216630000028 50.066366954000046,14.444371433000072 50.06635020500005,14.444604102000028 50.066319399000065,14.444930623000062 50.06627467900006,14.445063594000032 50.066256371000065,14.445058759000062 50.06623613200003,14.444923410000058 50.06625482000004,14.444599407000055 50.06629989900006,14.44436481100007 50.06633101400007,14.444210644000066 50.06634829200004,14.44413343900004 50.06635573600005,14.444053998000072 50.06635986900005,14.44397478600007 50.066362842000046,14.443897136000032 50.06636379400004,14.443819198000028 50.06636258700007,14.443739550000032 50.06636073800007,14.443582152000033 50.06635507800007,14.44350187300006 50.06635103200006,14.443404135000037 50.066345424000076,14.443346720000022 50.06634007700006,14.443241561000036 50.06632760700006,14.443117486000062 50.06630487900003,14.442966530000035 50.066276162000065,14.442870437000067 50.06625616000008,14.442865644000051 50.06626524500007,14.442861204000053 50.06627366200007,14.442861064000056 50.066273928000044,14.442957874000058 50.066294001000074)),((14.442023651000056 50.06601310500008,14.442038317000026 50.06599511500008,14.441514275000031 50.06581806600008,14.441501448000054 50.06583139900005,14.442023651000056 50.06601310500008)))'::geometry, 'SRID=4326;POINT(14.443355698017905 50.066266757446506)'::geometry, '{"address_country":"Česko","address_formatted":"Ctiradova, 14000 Hlavní město Praha Nusle, Česko","address_locality":"Hlavní město Praha","address_region":"Nusle","postal_code":"14000","street_address":"Ctiradova"}', 49, NULL, '2022-05-26 22:33:14.697+00', NULL, NULL, '2022-05-26 22:33:14.697+00', NULL),
|
|
@@ -39,6 +39,12 @@ INSERT INTO parkings_tariffs (tariff_id, source, last_updated, payment_mode, pay
|
|
|
39
39
|
('f4de50d9-1f5f-5d76-81a6-e5e8a2aa6d44', 'korid', '2020-10-12 15:19:21.000', '', 'Parkování Liberec', false, 'https://parking.liberec.cz/', 'B', true, true, NULL, 'CZK', 15, NULL, 1, 1800, 1, NULL, NULL, NULL, NULL, NULL, NULL, '2021-03-08 18:31:37.356', NULL, NULL, '2021-03-08 18:31:37.356', NULL),
|
|
40
40
|
('a5de46c9-4f7i-ad22-81a6-4ca56aa7cb66', 'dirok', '2020-10-12 15:19:21.000', '', 'Parkování Prerov', false, 'https://parking.prerov.cz/', 'C', true, true, NULL, 'CZK', 30, NULL, 0, 3600, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-03-08 18:31:37.356', NULL, NULL, '2021-03-08 18:31:37.356', NULL);
|
|
41
41
|
|
|
42
|
+
INSERT INTO parking_tariffs_relation ("parking_id", "tariff_id", "source", "updated_at", "created_at") VALUES
|
|
43
|
+
('korid-20', 'b184865e-5a5e-5465-abc1-4fab6bc56a77', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
44
|
+
('korid-22', 'f4de50d9-1f5f-5d76-81a6-e5e8a2aa6d44', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
45
|
+
('tsk-p10-0101', 'bfcfc515-369f-5093-b779-7091c520edd3', 'tsk', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
46
|
+
('tsk-p7-9080', '87ca4ca0-efbf-55d7-9091-7e5e4c99ff8b', 'tsk', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01');
|
|
47
|
+
|
|
42
48
|
INSERT INTO parking_sources("source", open_data, api_v3_allowed, contact, legacy_api_allowed, datasource_parking, datasource_locations, datasource_payments, payment, reservation, datasource_entrances, datasource_prohibitions, "name", datasource_tariffs) VALUES
|
|
43
49
|
('isphk', true, true, '{"email": "zadosti@isphk.cz", "phone": "800 101 039", "web_url": "https://www.isphk.cz/", "term_of_use_url": null}'::jsonb, false, 'http://parking.example.com', 'http://parking_locations.example.com', NULL, NULL, '{"type": "not_possible", "ios_url": null, "web_url": null, "android_url": null, "discovery_url": null}'::jsonb, 'http://parking_entrances.example.com', NULL, 'Integrovaný systém parkování Hradec Králové', 'http://parking_tariffs.example.com'),
|
|
44
50
|
('pmdp', true, true, '{"email": "parking@pmdp.cz", "phone": "+420 378 035 420", "web_url": "https://www.parkingplzen.cz/", "term_of_use_url": null}'::jsonb, false, 'http://parking.example.com', 'http://parking_locations.example.com', NULL, NULL, '{"type": "not_possible", "ios_url": null, "web_url": null, "android_url": null, "discovery_url": null}'::jsonb, 'http://parking_entrances.example.com', NULL, NULL, NULL),
|
|
@@ -16,7 +16,6 @@ INSERT INTO parkings (
|
|
|
16
16
|
"update_batch_id",
|
|
17
17
|
"updated_at",
|
|
18
18
|
"updated_by",
|
|
19
|
-
"tariff_id",
|
|
20
19
|
"valid_from",
|
|
21
20
|
"valid_to",
|
|
22
21
|
"parking_type",
|
|
@@ -42,7 +41,6 @@ INSERT INTO parkings (
|
|
|
42
41
|
NULL,
|
|
43
42
|
NULL,
|
|
44
43
|
NULL,
|
|
45
|
-
NULL,
|
|
46
44
|
'disabled_parking',
|
|
47
45
|
NULL,
|
|
48
46
|
'0101000020E6100000001CC55DB0312D4060BA49795E0E4940'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
INSERT INTO parkings (id,"source",source_id,data_provider,name,category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,
|
|
2
|
-
('tsk-534015','tsk','534015','www.tsk-praha.cz','Depo Hostivař','park_and_ride','2023-01-29T04:55:44.000Z','{"address_country":"Česko","address_formatted":"Černokostelecká, 10000 Hlavní město Praha Strašnice, Česko","address_locality":"Hlavní město Praha","address_region":"Strašnice","postal_code":"10000","street_address":"Černokostelecká"}','SRID=4326;POINT (14.517897 50.07622)',NULL,104,NULL,'2022-07-20 12:00:03.379+01:00',NULL,NULL,'2023-01-29 06:00:03.097+01:00',NULL,NULL,NULL,
|
|
1
|
+
INSERT INTO parkings (id,"source",source_id,data_provider,name,category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,valid_from,valid_to,parking_type,zone_type,centroid) VALUES
|
|
2
|
+
('tsk-534015','tsk','534015','www.tsk-praha.cz','Depo Hostivař','park_and_ride','2023-01-29T04:55:44.000Z','{"address_country":"Česko","address_formatted":"Černokostelecká, 10000 Hlavní město Praha Strašnice, Česko","address_locality":"Hlavní město Praha","address_region":"Strašnice","postal_code":"10000","street_address":"Černokostelecká"}','SRID=4326;POINT (14.517897 50.07622)',NULL,104,NULL,'2022-07-20 12:00:03.379+01:00',NULL,NULL,'2023-01-29 06:00:03.097+01:00',NULL,NULL,NULL,'park_and_ride',NULL,'SRID=4326;POINT (14.517897 50.07622)');
|
|
3
3
|
|
|
4
4
|
INSERT INTO parkings_measurements_actual ("source",source_id,available_spot_number,closed_spot_number,occupied_spot_number,total_spot_number,date_modified,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,parking_id) VALUES
|
|
5
5
|
('tsk','534015',98,NULL,6,104,'2023-01-29T09:45:04.000Z',NULL,'2022-07-20 11:25:00.411Z',NULL,NULL,'2023-01-29 10:50:01.539Z',NULL,'tsk-534015');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
INSERT INTO parkings (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,
|
|
2
|
-
('tsk2-P1-0586','tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','www.tsk-praha.cz','P1-0586','blue','2023-10-13 06:47:17.196','{"address_country":"Česko","address_formatted":"Na Poříčí, 11000 Praha Nové Město, Česko","address_locality":"Praha","address_region":"Nové Město","postal_code":"11000","street_address":"Na Poříčí"}','SRID=4326;MULTIPOLYGON (((14.435146686704691 50.09031935764648, 14.435158778421304 50.090037674196914, 14.436496591004804 50.090271939573704, 14.436891101497103 50.09057582442722, 14.436584596966501 50.090700574765144, 14.436361060659229 50.09071081877421, 14.435146686704691 50.09031935764648)), ((14.432518050883488 50.08963880488788, 14.432849963583294 50.08974602637074, 14.433520760939317 50.08983654654372, 14.434026273297146 50.08989232808531, 14.433980344589223 50.0900468365997, 14.433568068617168 50.09014494638063, 14.4326828562706 50.08990536564012, 14.432518050883488 50.08963880488788)), ((14.43054520416443 50.089075595822536, 14.431267236152568 50.08895539557057, 14.431701029418882 50.089166218961886, 14.432130432442564 50.089421387255, 14.432518050883488 50.08963880488788, 14.43220935744498 50.089735597324186, 14.432069970660601 50.08973394311176, 14.431747143504648 50.08969881144357, 14.4308507378023 50.08944361428869, 14.43054520416443 50.089075595822536)))',NULL,42,NULL,'2023-10-04 22:05:34.589',NULL,NULL,'2023-10-13 06:47:28.150',NULL,'
|
|
1
|
+
INSERT INTO parkings (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,valid_from,valid_to,parking_type,zone_type,centroid,contact) VALUES
|
|
2
|
+
('tsk2-P1-0586','tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','www.tsk-praha.cz','P1-0586','blue','2023-10-13 06:47:17.196','{"address_country":"Česko","address_formatted":"Na Poříčí, 11000 Praha Nové Město, Česko","address_locality":"Praha","address_region":"Nové Město","postal_code":"11000","street_address":"Na Poříčí"}','SRID=4326;MULTIPOLYGON (((14.435146686704691 50.09031935764648, 14.435158778421304 50.090037674196914, 14.436496591004804 50.090271939573704, 14.436891101497103 50.09057582442722, 14.436584596966501 50.090700574765144, 14.436361060659229 50.09071081877421, 14.435146686704691 50.09031935764648)), ((14.432518050883488 50.08963880488788, 14.432849963583294 50.08974602637074, 14.433520760939317 50.08983654654372, 14.434026273297146 50.08989232808531, 14.433980344589223 50.0900468365997, 14.433568068617168 50.09014494638063, 14.4326828562706 50.08990536564012, 14.432518050883488 50.08963880488788)), ((14.43054520416443 50.089075595822536, 14.431267236152568 50.08895539557057, 14.431701029418882 50.089166218961886, 14.432130432442564 50.089421387255, 14.432518050883488 50.08963880488788, 14.43220935744498 50.089735597324186, 14.432069970660601 50.08973394311176, 14.431747143504648 50.08969881144357, 14.4308507378023 50.08944361428869, 14.43054520416443 50.089075595822536)))',NULL,42,NULL,'2023-10-04 22:05:34.589',NULL,NULL,'2023-10-13 06:47:28.150',NULL,'2023-06-12 02:03:43.000',NULL,'on_street','zone','SRID=4326;POINT (14.433520760939317 50.08983654654372)','{"email":"test@golemio.cz","phone":null,"website":null}');
|
|
3
3
|
|
|
4
4
|
INSERT INTO parkings_location (id,"source",source_id,data_provider,"location",centroid,address,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,special_access) VALUES
|
|
5
5
|
('tsk2-P1-0586-001','tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','www.tsk-praha.cz','SRID=4326;POLYGON ((14.430752009766316 50.08911821177594, 14.430769229998441 50.08910172868469, 14.430963092041813 50.089173302203854, 14.431121142940848 50.089229729083705, 14.431288241809778 50.089282708701234, 14.431380867359115 50.089311873860034, 14.4314096437366 50.08932032789265, 14.431440597404489 50.089328628720935, 14.431480187766274 50.0893393542484, 14.431531156892785 50.08935234952796, 14.432034928912303 50.08948101755296, 14.432024626323633 50.08950011783093, 14.431408883289269 50.08933960160983, 14.431288556785107 50.08930381070842, 14.43119927473038 50.089275437868416, 14.430947745128789 50.08918874462976, 14.430752009766316 50.08911821177594))','SRID=4326;POINT (14.431380867359115 50.089311873860034)','{"address_country":"Česko","address_formatted":"Na Poříčí, 11000 Praha Nové Město, Česko","address_locality":"Praha","address_region":"Nové Město","postal_code":"11000","street_address":"Na Poříčí"}',16,NULL,'2023-10-04 09:38:30.821',NULL,NULL,'2023-10-04 09:38:30.821',NULL,'{"disabled","designated"}');
|
|
@@ -16,3 +16,6 @@ INSERT INTO parkings_measurements_part ("source",source_id,parking_id,available_
|
|
|
16
16
|
('tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','tsk2-P1-0586',39,NULL,65,104,'2024-01-23 10:03:00.000',NULL,'2023-01-23 09:55:00.760',NULL,NULL,'2023-01-23 09:55:00.760',NULL),
|
|
17
17
|
('tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','tsk2-P1-0586',40,NULL,64,104,'2024-01-23 10:04:00.000',NULL,'2023-01-23 09:50:07.824',NULL,NULL,'2023-01-23 09:50:07.824',NULL),
|
|
18
18
|
('tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','tsk2-P1-0586',40,NULL,64,104,'2024-01-23 11:04:00.000',NULL,'2023-01-23 11:50:07.824',NULL,NULL,'2023-01-23 11:50:07.824',NULL);
|
|
19
|
+
|
|
20
|
+
INSERT INTO parking_tariffs_relation ("parking_id", "tariff_id", "source", "updated_at", "created_at") VALUES
|
|
21
|
+
('tsk2-P1-0586', '0639c53f-c555-49ac-b5e0-bb3d50acf588', 'tsk_v2', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
INSERT INTO parkings (id, "source", source_id, data_provider, "name", category, date_modified, address, "location", area_served, total_spot_number, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by,
|
|
2
|
-
('isphk-hk_isp_001', 'isphk', 'hk_isp_001', 'manual', 'Parkoviště - Areál Gayerova kasárna', NULL, '2024-03-19 12:35:38.035', NULL, 'SRID=4326;POLYGON ((15.8334023 50.2124219, 15.8332966 50.2126351, 15.8324748 50.2124681, 15.8325805 50.212255, 15.8334023 50.2124219))'::public.geometry, NULL, 0, NULL, '2024-03-19 12:24:00.743', NULL, NULL, '2024-03-19 12:35:38.038', NULL, NULL, NULL,
|
|
3
|
-
('isphk-hk_isp_002', 'isphk', 'hk_isp_002', 'manual', 'Parkovací dům Jana Gayera', NULL, '2024-03-19 12:35:38.035', NULL, 'SRID=4326;POLYGON ((15.8321452 50.2130086, 15.8322186 50.2128579, 15.8323087 50.2128759, 15.8323223 50.2128479, 15.8323356 50.2128204, 15.8323149 50.2128163, 15.8323881 50.2126659, 15.8331828 50.2128243, 15.8331099 50.2129743, 15.8330819 50.2129687, 15.8330694 50.2129944, 15.8330549 50.213024, 15.8331541 50.2130438, 15.8330805 50.213195, 15.8326895 50.2131171, 15.832548 50.2130889, 15.8321452 50.2130086))'::public.geometry, NULL, NULL, NULL, '2024-03-19 12:24:00.743', NULL, NULL, '2024-03-19 12:35:38.038', NULL, NULL, NULL,
|
|
4
|
-
('isphk-hk_isp_003', 'isphk', 'hk_isp_003', 'manual', 'Parkovací dům RegioCentrum', NULL, '2024-03-19 12:35:38.035', NULL, 'SRID=4326;POLYGON ((15.8294385 50.207829, 15.8294834 50.2077227, 15.8294878 50.2077019, 15.82955 50.207706, 15.829675 50.2077134, 15.8298179 50.2082955, 15.8292389 50.2084276, 15.8293478 50.2086025, 15.8291261 50.2086672, 15.8289545 50.2083726, 15.8292259 50.2083024, 15.8289966 50.2079245, 15.8294385 50.207829))'::public.geometry, NULL, NULL, NULL, '2024-03-19 12:24:00.743', NULL, NULL, '2024-03-19 12:35:38.038', NULL, NULL, NULL,
|
|
5
|
-
('isphk-hk_isp_004', 'isphk', 'hk_isp_004', 'manual', 'Parkoviště ‐ Zimní stadion', NULL, '2024-03-19 12:35:38.035', NULL, 'SRID=4326;POLYGON ((15.8302249 50.2073579, 15.8301801 50.2075294, 15.8293367 50.2074391, 15.8293816 50.2072675, 15.8302249 50.2073579))'::public.geometry, NULL, NULL, NULL, '2024-03-19 12:24:00.743', NULL, NULL, '2024-03-19 12:35:38.038', NULL, NULL, NULL,
|
|
6
|
-
('isphk-hk_isp_005', 'isphk', 'hk_isp_005', 'manual', 'Parkovací dům Katschnerka', NULL, '2024-03-19 12:35:38.035', NULL, 'SRID=4326;POLYGON ((15.8215837 50.2146887, 15.8215852 50.2146855, 15.8215877 50.2146826, 15.8215911 50.21468, 15.8215952 50.214678, 15.8215999 50.2146765, 15.8216049 50.2146756, 15.8216101 50.2146755, 15.8216153 50.2146759, 15.8216202 50.2146771, 15.8216247 50.2146788, 15.8216285 50.2146811, 15.8216315 50.2146838, 15.8216336 50.2146869, 15.8216347 50.2146902, 15.8216347 50.2146935, 15.8216337 50.2146968, 15.8216317 50.2146999, 15.8216288 50.2147027, 15.8216251 50.214705, 15.8216207 50.2147068, 15.8216158 50.214708, 15.8216107 50.2147086, 15.8216055 50.2147085, 15.8216004 50.2147077, 15.8215957 50.2147062, 15.8215915 50.2147042, 15.821654 50.2148299, 15.821667 50.2148562, 15.8216957 50.2149139, 15.8208888 50.2150785, 15.8208576 50.2150069, 15.8207455 50.2147894, 15.8207476 50.214789, 15.8207486 50.214791, 15.8208549 50.2147691, 15.820854 50.2147672, 15.8215516 50.2146246, 15.8215837 50.2146887))'::public.geometry, NULL, NULL, NULL, '2024-03-19 12:24:00.743', NULL, NULL, '2024-03-19 12:35:38.038', NULL, NULL, NULL,
|
|
1
|
+
INSERT INTO parkings (id, "source", source_id, data_provider, "name", category, date_modified, address, "location", area_served, total_spot_number, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by, valid_from, valid_to, parking_type, zone_type, centroid, "security", max_vehicle_dimensions, covered, contact, parking_policy, active) VALUES
|
|
2
|
+
('isphk-hk_isp_001', 'isphk', 'hk_isp_001', 'manual', 'Parkoviště - Areál Gayerova kasárna', NULL, '2024-03-19 12:35:38.035', NULL, 'SRID=4326;POLYGON ((15.8334023 50.2124219, 15.8332966 50.2126351, 15.8324748 50.2124681, 15.8325805 50.212255, 15.8334023 50.2124219))'::public.geometry, NULL, 0, NULL, '2024-03-19 12:24:00.743', NULL, NULL, '2024-03-19 12:35:38.038', NULL, NULL, NULL, 'surface', NULL, 'SRID=4326;POINT (15.83293855 50.21244505)'::public.geometry, NULL, NULL, false, NULL, 'commercial', false),
|
|
3
|
+
('isphk-hk_isp_002', 'isphk', 'hk_isp_002', 'manual', 'Parkovací dům Jana Gayera', NULL, '2024-03-19 12:35:38.035', NULL, 'SRID=4326;POLYGON ((15.8321452 50.2130086, 15.8322186 50.2128579, 15.8323087 50.2128759, 15.8323223 50.2128479, 15.8323356 50.2128204, 15.8323149 50.2128163, 15.8323881 50.2126659, 15.8331828 50.2128243, 15.8331099 50.2129743, 15.8330819 50.2129687, 15.8330694 50.2129944, 15.8330549 50.213024, 15.8331541 50.2130438, 15.8330805 50.213195, 15.8326895 50.2131171, 15.832548 50.2130889, 15.8321452 50.2130086))'::public.geometry, NULL, NULL, NULL, '2024-03-19 12:24:00.743', NULL, NULL, '2024-03-19 12:35:38.038', NULL, NULL, NULL, 'multi_storey', NULL, 'SRID=4326;POINT (15.832664 50.21293045)'::public.geometry, NULL, NULL, true, NULL, 'commercial', true),
|
|
4
|
+
('isphk-hk_isp_003', 'isphk', 'hk_isp_003', 'manual', 'Parkovací dům RegioCentrum', NULL, '2024-03-19 12:35:38.035', NULL, 'SRID=4326;POLYGON ((15.8294385 50.207829, 15.8294834 50.2077227, 15.8294878 50.2077019, 15.82955 50.207706, 15.829675 50.2077134, 15.8298179 50.2082955, 15.8292389 50.2084276, 15.8293478 50.2086025, 15.8291261 50.2086672, 15.8289545 50.2083726, 15.8292259 50.2083024, 15.8289966 50.2079245, 15.8294385 50.207829))'::public.geometry, NULL, NULL, NULL, '2024-03-19 12:24:00.743', NULL, NULL, '2024-03-19 12:35:38.038', NULL, NULL, NULL, 'underground', NULL, 'SRID=4326;POINT (15.8293862 50.20818455)'::public.geometry, NULL, NULL, true, NULL, 'commercial', true),
|
|
5
|
+
('isphk-hk_isp_004', 'isphk', 'hk_isp_004', 'manual', 'Parkoviště ‐ Zimní stadion', NULL, '2024-03-19 12:35:38.035', NULL, 'SRID=4326;POLYGON ((15.8302249 50.2073579, 15.8301801 50.2075294, 15.8293367 50.2074391, 15.8293816 50.2072675, 15.8302249 50.2073579))'::public.geometry, NULL, NULL, NULL, '2024-03-19 12:24:00.743', NULL, NULL, '2024-03-19 12:35:38.038', NULL, NULL, NULL, 'surface', NULL, 'SRID=4326;POINT (15.8297808 50.20739845)'::public.geometry, NULL, NULL, false, NULL, 'commercial', true),
|
|
6
|
+
('isphk-hk_isp_005', 'isphk', 'hk_isp_005', 'manual', 'Parkovací dům Katschnerka', NULL, '2024-03-19 12:35:38.035', NULL, 'SRID=4326;POLYGON ((15.8215837 50.2146887, 15.8215852 50.2146855, 15.8215877 50.2146826, 15.8215911 50.21468, 15.8215952 50.214678, 15.8215999 50.2146765, 15.8216049 50.2146756, 15.8216101 50.2146755, 15.8216153 50.2146759, 15.8216202 50.2146771, 15.8216247 50.2146788, 15.8216285 50.2146811, 15.8216315 50.2146838, 15.8216336 50.2146869, 15.8216347 50.2146902, 15.8216347 50.2146935, 15.8216337 50.2146968, 15.8216317 50.2146999, 15.8216288 50.2147027, 15.8216251 50.214705, 15.8216207 50.2147068, 15.8216158 50.214708, 15.8216107 50.2147086, 15.8216055 50.2147085, 15.8216004 50.2147077, 15.8215957 50.2147062, 15.8215915 50.2147042, 15.821654 50.2148299, 15.821667 50.2148562, 15.8216957 50.2149139, 15.8208888 50.2150785, 15.8208576 50.2150069, 15.8207455 50.2147894, 15.8207476 50.214789, 15.8207486 50.214791, 15.8208549 50.2147691, 15.820854 50.2147672, 15.8215516 50.2146246, 15.8215837 50.2146887))'::public.geometry, NULL, NULL, NULL, '2024-03-19 12:24:00.743', NULL, NULL, '2024-03-19 12:35:38.038', NULL, NULL, NULL, 'multi_storey', NULL, 'SRID=4326;POINT (15.8212206 50.21485155)'::public.geometry, NULL, NULL, true, NULL, 'commercial', true);
|
|
7
7
|
|
|
8
8
|
INSERT INTO parkings_location
|
|
9
9
|
(id, "source", source_id, data_provider, "location", centroid, address, total_spot_number, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by, special_access)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
INSERT INTO parkings (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,
|
|
2
|
-
('korid-14','korid','14','www.korid.cz','Malé náměstí',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město"}','SRID=4326;POLYGON ((15.053439170357379 50.77104482114524, 15.053379667585952 50.77094623213365, 15.053425805276998 50.770935033554004, 15.05348530812957 50.771033622542525, 15.053439170357379 50.77104482114524), (15.053544680707958 50.77086078148896, 15.053562355367628 50.770888897718194, 15.05346832918751 50.77091266837908, 15.053450654574307 50.77088455213589, 15.053544680707958 50.77086078148896), (15.0536401473132 50.77100219978372, 15.053588490767279 50.77091559114939, 15.053633139601354 50.77090488154687, 15.053684796216542 50.77099149016182, 15.0536401473132 50.77100219978372))',NULL,12,NULL,'2022-07-01 11:38:18.299+02',NULL,NULL,'2024-05-15 11:53:14.32+02',NULL,
|
|
3
|
-
('korid-13','korid','13','www.korid.cz','Vavřincův vrch',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Frýdlantská, 46001 Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město","postal_code":"46001","street_address":"Frýdlantská"}','SRID=4326;POLYGON ((15.05642058405908 50.77131768219866, 15.05637870344338 50.77130080948661, 15.056563308905925 50.77111654103068, 15.056605189437999 50.77113341368007, 15.05642058405908 50.77131768219866), (15.05650235221235 50.77134661958896, 15.056628805510625 50.77122114814301, 15.056671534504963 50.77123846560502, 15.056545081274015 50.77136393709557, 15.05650235221235 50.77134661958896), (15.05655709045048 50.77137042511884, 15.05668354366678 50.7712449536158, 15.056726272700448 50.77126227106664, 15.056599819539224 50.77138774260418, 15.05655709045048 50.77137042511884))',NULL,24,NULL,'2022-07-01 11:38:18.299+02',NULL,NULL,'2024-05-15 11:53:14.316+02',NULL,
|
|
4
|
-
('korid-12','korid','12','www.korid.cz','Tržní náměstí',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město"}','SRID=4326;POLYGON ((15.060614001012526 50.774037111853104, 15.06064608401181 50.773998960319304, 15.060777723275763 50.77404347169889, 15.060745640366582 50.77408162326862, 15.060614001012526 50.774037111853104), (15.060825093720137 50.77410910379276, 15.060856883694626 50.77407084931751, 15.061287830257728 50.774214845230944, 15.061256040535147 50.77425309981896, 15.060825093720137 50.77410910379276), (15.061491025510193 50.77357988894232, 15.061491025510193 50.77357988894232, 15.061532940744167 50.7736139336781, 15.061275723810827 50.773742595050884, 15.061219065681994 50.77377114809984, 15.061191904132578 50.77378708959841, 15.061166451617256 50.77380382369288, 15.061143955967603 50.77382215012455, 15.06112382406758 50.77384162645634, 15.06110630666643 50.77386190573617, 15.061091518748531 50.77388167545503, 15.061079926265844 50.77390143940596, 15.061071477300931 50.77392141332186, 15.061067420760494 50.773941044836256, 15.061072656500885 50.77396126465787, 15.061084567855493 50.77398118185215, 15.061101714957717 50.77400054872549, 15.06111786028717 50.7740169664764, 15.061143796242181 50.774034901892044, 15.061170104584733 50.77404922171951, 15.061195961878152 50.77405987731509, 15.061555662921755 50.77417888211165, 15.061524813186015 50.774217343309765, 15.061201537670943 50.77411078783505, 15.061163132404937 50.77409801676134, 15.061134001945414 50.77408634375971, 15.061095258440563 50.77406593760653, 15.06106941570551 50.77404872363064, 15.061046189569947 50.774027630590425, 15.06102478734465 50.774003614091214, 15.061008826608123 50.77397800901882, 15.060998525597414 50.77394326661424, 15.061001267452813 50.773919014436196, 15.061013043591844 50.77389090309221, 15.06102717175527 50.77386706771602, 15.06104346011586 50.773843554863795, 15.06106455183295 50.773819594377, 15.061086990134262 50.77379785818935, 15.061114861656241 50.77377518839987, 15.061143526080029 50.7737564153157, 15.061171051323626 50.77374041017785, 15.061491025510193 50.77357988894232), (15.06115277049626 50.773620588090346, 15.061357200644345 50.77351776061964, 15.061399424669252 50.77355151542847, 15.061194994468618 50.773654342970964, 15.06115277049626 50.773620588090346))',NULL,63,NULL,'2022-07-01 11:38:18.298+02',NULL,NULL,'2024-05-15 11:53:14.2+02',NULL,
|
|
5
|
-
('korid-10','korid','10','www.korid.cz','Na Perštýně',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Na Perštýně, 46001 Liberec Perštýn, Česko","address_locality":"Liberec","address_region":"Perštýn","postal_code":"46001","street_address":"Na Perštýně"}','SRID=4326;POLYGON ((15.058477079866359 50.764621453945274, 15.058514693959768 50.76462152563487, 15.058554180179613 50.764621900783574, 15.058626283309321 50.7646226347964, 15.058701346853194 50.76462159520064, 15.058776737298384 50.764618026799006, 15.058812775811438 50.76461469133624, 15.058822912718657 50.76465695203623, 15.058783838664894 50.76466082677318, 15.058743117269795 50.76466323629539, 15.058704375227238 50.76466458542137, 15.05866541610514 50.76466515003736, 15.058626559240858 50.76466567766573, 15.058587617997263 50.76466539596825, 15.058513079923348 50.764664631419066, 15.05847584612631 50.76466436351429, 15.058477079866359 50.764621453945274, 15.058477079866359 50.764621453945274))',NULL,9,NULL,'2022-07-01 11:38:18.298+02',NULL,NULL,'2024-05-15 11:53:14.203+02',NULL,
|
|
6
|
-
('korid-11','korid','11','www.korid.cz','Barvířská ulice',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Barvířská, 46007 Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město","postal_code":"46007","street_address":"Barvířská"}','SRID=4326;POLYGON ((15.052827174737011 50.76818395182747, 15.052813548512615 50.7681706290976, 15.053127496504548 50.768041481511716, 15.05314112278105 50.768054804197, 15.052827174737011 50.76818395182747), (15.0528545879386 50.768076271285096, 15.05284110025192 50.76806319783926, 15.0531566938284 50.767932242359606, 15.053170181564045 50.767945315769964, 15.0528545879386 50.768076271285096), (15.053360720512773 50.767780974705744, 15.053495511267823 50.76773862181574, 15.053527002654162 50.76777893267549, 15.05339221181179 50.76782128560994, 15.053360720512773 50.767780974705744), (15.053538273230366 50.76772611117662, 15.053679212198562 50.767682341076366, 15.053710454119498 50.76772280290865, 15.053569515060877 50.76776657304574, 15.053538273230366 50.76772611117662), (15.053691489914229 50.76767948261975, 15.054097311586956 50.767554098834076, 15.054109826586958 50.76757039102556, 15.053704004809042 50.767695774853735, 15.053691489914229 50.76767948261975))',NULL,23,NULL,'2022-07-01 11:38:18.298+02',NULL,NULL,'2024-05-15 11:53:14.189+02',NULL,
|
|
7
|
-
('korid-1','korid','1','www.korid.cz','nám. Dr.E.Beneše (Pošta)',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"nám. Dr. E. Beneše, 46001 Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město","postal_code":"46001","street_address":"nám. Dr. E. Beneše"}','SRID=4326;POLYGON ((15.059402713027369 50.77050569727233, 15.059152281669425 50.7702191902531, 15.059197090359975 50.770203438803286, 15.059447521917193 50.77048994572991, 15.059402713027369 50.77050569727233))',NULL,24,NULL,'2022-07-01 11:38:18.298+02',NULL,NULL,'2024-05-15 11:53:13.958+02',NULL,
|
|
8
|
-
('korid-16','korid','16','www.korid.cz','Papírová ulice',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Bednářská, 46001 Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město","postal_code":"46001","street_address":"Bednářská"}','SRID=4326;POLYGON ((15.05460215639034 50.76831686455292, 15.054778108824609 50.76827621498907, 15.054801398283878 50.768316760767966, 15.054625445734311 50.76835741036742, 15.05460215639034 50.76831686455292), (15.055025205881027 50.76835711307601, 15.055043081062772 50.768315347731786, 15.055440674880355 50.768383784379935, 15.055422800008474 50.76842554978086, 15.055025205881027 50.76835711307601), (15.055117032704732 50.76832417306977, 15.05513472865224 50.768282712238154, 15.05542327292743 50.768332241817845, 15.055405577211578 50.76837370269995, 15.055117032704732 50.76832417306977), (15.055507634795866 50.76830051924529, 15.055481502312903 50.768305122089195, 15.055417122627883 50.76815810840171, 15.055443255052502 50.76815350556426, 15.055507634795866 50.76830051924529), (15.054674623382972 50.76844698607595, 15.054674028292549 50.76840389729273, 15.054823104498281 50.76840306806651, 15.054823699723547 50.76844615684853, 15.054674623382972 50.76844698607595), (15.054751339591144 50.768526052273614, 15.054750531240463 50.768455517998724, 15.054818095506002 50.768455206076496, 15.05481890395854 50.76852574034169, 15.054751339591144 50.768526052273614), (15.054758929648006 50.76885589943716, 15.054755161765824 50.76856948287865, 15.054826914058388 50.76856910270115, 15.054830682370188 50.768855519264875, 15.054758929648006 50.76885589943716))',NULL,31,NULL,'2022-07-01 11:38:18.299+02',NULL,NULL,'2024-05-15 11:53:14.312+02',NULL,
|
|
1
|
+
INSERT INTO parkings (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,valid_from,valid_to,parking_type,zone_type,centroid,"security",max_vehicle_dimensions,covered,contact,parking_policy) VALUES
|
|
2
|
+
('korid-14','korid','14','www.korid.cz','Malé náměstí',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město"}','SRID=4326;POLYGON ((15.053439170357379 50.77104482114524, 15.053379667585952 50.77094623213365, 15.053425805276998 50.770935033554004, 15.05348530812957 50.771033622542525, 15.053439170357379 50.77104482114524), (15.053544680707958 50.77086078148896, 15.053562355367628 50.770888897718194, 15.05346832918751 50.77091266837908, 15.053450654574307 50.77088455213589, 15.053544680707958 50.77086078148896), (15.0536401473132 50.77100219978372, 15.053588490767279 50.77091559114939, 15.053633139601354 50.77090488154687, 15.053684796216542 50.77099149016182, 15.0536401473132 50.77100219978372))',NULL,12,NULL,'2022-07-01 11:38:18.299+02',NULL,NULL,'2024-05-15 11:53:14.32+02',NULL,NULL,NULL,'other',NULL,'SRID=4326;POINT (15.053525212090472 50.77094339764494)',NULL,NULL,NULL,NULL,NULL),
|
|
3
|
+
('korid-13','korid','13','www.korid.cz','Vavřincův vrch',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Frýdlantská, 46001 Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město","postal_code":"46001","street_address":"Frýdlantská"}','SRID=4326;POLYGON ((15.05642058405908 50.77131768219866, 15.05637870344338 50.77130080948661, 15.056563308905925 50.77111654103068, 15.056605189437999 50.77113341368007, 15.05642058405908 50.77131768219866), (15.05650235221235 50.77134661958896, 15.056628805510625 50.77122114814301, 15.056671534504963 50.77123846560502, 15.056545081274015 50.77136393709557, 15.05650235221235 50.77134661958896), (15.05655709045048 50.77137042511884, 15.05668354366678 50.7712449536158, 15.056726272700448 50.77126227106664, 15.056599819539224 50.77138774260418, 15.05655709045048 50.77137042511884))',NULL,24,NULL,'2022-07-01 11:38:18.299+02',NULL,NULL,'2024-05-15 11:53:14.316+02',NULL,NULL,NULL,'other',NULL,'SRID=4326;POINT (15.056573523808773 50.77127533410283)',NULL,NULL,NULL,NULL,NULL),
|
|
4
|
+
('korid-12','korid','12','www.korid.cz','Tržní náměstí',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město"}','SRID=4326;POLYGON ((15.060614001012526 50.774037111853104, 15.06064608401181 50.773998960319304, 15.060777723275763 50.77404347169889, 15.060745640366582 50.77408162326862, 15.060614001012526 50.774037111853104), (15.060825093720137 50.77410910379276, 15.060856883694626 50.77407084931751, 15.061287830257728 50.774214845230944, 15.061256040535147 50.77425309981896, 15.060825093720137 50.77410910379276), (15.061491025510193 50.77357988894232, 15.061491025510193 50.77357988894232, 15.061532940744167 50.7736139336781, 15.061275723810827 50.773742595050884, 15.061219065681994 50.77377114809984, 15.061191904132578 50.77378708959841, 15.061166451617256 50.77380382369288, 15.061143955967603 50.77382215012455, 15.06112382406758 50.77384162645634, 15.06110630666643 50.77386190573617, 15.061091518748531 50.77388167545503, 15.061079926265844 50.77390143940596, 15.061071477300931 50.77392141332186, 15.061067420760494 50.773941044836256, 15.061072656500885 50.77396126465787, 15.061084567855493 50.77398118185215, 15.061101714957717 50.77400054872549, 15.06111786028717 50.7740169664764, 15.061143796242181 50.774034901892044, 15.061170104584733 50.77404922171951, 15.061195961878152 50.77405987731509, 15.061555662921755 50.77417888211165, 15.061524813186015 50.774217343309765, 15.061201537670943 50.77411078783505, 15.061163132404937 50.77409801676134, 15.061134001945414 50.77408634375971, 15.061095258440563 50.77406593760653, 15.06106941570551 50.77404872363064, 15.061046189569947 50.774027630590425, 15.06102478734465 50.774003614091214, 15.061008826608123 50.77397800901882, 15.060998525597414 50.77394326661424, 15.061001267452813 50.773919014436196, 15.061013043591844 50.77389090309221, 15.06102717175527 50.77386706771602, 15.06104346011586 50.773843554863795, 15.06106455183295 50.773819594377, 15.061086990134262 50.77379785818935, 15.061114861656241 50.77377518839987, 15.061143526080029 50.7737564153157, 15.061171051323626 50.77374041017785, 15.061491025510193 50.77357988894232), (15.06115277049626 50.773620588090346, 15.061357200644345 50.77351776061964, 15.061399424669252 50.77355151542847, 15.061194994468618 50.773654342970964, 15.06115277049626 50.773620588090346))',NULL,63,NULL,'2022-07-01 11:38:18.298+02',NULL,NULL,'2024-05-15 11:53:14.2+02',NULL,NULL,NULL,'other',NULL,'SRID=4326;POINT (15.061123414935514 50.77391463057144)',NULL,NULL,NULL,NULL,NULL),
|
|
5
|
+
('korid-10','korid','10','www.korid.cz','Na Perštýně',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Na Perštýně, 46001 Liberec Perštýn, Česko","address_locality":"Liberec","address_region":"Perštýn","postal_code":"46001","street_address":"Na Perštýně"}','SRID=4326;POLYGON ((15.058477079866359 50.764621453945274, 15.058514693959768 50.76462152563487, 15.058554180179613 50.764621900783574, 15.058626283309321 50.7646226347964, 15.058701346853194 50.76462159520064, 15.058776737298384 50.764618026799006, 15.058812775811438 50.76461469133624, 15.058822912718657 50.76465695203623, 15.058783838664894 50.76466082677318, 15.058743117269795 50.76466323629539, 15.058704375227238 50.76466458542137, 15.05866541610514 50.76466515003736, 15.058626559240858 50.76466567766573, 15.058587617997263 50.76466539596825, 15.058513079923348 50.764664631419066, 15.05847584612631 50.76466436351429, 15.058477079866359 50.764621453945274, 15.058477079866359 50.764621453945274))',NULL,9,NULL,'2022-07-01 11:38:18.298+02',NULL,NULL,'2024-05-15 11:53:14.203+02',NULL,NULL,NULL,'on_street',NULL,'SRID=4326;POINT (15.058638996495171 50.76464318244542)',NULL,NULL,NULL,NULL,NULL),
|
|
6
|
+
('korid-11','korid','11','www.korid.cz','Barvířská ulice',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Barvířská, 46007 Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město","postal_code":"46007","street_address":"Barvířská"}','SRID=4326;POLYGON ((15.052827174737011 50.76818395182747, 15.052813548512615 50.7681706290976, 15.053127496504548 50.768041481511716, 15.05314112278105 50.768054804197, 15.052827174737011 50.76818395182747), (15.0528545879386 50.768076271285096, 15.05284110025192 50.76806319783926, 15.0531566938284 50.767932242359606, 15.053170181564045 50.767945315769964, 15.0528545879386 50.768076271285096), (15.053360720512773 50.767780974705744, 15.053495511267823 50.76773862181574, 15.053527002654162 50.76777893267549, 15.05339221181179 50.76782128560994, 15.053360720512773 50.767780974705744), (15.053538273230366 50.76772611117662, 15.053679212198562 50.767682341076366, 15.053710454119498 50.76772280290865, 15.053569515060877 50.76776657304574, 15.053538273230366 50.76772611117662), (15.053691489914229 50.76767948261975, 15.054097311586956 50.767554098834076, 15.054109826586958 50.76757039102556, 15.053704004809042 50.767695774853735, 15.053691489914229 50.76767948261975))',NULL,23,NULL,'2022-07-01 11:38:18.298+02',NULL,NULL,'2024-05-15 11:53:14.189+02',NULL,NULL,NULL,'other',NULL,'SRID=4326;POINT (15.053390371993563 50.76784926421176)',NULL,NULL,NULL,NULL,NULL),
|
|
7
|
+
('korid-1','korid','1','www.korid.cz','nám. Dr.E.Beneše (Pošta)',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"nám. Dr. E. Beneše, 46001 Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město","postal_code":"46001","street_address":"nám. Dr. E. Beneše"}','SRID=4326;POLYGON ((15.059402713027369 50.77050569727233, 15.059152281669425 50.7702191902531, 15.059197090359975 50.770203438803286, 15.059447521917193 50.77048994572991, 15.059402713027369 50.77050569727233))',NULL,24,NULL,'2022-07-01 11:38:18.298+02',NULL,NULL,'2024-05-15 11:53:13.958+02',NULL,NULL,NULL,'other',NULL,'SRID=4326;POINT (15.05929990174349 50.77035456801465)',NULL,NULL,NULL,NULL,NULL),
|
|
8
|
+
('korid-16','korid','16','www.korid.cz','Papírová ulice',NULL,'2024-05-15 11:53:12.43+02','{"address_country":"Česko","address_formatted":"Bednářská, 46001 Liberec Staré Město, Česko","address_locality":"Liberec","address_region":"Staré Město","postal_code":"46001","street_address":"Bednářská"}','SRID=4326;POLYGON ((15.05460215639034 50.76831686455292, 15.054778108824609 50.76827621498907, 15.054801398283878 50.768316760767966, 15.054625445734311 50.76835741036742, 15.05460215639034 50.76831686455292), (15.055025205881027 50.76835711307601, 15.055043081062772 50.768315347731786, 15.055440674880355 50.768383784379935, 15.055422800008474 50.76842554978086, 15.055025205881027 50.76835711307601), (15.055117032704732 50.76832417306977, 15.05513472865224 50.768282712238154, 15.05542327292743 50.768332241817845, 15.055405577211578 50.76837370269995, 15.055117032704732 50.76832417306977), (15.055507634795866 50.76830051924529, 15.055481502312903 50.768305122089195, 15.055417122627883 50.76815810840171, 15.055443255052502 50.76815350556426, 15.055507634795866 50.76830051924529), (15.054674623382972 50.76844698607595, 15.054674028292549 50.76840389729273, 15.054823104498281 50.76840306806651, 15.054823699723547 50.76844615684853, 15.054674623382972 50.76844698607595), (15.054751339591144 50.768526052273614, 15.054750531240463 50.768455517998724, 15.054818095506002 50.768455206076496, 15.05481890395854 50.76852574034169, 15.054751339591144 50.768526052273614), (15.054758929648006 50.76885589943716, 15.054755161765824 50.76856948287865, 15.054826914058388 50.76856910270115, 15.054830682370188 50.768855519264875, 15.054758929648006 50.76885589943716))',NULL,31,NULL,'2022-07-01 11:38:18.299+02',NULL,NULL,'2024-05-15 11:53:14.312+02',NULL,NULL,NULL,'other',NULL,'SRID=4326;POINT (15.05499910754953 50.76841042000099)',NULL,NULL,NULL,NULL,NULL);
|
|
9
9
|
|
|
10
10
|
INSERT INTO parkings_location (id,"source",source_id,data_provider,"location",centroid,address,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,special_access) VALUES
|
|
11
11
|
('korid-14','korid','14','www.korid.cz','SRID=4326;POLYGON ((15.053439170357379 50.77104482114524, 15.053379667585952 50.77094623213365, 15.053425805276998 50.770935033554004, 15.05348530812957 50.771033622542525, 15.053439170357379 50.77104482114524), (15.053544680707958 50.77086078148896, 15.053562355367628 50.770888897718194, 15.05346832918751 50.77091266837908, 15.053450654574307 50.77088455213589, 15.053544680707958 50.77086078148896), (15.0536401473132 50.77100219978372, 15.053588490767279 50.77091559114939, 15.053633139601354 50.77090488154687, 15.053684796216542 50.77099149016182, 15.0536401473132 50.77100219978372))','SRID=4326;POINT (15.053525212090472 50.77094339764494)',NULL,12,NULL,'2023-11-23 10:53:15.699+01',NULL,NULL,'2024-05-16 16:00:17.52+02',NULL,NULL),
|
|
@@ -15,3 +15,12 @@ INSERT INTO parkings_location (id,"source",source_id,data_provider,"location",ce
|
|
|
15
15
|
('korid-11','korid','11','www.korid.cz','SRID=4326;POLYGON ((15.052827174737011 50.76818395182747, 15.052813548512615 50.7681706290976, 15.053127496504548 50.768041481511716, 15.05314112278105 50.768054804197, 15.052827174737011 50.76818395182747), (15.0528545879386 50.768076271285096, 15.05284110025192 50.76806319783926, 15.0531566938284 50.767932242359606, 15.053170181564045 50.767945315769964, 15.0528545879386 50.768076271285096), (15.053360720512773 50.767780974705744, 15.053495511267823 50.76773862181574, 15.053527002654162 50.76777893267549, 15.05339221181179 50.76782128560994, 15.053360720512773 50.767780974705744), (15.053538273230366 50.76772611117662, 15.053679212198562 50.767682341076366, 15.053710454119498 50.76772280290865, 15.053569515060877 50.76776657304574, 15.053538273230366 50.76772611117662), (15.053691489914229 50.76767948261975, 15.054097311586956 50.767554098834076, 15.054109826586958 50.76757039102556, 15.053704004809042 50.767695774853735, 15.053691489914229 50.76767948261975))','SRID=4326;POINT (15.053390371993563 50.76784926421176)',NULL,23,NULL,'2023-11-23 10:53:15.699+01',NULL,NULL,'2024-05-16 16:00:17.52+02',NULL,NULL),
|
|
16
16
|
('korid-1','korid','1','www.korid.cz','SRID=4326;POLYGON ((15.059402713027369 50.77050569727233, 15.059152281669425 50.7702191902531, 15.059197090359975 50.770203438803286, 15.059447521917193 50.77048994572991, 15.059402713027369 50.77050569727233))','SRID=4326;POINT (15.05929990174349 50.77035456801465)',NULL,24,NULL,'2023-11-23 10:53:15.699+01',NULL,NULL,'2024-05-16 16:00:17.52+02',NULL,NULL),
|
|
17
17
|
('korid-16','korid','16','www.korid.cz','SRID=4326;POLYGON ((15.05460215639034 50.76831686455292, 15.054778108824609 50.76827621498907, 15.054801398283878 50.768316760767966, 15.054625445734311 50.76835741036742, 15.05460215639034 50.76831686455292), (15.055025205881027 50.76835711307601, 15.055043081062772 50.768315347731786, 15.055440674880355 50.768383784379935, 15.055422800008474 50.76842554978086, 15.055025205881027 50.76835711307601), (15.055117032704732 50.76832417306977, 15.05513472865224 50.768282712238154, 15.05542327292743 50.768332241817845, 15.055405577211578 50.76837370269995, 15.055117032704732 50.76832417306977), (15.055507634795866 50.76830051924529, 15.055481502312903 50.768305122089195, 15.055417122627883 50.76815810840171, 15.055443255052502 50.76815350556426, 15.055507634795866 50.76830051924529), (15.054674623382972 50.76844698607595, 15.054674028292549 50.76840389729273, 15.054823104498281 50.76840306806651, 15.054823699723547 50.76844615684853, 15.054674623382972 50.76844698607595), (15.054751339591144 50.768526052273614, 15.054750531240463 50.768455517998724, 15.054818095506002 50.768455206076496, 15.05481890395854 50.76852574034169, 15.054751339591144 50.768526052273614), (15.054758929648006 50.76885589943716, 15.054755161765824 50.76856948287865, 15.054826914058388 50.76856910270115, 15.054830682370188 50.768855519264875, 15.054758929648006 50.76885589943716))','SRID=4326;POINT (15.05499910754953 50.76841042000099)',NULL,31,NULL,'2023-11-23 10:53:15.699+01',NULL,NULL,'2024-05-16 16:00:17.52+02',NULL,NULL);
|
|
18
|
+
|
|
19
|
+
INSERT INTO parking_tariffs_relation ("parking_id", "tariff_id", "source", "updated_at", "created_at") VALUES
|
|
20
|
+
('korid-14', 'f4de50d9-1f5f-5d76-81a6-e5e8a2aa6d44', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
21
|
+
('korid-13', 'f4de50d9-1f5f-5d76-81a6-e5e8a2aa6d44', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
22
|
+
('korid-12', '841e6854-8905-55c4-8611-a5a13fd6ef2e', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
23
|
+
('korid-10', 'b184865e-5a5e-5465-abc1-4fab6bc56a77', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
24
|
+
('korid-11', 'b184865e-5a5e-5465-abc1-4fab6bc56a77', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
25
|
+
('korid-1', 'b184865e-5a5e-5465-abc1-4fab6bc56a77', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
26
|
+
('korid-16', 'f4de50d9-1f5f-5d76-81a6-e5e8a2aa6d44', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01');
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
INSERT INTO parkings_secondary (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,
|
|
2
|
-
('osm-w_25909120','osm','w_25909120','www.openstreetmap.org',NULL,NULL,'2024-04-14 16:00:05.146+02',NULL,'SRID=4326;MULTIPOLYGON (((14.4209803 50.0771578, 14.4206164 50.0758955, 14.4206758 50.0758631, 14.4210578 50.0771809, 14.4209803 50.0771578)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-04-14 16:00:05.618+02',NULL,NULL,NULL,
|
|
3
|
-
('osm-w_478696407','osm','w_478696407','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0547052 50.768382, 15.0547016 50.7684175, 15.0548807 50.7684251, 15.0548887 50.7685957, 15.0548864 50.7687805, 15.054913 50.7688439, 15.0549597 50.7688329, 15.0549328 50.7687795, 15.0549388 50.7685901, 15.0549295 50.7683932, 15.0547052 50.768382)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,
|
|
4
|
-
('osm-r_6296601','osm','r_6296601','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0615632 50.7743541, 15.0616142 50.774286, 15.0616132 50.7742501, 15.0615815 50.7741844, 15.061317 50.7741035, 15.0611458 50.7740397, 15.0611016 50.7739728, 15.0610997 50.7739035, 15.0611189 50.7738609, 15.0611612 50.7738159, 15.0611891 50.773794, 15.061519 50.7736261, 15.0615113 50.7735908, 15.0615613 50.7735373, 15.0615055 50.7734814, 15.0614016 50.7735081, 15.0606342 50.7738803, 15.0606303 50.7739375, 15.0606319 50.7739733, 15.0606476 50.7740117, 15.0607804 50.7741029, 15.0615632 50.7743541), (15.0609102 50.7740233, 15.0608159 50.7739941, 15.0607929 50.7739807, 15.0607794 50.7739576, 15.0607852 50.7739369, 15.0608044 50.7739235, 15.0608929 50.7738882, 15.0609121 50.7738858, 15.0609314 50.7738919, 15.0609333 50.7739041, 15.0609285 50.7739284, 15.0609294 50.7739551, 15.0609342 50.7739831, 15.0609467 50.7740075, 15.0609371 50.7740208, 15.0609102 50.7740233)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,
|
|
5
|
-
('osm-w_478800278','osm','w_478800278','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0536558 50.7708997, 15.0535889 50.7709167, 15.0535525 50.7708574, 15.0534763 50.7708838, 15.0533771 50.7709081, 15.0534427 50.7710567, 15.0537156 50.7709935, 15.0536558 50.7708997)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,
|
|
6
|
-
('osm-w_841366329','osm','w_841366329','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0533697 50.7678749, 15.0533241 50.7678033, 15.053703 50.7676862, 15.0537358 50.7677291, 15.0533697 50.7678749)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,
|
|
7
|
-
('osm-w_841393012','osm','w_841393012','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0590591 50.770116, 15.0591187 50.7700948, 15.0594659 50.7704855, 15.0594064 50.7705066, 15.0590591 50.770116)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,
|
|
8
|
-
('osm-w_1213412035','osm','w_1213412035','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0528361 50.7682048, 15.0527444 50.7681149, 15.0531113 50.7679653, 15.0532449 50.7680381, 15.0528361 50.7682048)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,
|
|
9
|
-
('osm-w_669661031','osm','w_669661031','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0563851 50.7713634, 15.0566036 50.7711315, 15.0568365 50.7712142, 15.0568729 50.7712582, 15.0569077 50.7712833, 15.0567438 50.771438, 15.0567018 50.7714255, 15.0566496 50.7714826, 15.0563851 50.7713634)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,
|
|
10
|
-
('osm-w_1213412034','osm','w_1213412034','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0545649 50.7684597, 15.0548125 50.7684701, 15.0547985 50.7687434, 15.0548887 50.7689117, 15.0549518 50.7688953, 15.0549899 50.7689637, 15.0551372 50.7689443, 15.0550815 50.7686915, 15.054973 50.768691, 15.0550364 50.7684303, 15.0545696 50.768408, 15.0545649 50.7684597)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,
|
|
11
|
-
('osm-w_51788842','osm','w_51788842','www.openstreetmap.org','Papírové náměstí',NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0549525 50.7682683, 15.0553965 50.7682056, 15.0554864 50.7684209, 15.055042 50.7683923, 15.0549525 50.7682683)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,
|
|
12
|
-
('osm-w_841362302','osm','w_841362302','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0584431 50.7646708, 15.0586704 50.7646742, 15.0587898 50.7646703, 15.0588515 50.7646644, 15.0588414 50.764622, 15.0587777 50.7646279, 15.0586711 50.7646322, 15.0584451 50.7646322, 15.0584443 50.7646472, 15.0584431 50.7646708)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,
|
|
1
|
+
INSERT INTO parkings_secondary (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,valid_from,valid_to,parking_type,zone_type,centroid,"security",max_vehicle_dimensions,covered,contact,parking_policy) VALUES
|
|
2
|
+
('osm-w_25909120','osm','w_25909120','www.openstreetmap.org',NULL,NULL,'2024-04-14 16:00:05.146+02',NULL,'SRID=4326;MULTIPOLYGON (((14.4209803 50.0771578, 14.4206164 50.0758955, 14.4206758 50.0758631, 14.4210578 50.0771809, 14.4209803 50.0771578)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-04-14 16:00:05.618+02',NULL,NULL,NULL,'on_street',NULL,'SRID=4326;POINT (14.4208371 50.076522)',NULL,NULL,NULL,NULL,'commercial'),
|
|
3
|
+
('osm-w_478696407','osm','w_478696407','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0547052 50.768382, 15.0547016 50.7684175, 15.0548807 50.7684251, 15.0548887 50.7685957, 15.0548864 50.7687805, 15.054913 50.7688439, 15.0549597 50.7688329, 15.0549328 50.7687795, 15.0549388 50.7685901, 15.0549295 50.7683932, 15.0547052 50.768382)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,'surface',NULL,'SRID=4326;POINT (15.0548887 50.7685957)',NULL,NULL,NULL,'{"email":null,"phone":null,"website":"https://ke-utc.appspot.com/static/onstreet.html?shortname=LB16"}',NULL),
|
|
4
|
+
('osm-r_6296601','osm','r_6296601','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0615632 50.7743541, 15.0616142 50.774286, 15.0616132 50.7742501, 15.0615815 50.7741844, 15.061317 50.7741035, 15.0611458 50.7740397, 15.0611016 50.7739728, 15.0610997 50.7739035, 15.0611189 50.7738609, 15.0611612 50.7738159, 15.0611891 50.773794, 15.061519 50.7736261, 15.0615113 50.7735908, 15.0615613 50.7735373, 15.0615055 50.7734814, 15.0614016 50.7735081, 15.0606342 50.7738803, 15.0606303 50.7739375, 15.0606319 50.7739733, 15.0606476 50.7740117, 15.0607804 50.7741029, 15.0615632 50.7743541), (15.0609102 50.7740233, 15.0608159 50.7739941, 15.0607929 50.7739807, 15.0607794 50.7739576, 15.0607852 50.7739369, 15.0608044 50.7739235, 15.0608929 50.7738882, 15.0609121 50.7738858, 15.0609314 50.7738919, 15.0609333 50.7739041, 15.0609285 50.7739284, 15.0609294 50.7739551, 15.0609342 50.7739831, 15.0609467 50.7740075, 15.0609371 50.7740208, 15.0609102 50.7740233)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,'surface',NULL,'SRID=4326;POINT (15.0610997 50.7739035)',NULL,NULL,NULL,NULL,NULL),
|
|
5
|
+
('osm-w_478800278','osm','w_478800278','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0536558 50.7708997, 15.0535889 50.7709167, 15.0535525 50.7708574, 15.0534763 50.7708838, 15.0533771 50.7709081, 15.0534427 50.7710567, 15.0537156 50.7709935, 15.0536558 50.7708997)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,'surface',NULL,'SRID=4326;POINT (15.053546350000001 50.77095705)',NULL,NULL,NULL,NULL,'commercial'),
|
|
6
|
+
('osm-w_841366329','osm','w_841366329','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0533697 50.7678749, 15.0533241 50.7678033, 15.053703 50.7676862, 15.0537358 50.7677291, 15.0533697 50.7678749)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,'on_street',NULL,'SRID=4326;POINT (15.05352995 50.76778055)',NULL,NULL,NULL,NULL,'commercial'),
|
|
7
|
+
('osm-w_841393012','osm','w_841393012','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0590591 50.770116, 15.0591187 50.7700948, 15.0594659 50.7704855, 15.0594064 50.7705066, 15.0590591 50.770116)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,'surface',NULL,'SRID=4326;POINT (15.059262499999999 50.7703007)',NULL,NULL,NULL,NULL,NULL),
|
|
8
|
+
('osm-w_1213412035','osm','w_1213412035','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0528361 50.7682048, 15.0527444 50.7681149, 15.0531113 50.7679653, 15.0532449 50.7680381, 15.0528361 50.7682048)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,'on_street',NULL,'SRID=4326;POINT (15.052994649999999 50.768085049999996)',NULL,NULL,NULL,NULL,'commercial'),
|
|
9
|
+
('osm-w_669661031','osm','w_669661031','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0563851 50.7713634, 15.0566036 50.7711315, 15.0568365 50.7712142, 15.0568729 50.7712582, 15.0569077 50.7712833, 15.0567438 50.771438, 15.0567018 50.7714255, 15.0566496 50.7714826, 15.0563851 50.7713634)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,'surface',NULL,'SRID=4326;POINT (15.0566464 50.771307050000004)',NULL,NULL,NULL,NULL,NULL),
|
|
10
|
+
('osm-w_1213412034','osm','w_1213412034','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0545649 50.7684597, 15.0548125 50.7684701, 15.0547985 50.7687434, 15.0548887 50.7689117, 15.0549518 50.7688953, 15.0549899 50.7689637, 15.0551372 50.7689443, 15.0550815 50.7686915, 15.054973 50.768691, 15.0550364 50.7684303, 15.0545696 50.768408, 15.0545649 50.7684597)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,'on_street',NULL,'SRID=4326;POINT (15.05485105 50.76868585)',NULL,NULL,NULL,NULL,'commercial'),
|
|
11
|
+
('osm-w_51788842','osm','w_51788842','www.openstreetmap.org','Papírové náměstí',NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0549525 50.7682683, 15.0553965 50.7682056, 15.0554864 50.7684209, 15.055042 50.7683923, 15.0549525 50.7682683)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,'on_street',NULL,'SRID=4326;POINT (15.05521945 50.768313250000006)',NULL,NULL,NULL,'{"email":null,"phone":null,"website":"https://ke-utc.appspot.com/static/onstreet.html?shortname=LB16"}',NULL),
|
|
12
|
+
('osm-w_841362302','osm','w_841362302','www.openstreetmap.org',NULL,NULL,'2024-05-12 16:00:07.51+02',NULL,'SRID=4326;MULTIPOLYGON (((15.0584431 50.7646708, 15.0586704 50.7646742, 15.0587898 50.7646703, 15.0588515 50.7646644, 15.0588414 50.764622, 15.0587777 50.7646279, 15.0586711 50.7646322, 15.0584451 50.7646322, 15.0584443 50.7646472, 15.0584431 50.7646708)))',NULL,NULL,NULL,'2024-02-08 15:38:51.202+01',NULL,NULL,'2024-05-12 16:00:08.001+02',NULL,NULL,NULL,'on_street',NULL,'SRID=4326;POINT (15.0586473 50.7646481)',NULL,NULL,NULL,NULL,'commercial');
|
|
13
13
|
|
|
14
14
|
INSERT INTO parkings_location (id,"source",source_id,data_provider,"location",centroid,address,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,special_access) VALUES
|
|
15
15
|
('osm-w_25909120','osm','w_25909120','www.openstreetmap.org','SRID=4326;MULTIPOLYGON (((14.4209803 50.0771578, 14.4206164 50.0758955, 14.4206758 50.0758631, 14.4210578 50.0771809, 14.4209803 50.0771578)))','SRID=4326;POINT (14.4208371 50.076522)',NULL,20,NULL,'2024-02-08 15:38:56.961+01',NULL,NULL,'2024-04-14 16:00:14.02+02',NULL,NULL),
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
INSERT INTO parking_machines (id,"source",code,"type","location",valid_from,
|
|
2
|
-
('osm-n_7770679009','osm',NULL,'payment_machine','SRID=4326;POINT (14.4626206 50.0963113)','2024-06-12 11:17:52.422+02',
|
|
3
|
-
('osm-n_7770679011', 'osm', NULL, 'payment_machine', 'SRID=4326;POINT (14.4672076 50.0946081)'::public.geometry, '2024-04-08 12:23:44.693',
|
|
4
|
-
('tsk_v2-a0e25b4f-83b4-4990-ad29-85f2636da799','tsk_v2','8000069','info_box','SRID=4326;POINT (14.463211568160052 50.09726448399468)','2023-03-27 14:22:55.37+02','
|
|
5
|
-
('tsk_v2-cbacd85a-9257-4cb1-bc24-4d251e293cd6','tsk_v2','8000068','payment_machine','SRID=4326;POINT (14.463479479257808 50.09713673615595)','2023-03-27 14:22:55.37+02','
|
|
6
|
-
('tsk_v2-ed44bcaa-3efb-411d-867e-51c22c094af0','tsk_v2','8000034','payment_machine','SRID=4326;POINT (14.462620643288227 50.096311253724274)','2023-03-27 14:22:55.37+02','
|
|
7
|
-
('tsk_v2-fb7f8377-ad5d-4583-b420-f2039022a776','tsk_v2','8000035','payment_machine','SRID=4326;POINT (14.464719680196637 50.0969080143518)','2023-04-19 18:13:06.277+02','
|
|
8
|
-
|
|
9
|
-
INSERT INTO "parking_machines" (id,"source",code,"type","location",valid_from,
|
|
10
|
-
('tsk_v2-4521afac-66db-4680-abc5-0006837d977a','tsk_v2','10000088','info_box','SRID=4326;POINT (14.509560372775391 50.08336146182989)','2023-03-27 16:22:55.370',
|
|
11
|
-
|
|
12
|
-
INSERT INTO "parking_machines" (id,"source",code,"type","location",valid_from,
|
|
13
|
-
('korid-praha','korid','10000088','info_box','SRID=4326;POINT (14.464719680196637 50.0969080143518)','2023-03-27 16:22:55.370',
|
|
14
|
-
('korid-brno','korid','10000088','info_box','SRID=4326;POINT (16.599509 49.1759116)','2023-03-27 16:22:55.370',
|
|
1
|
+
INSERT INTO parking_machines (id,"source",code,"type","location",valid_from,created_at,created_by,updated_at,updated_by,source_id) VALUES
|
|
2
|
+
('osm-n_7770679009','osm',NULL,'payment_machine','SRID=4326;POINT (14.4626206 50.0963113)','2024-06-12 11:17:52.422+02','2024-06-12 11:17:55.331+02',NULL,'2024-06-12 11:17:55.331+02',NULL,'n_7770679009'),
|
|
3
|
+
('osm-n_7770679011', 'osm', NULL, 'payment_machine', 'SRID=4326;POINT (14.4672076 50.0946081)'::public.geometry, '2024-04-08 12:23:44.693', '2024-04-08 12:23:44.839', NULL, '2024-06-09 16:10:01.618', NULL, 'n_7770679011'),
|
|
4
|
+
('tsk_v2-a0e25b4f-83b4-4990-ad29-85f2636da799','tsk_v2','8000069','info_box','SRID=4326;POINT (14.463211568160052 50.09726448399468)','2023-03-27 14:22:55.37+02','2024-06-12 11:17:55.046+02',NULL,'2024-06-12 11:17:55.046+02',NULL,'a0e25b4f-83b4-4990-ad29-85f2636da799'),
|
|
5
|
+
('tsk_v2-cbacd85a-9257-4cb1-bc24-4d251e293cd6','tsk_v2','8000068','payment_machine','SRID=4326;POINT (14.463479479257808 50.09713673615595)','2023-03-27 14:22:55.37+02','2024-06-12 11:17:55.046+02',NULL,'2024-06-12 11:17:55.046+02',NULL,'cbacd85a-9257-4cb1-bc24-4d251e293cd6'),
|
|
6
|
+
('tsk_v2-ed44bcaa-3efb-411d-867e-51c22c094af0','tsk_v2','8000034','payment_machine','SRID=4326;POINT (14.462620643288227 50.096311253724274)','2023-03-27 14:22:55.37+02','2024-06-12 11:17:55.046+02',NULL,'2024-06-12 11:17:55.046+02',NULL,'ed44bcaa-3efb-411d-867e-51c22c094af0'),
|
|
7
|
+
('tsk_v2-fb7f8377-ad5d-4583-b420-f2039022a776','tsk_v2','8000035','payment_machine','SRID=4326;POINT (14.464719680196637 50.0969080143518)','2023-04-19 18:13:06.277+02','2024-06-12 11:17:55.046+02',NULL,'2024-06-12 11:17:55.046+02',NULL,'fb7f8377-ad5d-4583-b420-f2039022a776');
|
|
8
|
+
|
|
9
|
+
INSERT INTO "parking_machines" (id,"source",code,"type","location",valid_from, source_id) VALUES
|
|
10
|
+
('tsk_v2-4521afac-66db-4680-abc5-0006837d977a','tsk_v2','10000088','info_box','SRID=4326;POINT (14.509560372775391 50.08336146182989)','2023-03-27 16:22:55.370', '4521afac-66db-4680-abc5-0006837d977a');
|
|
11
|
+
|
|
12
|
+
INSERT INTO "parking_machines" (id,"source",code,"type","location",valid_from, source_id) VALUES
|
|
13
|
+
('korid-praha','korid','10000088','info_box','SRID=4326;POINT (14.464719680196637 50.0969080143518)','2023-03-27 16:22:55.370', 'korid-praha'),
|
|
14
|
+
('korid-brno','korid','10000088','info_box','SRID=4326;POINT (16.599509 49.1759116)','2023-03-27 16:22:55.370', 'korid-brno');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
INSERT INTO parking_tariffs_relation ("parking_id", "tariff_id", "source", "updated_at", "created_at") VALUES
|
|
18
|
+
('tsk_v2-a0e25b4f-83b4-4990-ad29-85f2636da799', '3c2178d7-f3c6-4e5d-bbf8-89e9c9af9ee0', 'tsk_v2', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
19
|
+
('tsk_v2-cbacd85a-9257-4cb1-bc24-4d251e293cd6', '3c2178d7-f3c6-4e5d-bbf8-89e9c9af9ee0', 'tsk_v2', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
20
|
+
('tsk_v2-ed44bcaa-3efb-411d-867e-51c22c094af0', 'b51b71ad-87ac-41e5-b2ce-a92a66ad45a3', 'tsk_v2', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
21
|
+
('tsk_v2-fb7f8377-ad5d-4583-b420-f2039022a776', '3c2178d7-f3c6-4e5d-bbf8-89e9c9af9ee0', 'tsk_v2', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
22
|
+
('tsk_v2-4521afac-66db-4680-abc5-0006837d977a', 'bdd68c37-2462-4825-befa-1eeab518dfbd', 'tsk_v2', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
23
|
+
('korid-praha', 'bdd68c37-2462-4825-befa-1eeab518dfbd', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01'),
|
|
24
|
+
('korid-brno', 'bdd68c37-2462-4825-befa-1eeab518dfbd', 'korid', '2025-03-28 11:00:00.000+01', '2025-03-28 11:00:00.000+01');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
INSERT INTO parkings (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,
|
|
2
|
-
('pmdp-pmdp_001','pmdp','pmdp_001','manual','Parkovací dům Rychtářka',NULL,'2024-07-08 08:50:01.593+02',NULL,'SRID=4326;POLYGON ((13.3804006 49.7501638, 13.3802544 49.7498325, 13.3804147 49.7498033, 13.3804332 49.7497999, 13.3804487 49.7497971, 13.3813665 49.7496298, 13.3814128 49.7497355, 13.3814221 49.7497341, 13.3814381 49.7497707, 13.3814897 49.7497616, 13.3815738 49.7499517, 13.3812636 49.7500078, 13.3804436 49.750156, 13.3804006 49.7501638))',NULL,NULL,NULL,'2024-07-08 08:50:01.594+02',NULL,NULL,'2024-07-08 08:50:01.594+02',NULL,NULL,NULL,
|
|
3
|
-
('pmdp-pmdp_002','pmdp','pmdp_002','manual','Parkovací dům Nové divadlo',NULL,'2024-07-08 08:50:01.593+02',NULL,'SRID=4326;POLYGON ((13.3726268 49.7498881, 13.3726043 49.7496604, 13.3735115 49.7495817, 13.3735396 49.7498409, 13.3726268 49.7498881))',NULL,NULL,NULL,'2024-07-08 08:50:01.594+02',NULL,NULL,'2024-07-08 08:50:01.594+02',NULL,NULL,NULL,
|
|
1
|
+
INSERT INTO parkings (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,valid_from,valid_to,parking_type,zone_type,centroid,"security",max_vehicle_dimensions,covered,contact,parking_policy) VALUES
|
|
2
|
+
('pmdp-pmdp_001','pmdp','pmdp_001','manual','Parkovací dům Rychtářka',NULL,'2024-07-08 08:50:01.593+02',NULL,'SRID=4326;POLYGON ((13.3804006 49.7501638, 13.3802544 49.7498325, 13.3804147 49.7498033, 13.3804332 49.7497999, 13.3804487 49.7497971, 13.3813665 49.7496298, 13.3814128 49.7497355, 13.3814221 49.7497341, 13.3814381 49.7497707, 13.3814897 49.7497616, 13.3815738 49.7499517, 13.3812636 49.7500078, 13.3804436 49.750156, 13.3804006 49.7501638))',NULL,NULL,NULL,'2024-07-08 08:50:01.594+02',NULL,NULL,'2024-07-08 08:50:01.594+02',NULL,NULL,NULL,'multi_storey',NULL,'SRID=4326;POINT (13.3809141 49.7498968)',true,NULL,true,NULL,'commercial'),
|
|
3
|
+
('pmdp-pmdp_002','pmdp','pmdp_002','manual','Parkovací dům Nové divadlo',NULL,'2024-07-08 08:50:01.593+02',NULL,'SRID=4326;POLYGON ((13.3726268 49.7498881, 13.3726043 49.7496604, 13.3735115 49.7495817, 13.3735396 49.7498409, 13.3726268 49.7498881))',NULL,NULL,NULL,'2024-07-08 08:50:01.594+02',NULL,NULL,'2024-07-08 08:50:01.594+02',NULL,NULL,NULL,'multi_storey',NULL,'SRID=4326;POINT (13.37307195 49.7497349)',true,NULL,true,NULL,'commercial');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
INSERT INTO parkings_secondary (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,
|
|
2
|
-
('osm-w_28161149','osm','w_28161149','www.openstreetmap.org',NULL,NULL,'2024-09-08 16:00:09.371+02',NULL,'SRID=4326;MULTIPOLYGON (((14.4475389 50.100533, 14.4475305 50.1004522, 14.4475252 50.1003825, 14.4494002 50.100328, 14.4494082 50.100544, 14.4484037 50.1005766, 14.4483993 50.1005134, 14.4483498 50.1005145, 14.4475389 50.100533)))',NULL,NULL,NULL,'2024-04-30 16:37:42.099+02',NULL,NULL,'2024-09-08 16:00:10.035+02',NULL,NULL,NULL,
|
|
1
|
+
INSERT INTO parkings_secondary (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,valid_from,valid_to,parking_type,zone_type,centroid,"security",max_vehicle_dimensions,covered,contact,parking_policy) VALUES
|
|
2
|
+
('osm-w_28161149','osm','w_28161149','www.openstreetmap.org',NULL,NULL,'2024-09-08 16:00:09.371+02',NULL,'SRID=4326;MULTIPOLYGON (((14.4475389 50.100533, 14.4475305 50.1004522, 14.4475252 50.1003825, 14.4494002 50.100328, 14.4494082 50.100544, 14.4484037 50.1005766, 14.4483993 50.1005134, 14.4483498 50.1005145, 14.4475389 50.100533)))',NULL,NULL,NULL,'2024-04-30 16:37:42.099+02',NULL,NULL,'2024-09-08 16:00:10.035+02',NULL,NULL,NULL,'surface',NULL,'SRID=4326;POINT (14.4484667 50.1004523)',false,NULL,NULL,NULL,'commercial');
|
|
3
3
|
|
|
4
4
|
INSERT INTO parkings_location (id,"source",source_id,data_provider,"location",centroid,address,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,special_access) VALUES
|
|
5
5
|
('osm-w_28161149','osm','w_28161149','www.openstreetmap.org','SRID=4326;MULTIPOLYGON (((14.4475389 50.100533, 14.4475305 50.1004522, 14.4475252 50.1003825, 14.4494002 50.100328, 14.4494082 50.100544, 14.4484037 50.1005766, 14.4483993 50.1005134, 14.4483498 50.1005145, 14.4475389 50.100533)))','SRID=4326;POINT (14.4484667 50.1004523)',NULL,60,NULL,'2024-04-30 16:37:51.074+02',NULL,NULL,'2024-09-08 16:00:41.645+02',NULL,NULL);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
INSERT INTO parkings (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,
|
|
2
|
-
('greencenter-1219','greencenter','1219','manual','Parkovací dům Čelákovice',NULL,'2025-03-12 15:53:42.572',NULL,'SRID=4326;POLYGON ((14.7535131 50.1576745, 14.753227 50.1572388, 14.7535063 50.1571635, 14.7537924 50.1575993, 14.7535131 50.1576745))'::public.geometry,NULL,97,NULL,'2025-03-12 15:54:01.063',NULL,NULL,'2025-03-12 15:54:01.063',NULL,NULL,NULL,
|
|
1
|
+
INSERT INTO parkings (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,valid_from,valid_to,parking_type,zone_type,centroid,"security",max_vehicle_dimensions,covered,contact,parking_policy,address_updated_at,active) VALUES
|
|
2
|
+
('greencenter-1219','greencenter','1219','manual','Parkovací dům Čelákovice',NULL,'2025-03-12 15:53:42.572',NULL,'SRID=4326;POLYGON ((14.7535131 50.1576745, 14.753227 50.1572388, 14.7535063 50.1571635, 14.7537924 50.1575993, 14.7535131 50.1576745))'::public.geometry,NULL,97,NULL,'2025-03-12 15:54:01.063',NULL,NULL,'2025-03-12 15:54:01.063',NULL,NULL,NULL,'multi_storey',NULL,'SRID=4326;POINT (14.7535097 50.157419000000004)'::public.geometry,false,NULL,true,NULL,'commercial',NULL,true);
|
|
@@ -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', '20250328122412-tariff-ids-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', '20250328122412-tariff-ids-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
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
DROP VIEW IF EXISTS v_parkings_filtered;
|
|
2
2
|
|
|
3
|
-
ALTER TABLE
|
|
4
|
-
|
|
3
|
+
ALTER TABLE parkings_secondary NO INHERIT parkings;
|
|
4
|
+
ALTER TABLE parkings DROP COLUMN "area";
|
|
5
|
+
ALTER TABLE parkings_secondary DROP COLUMN "area";
|
|
6
|
+
ALTER TABLE parkings_secondary INHERIT parkings;
|
|
5
7
|
|
|
6
8
|
CREATE or REPLACE view v_parkings_filtered as
|
|
7
9
|
with parkings_loc as (
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
DROP VIEW IF EXISTS v_parkings_filtered;
|
|
2
2
|
|
|
3
|
-
ALTER TABLE
|
|
3
|
+
ALTER TABLE parkings_secondary NO INHERIT parkings;
|
|
4
|
+
ALTER TABLE parkings DROP COLUMN "address_updated_at";
|
|
5
|
+
ALTER TABLE parkings_secondary DROP COLUMN "address_updated_at";
|
|
6
|
+
ALTER TABLE parkings_secondary INHERIT parkings;
|
|
4
7
|
ALTER TABLE parkings_location DROP COLUMN address_updated_at;
|
|
5
8
|
|
|
6
9
|
CREATE or REPLACE view v_parkings_filtered as
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
DROP VIEW v_parkings_filtered;
|
|
2
2
|
|
|
3
|
+
ALTER TABLE parkings_secondary NO INHERIT parkings;
|
|
3
4
|
ALTER TABLE parkings DROP COLUMN "active";
|
|
5
|
+
ALTER TABLE parkings_secondary DROP COLUMN "active";
|
|
6
|
+
ALTER TABLE parkings_secondary INHERIT parkings;
|
|
4
7
|
|
|
5
8
|
CREATE view v_parkings_filtered as
|
|
6
9
|
with parkings_loc as (
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
ALTER TABLE parkings_secondary NO INHERIT parkings;
|
|
2
|
+
ALTER TABLE parkings ADD COLUMN "tariff_id" VARCHAR(50) NULL;
|
|
3
|
+
ALTER TABLE parkings_secondary ADD COLUMN "tariff_id" VARCHAR(50) NULL;
|
|
4
|
+
ALTER TABLE parkings_secondary INHERIT parkings;
|
|
5
|
+
ALTER TABLE parking_machines ADD COLUMN "tariff_id" VARCHAR(255) NULL;
|
|
6
|
+
|
|
7
|
+
UPDATE parkings SET tariff_id = ppt.tariff_id
|
|
8
|
+
FROM parking_tariffs_relation ppt
|
|
9
|
+
WHERE parkings.id = ppt.parking_id;
|
|
10
|
+
|
|
11
|
+
UPDATE parking_machines SET tariff_id = ppt.tariff_id
|
|
12
|
+
FROM parking_tariffs_relation ppt
|
|
13
|
+
WHERE parking_machines.id = ppt.parking_id;
|
|
14
|
+
|
|
15
|
+
DROP TABLE parking_tariffs_relation;
|
|
16
|
+
|
|
17
|
+
DROP VIEW v_parkings_filtered;
|
|
18
|
+
CREATE VIEW v_parkings_filtered AS
|
|
19
|
+
WITH parkings_loc AS (
|
|
20
|
+
SELECT
|
|
21
|
+
p.id AS id,
|
|
22
|
+
pl.sanitized_locations AS location
|
|
23
|
+
FROM
|
|
24
|
+
ONLY parkings p
|
|
25
|
+
INNER JOIN parkings_location pl
|
|
26
|
+
ON p.source = pl.source AND p.source_id = pl.source_id
|
|
27
|
+
WHERE
|
|
28
|
+
p.source IN (
|
|
29
|
+
SELECT
|
|
30
|
+
source
|
|
31
|
+
FROM
|
|
32
|
+
parking_sources ps
|
|
33
|
+
WHERE
|
|
34
|
+
ps.api_v3_allowed
|
|
35
|
+
)
|
|
36
|
+
)
|
|
37
|
+
SELECT
|
|
38
|
+
*
|
|
39
|
+
FROM
|
|
40
|
+
ONLY parkings p
|
|
41
|
+
UNION ALL
|
|
42
|
+
SELECT
|
|
43
|
+
*
|
|
44
|
+
FROM
|
|
45
|
+
ONLY parkings_secondary ps
|
|
46
|
+
WHERE
|
|
47
|
+
ps.id NOT IN (
|
|
48
|
+
SELECT
|
|
49
|
+
DISTINCT ps.id
|
|
50
|
+
FROM
|
|
51
|
+
parkings_loc plo
|
|
52
|
+
INNER JOIN parkings_secondary ps
|
|
53
|
+
ON ST_Intersects(plo.location, ps.sanitized_location)
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
drop view v_parking_machines_filtered;
|
|
57
|
+
create view v_parking_machines_filtered as
|
|
58
|
+
with parking_machines_primary as (
|
|
59
|
+
select * from parking_machines where source != 'osm'
|
|
60
|
+
), parking_machines_secondary as (
|
|
61
|
+
select * from parking_machines where source = 'osm'
|
|
62
|
+
)
|
|
63
|
+
select * from parking_machines_primary p1
|
|
64
|
+
union all
|
|
65
|
+
select * from parking_machines_secondary p2
|
|
66
|
+
where p2.id not in (
|
|
67
|
+
select distinct p2.id
|
|
68
|
+
from parking_machines_primary p1
|
|
69
|
+
inner join parking_machines_secondary p2 ON ST_Distance(p1.location::geography, p2.location::geography) < 15
|
|
70
|
+
);
|