Compare commits
2 Commits
ef2fdc7ff2
...
441c753cb9
Author | SHA1 | Date | |
---|---|---|---|
441c753cb9 | |||
576d0c29c9 |
1
data_other/.~lock.irve_osm_2023-08-30.csv#
Normal file
1
data_other/.~lock.irve_osm_2023-08-30.csv#
Normal file
@ -0,0 +1 @@
|
||||
,cipherbliss,nova,30.08.2023 11:37,file:///home/cipherbliss/.config/libreoffice/4;
|
312
data_other/irve_osm_2023-08-30.csv
Normal file
312
data_other/irve_osm_2023-08-30.csv
Normal file
@ -0,0 +1,312 @@
|
||||
@lon @lat id capacity name ref phone contact
|
||||
2.3683352 48.5964012 6
|
||||
2.3617372 48.6009634 6
|
||||
2.3698269 48.5963165
|
||||
2.3032943 48.5857740 2
|
||||
2.1692756 48.6763008 1
|
||||
2.1693149 48.6762930
|
||||
2.1693502 48.6762878 1
|
||||
2.1693868 48.6762818
|
||||
2.4073981 48.7222611
|
||||
2.2121031 48.7128466 2
|
||||
2.4043129 48.7226522
|
||||
2.4644037 48.7089190 4
|
||||
2.3793214 48.7133979 2
|
||||
2.2532257 48.7049203
|
||||
2.2380191 48.7363754 2
|
||||
2.1761994 48.7085045 2
|
||||
2.1534732 48.7245787 2
|
||||
2.2522823 48.7408913 7
|
||||
2.2691000 48.7458623 7
|
||||
2.1759050 48.7101913 4
|
||||
2.1843088 48.6979993 2
|
||||
2.2666772 48.7465227 4
|
||||
2.1755861 48.7066818 2
|
||||
2.1847045 48.6838689 1
|
||||
2.2153147 48.7319101 1
|
||||
2.1949200 48.6847449 1
|
||||
2.1686941 48.6782448 4
|
||||
2.2722360 48.6478613 1
|
||||
2.2602590 48.7329827 1
|
||||
2.1955748 48.6846753
|
||||
2.1765407 48.7106119 5
|
||||
2.2667571 48.7229987
|
||||
2.2804514 48.7258039 2
|
||||
2.2404864 48.7302663 4
|
||||
2.2957430 48.6945063 2
|
||||
2.2943782 48.6949157 2
|
||||
2.2779478 48.7080341
|
||||
2.2021507 48.6841440 2
|
||||
2.2795102 48.7200517 2
|
||||
2.1481546 48.7128675 4
|
||||
2.1792867 48.6965921
|
||||
2.1637077 48.7097850 2 Joliot-Curie - Ouest 001
|
||||
2.2678959 48.5677678 2
|
||||
2.3828379 48.6893149 2 bike-energy Ladestation
|
||||
2.2624592 48.7267115 3
|
||||
2.3195022 48.6496894 4
|
||||
2.3636602 48.6754700 2
|
||||
2.1928210 48.7131341 6 Thomas Gobert - Ouest
|
||||
2.1914220 48.7031347 2
|
||||
2.1874640 48.6985820 2
|
||||
2.1455705 48.6353868 4 +33141354000
|
||||
2.1467114 48.6359923 2
|
||||
2.3764688 48.6917377 1
|
||||
2.2618123 48.6895054 2 Recharge
|
||||
2.1981503 48.7158537 1 EDF Lab Paris-Saclay
|
||||
2.1981487 48.7158469 1 EDF Lab Paris-Saclay
|
||||
2.1981406 48.7158076 1 EDF Lab Paris-Saclay
|
||||
2.1981392 48.7158012 1 EDF Lab Paris-Saclay
|
||||
2.1981338 48.7157808 1 EDF Lab Paris-Saclay
|
||||
2.1981230 48.7157352 1 EDF Lab Paris-Saclay
|
||||
2.3438175 48.6338906 2
|
||||
2.2812134 48.7255536 2
|
||||
2.1637101 48.7096736 2 Joliot-Curie - Ouest 001
|
||||
2.3631171 48.7123915 2
|
||||
2.3756874 48.6891027 1
|
||||
2.2990588 48.6054574 1
|
||||
2.1822079 48.6973212 2
|
||||
2.1789122 48.6992445 6 UPSaclay Entrée Orsay
|
||||
2.3786474 48.3428564 2
|
||||
2.2368306 48.6836510 2 +33972668001
|
||||
2.2302773 48.6426633 2 +33972668001
|
||||
2.1526786 48.7294151
|
||||
2.1248674 48.5538002 2
|
||||
2.3441973 48.6796849 1
|
||||
2.3415646 48.6788071 1
|
||||
2.3498027 48.6962637 1
|
||||
2.2722061 48.7250571 2 Borne de Rechargement
|
||||
2.0557900 48.5325058
|
||||
2.3673662 48.7171802 2
|
||||
2.2012802 48.6784405 1
|
||||
2.2012540 48.6784591 1
|
||||
2.2012279 48.6784742 1
|
||||
2.2012037 48.6784875 1
|
||||
2.2011782 48.6785039 1
|
||||
2.3058917 48.7115998
|
||||
2.4038501 48.7125681 2
|
||||
2.4038280 48.7125462 2
|
||||
2.3849535 48.6815909 2
|
||||
2.2462984 48.7147436 1
|
||||
2.1278863 48.6164533 2
|
||||
2.1278561 48.6164631 2
|
||||
2.1278112 48.6164666 2
|
||||
2.1346800 48.7010452 2
|
||||
2.2116869 48.7062905 2
|
||||
2.1733032 48.6860341 2
|
||||
2.3606429 48.7420116
|
||||
2.1615640 48.7110982 2 Potier 008
|
||||
2.1631130 48.7118676 2 Perin 006
|
||||
2.1591416 48.7116838 2 Boulevard Ouest
|
||||
2.1617742 48.7105724 2 Lapierre 003
|
||||
2.1647877 48.7104201 2 Guyot 009
|
||||
2.1756989 48.7076909 2 CNRS - LIMSI BAT 507
|
||||
2.1733010 48.7119865 6 Nicolas Appert
|
||||
2.1670193 48.7115617 4 Deck Jack Friedel 2 Ouset
|
||||
2.1660242 48.7135492 2 Route 128
|
||||
2.2016734 48.7130006 6 Vauve
|
||||
2.1981879 48.7125402 2 Thomas Gobert - Est
|
||||
2.1989295 48.7130979 2 Pacilly - Est
|
||||
2.1810969 48.6972345 4 Siège EPA Paris-Saclay
|
||||
2.1748245 48.6994819 6 UPSaclay IAS
|
||||
2.1643827 48.6990057 6 UPSaclay Entrée Bures
|
||||
2.1644283 48.7021514 4 UPSaclay STAPS
|
||||
2.1684999 48.7017513 8 UPSaclay Bât 332
|
||||
2.1738697 48.7019390 6 UPSaclay Bât 308
|
||||
2.1741566 48.7014805 6 UPSaclay Stil
|
||||
2.1771527 48.7029126 4 UPSaclay Bibliothèque Universitaire
|
||||
2.1792099 48.7020328 2 UPSaclay Bât 406 CROUS Le Tropical
|
||||
2.1323812 48.7037782 2 CNRS - Allée de la terrasse
|
||||
2.3001673 48.5798356 4
|
||||
2.1260567 48.6189175 4
|
||||
2.0884779 48.3183187 2
|
||||
2.5286327 48.6784006 2
|
||||
2.5294694 48.6784363 6
|
||||
2.2120458 48.7128487 2
|
||||
2.4147405 48.7082555
|
||||
2.1909354 48.7046938 4
|
||||
2.1373331 48.6743333 2
|
||||
2.1373702 48.6738459 5
|
||||
2.3294681 48.7390485 2
|
||||
2.3249400 48.7352831 2
|
||||
2.2614008 48.7259167 4
|
||||
2.1343827 48.6773334 2 +33972668001
|
||||
2.1715127 48.6757950
|
||||
2.1326008 48.6774491 2 +33972668001
|
||||
2.2901167 48.5327060 2
|
||||
2.2901545 48.5327433 2
|
||||
2.3051732 48.6109225
|
||||
2.0911632 48.6429266 2
|
||||
2.1706581 48.7096092 2 Joliot Curie - Est 002
|
||||
2.1709452 48.7085683 10 Polytech 028
|
||||
2.3151369 48.6741826 4
|
||||
2.1985969 48.6788536 4 Electra Les Ulis - Hôtel Mercure
|
||||
2.2705894 48.6410715 2 +33972668001
|
||||
2.3151668 48.6741942 1
|
||||
2.3150897 48.6741725 1
|
||||
2.3319440 48.6690562 1
|
||||
2.3528063 48.6747211 1
|
||||
2.3371965 48.6883894 1
|
||||
2.3504037 48.6880813 1
|
||||
2.3603654 48.6895864 1
|
||||
2.3755997 48.6840870 4
|
||||
2.3845549 48.6882489 1
|
||||
2.3685408 48.6474278 1
|
||||
2.2990179 48.6054468 1
|
||||
2.3105621 48.6099018 1
|
||||
2.3052011 48.6109242 1
|
||||
2.3075795 48.6175624 1
|
||||
2.3091164 48.6361435 1
|
||||
2.2992754 48.6347663 1
|
||||
2.2305277 48.6403389 2
|
||||
2.2325233 48.6429358 2
|
||||
2.2305250 48.6403389 2
|
||||
2.3617172 48.7298698 2
|
||||
2.2732990 48.6448488 2
|
||||
2.2428435 48.6595237 2 +33972668001
|
||||
2.2423434 48.6619306 2
|
||||
2.2325294 48.6429519 2 +33972668001
|
||||
2.1610848 48.4295763 2
|
||||
2.1610732 48.4295955 2
|
||||
2.1610473 48.4296381 2
|
||||
2.1610616 48.4296147 2
|
||||
2.2676796 48.6320841 2
|
||||
2.2899405 48.6400891
|
||||
2.2627261 48.7240484 2 Effia Charging Station
|
||||
2.1594316 48.6969033 2 +33972668001
|
||||
2.2590240 48.7301481 2 Station de recharge
|
||||
2.2697650 48.6368351 2
|
||||
2.1991228 48.6777138
|
||||
2.1993169 48.6775285
|
||||
2.4702448 48.7221273 2
|
||||
2.5354600 48.6824609 2 Power Dot - CC Val d'Yerres 2 - Boussy-Saint-Antoine
|
||||
2.1430126 48.4428015 2 Power Dot - Norauto - Etampes
|
||||
2.2778070 48.7254041 4 Power Dot - Cora - Massy
|
||||
2.2703986 48.6365905 2
|
||||
2.2775106 48.6459437 4
|
||||
2.3161988 48.6848878 2
|
||||
2.2849720 48.6353009 2
|
||||
2.2848241 48.6353296 2
|
||||
2.1744871 48.7085534
|
||||
2.1753858 48.7088476 4
|
||||
2.1725483 48.7103656
|
||||
2.1051357 48.7016808 6
|
||||
2.1943654 48.6780344 2
|
||||
2.2166741 48.6738608 2
|
||||
2.2061451 48.6887068 6
|
||||
2.1914788 48.7031361 2
|
||||
2.1719134 48.6775943 4
|
||||
2.1942662 48.6780348 18
|
||||
2.2027588 48.6825884 6
|
||||
2.2428498 48.6595378 2
|
||||
2.1235988 48.6247636 2
|
||||
2.1425700 48.7146664 2
|
||||
2.1494307 48.6352778 1
|
||||
2.2367887 48.6836784 2
|
||||
2.1594250 48.6969517 2
|
||||
2.2435713 48.7117286 2
|
||||
2.1480779 48.6366323 1
|
||||
2.2081245 48.6880849 6
|
||||
2.1376093 48.6738072 5
|
||||
2.1378648 48.6740521 2
|
||||
2.1343189 48.6772011 2
|
||||
2.1167994 48.6879654 2
|
||||
2.2298008 48.6428077 2
|
||||
2.1719509 48.6775783 4
|
||||
2.2166634 48.6738608 2
|
||||
2.2368067 48.6836666 2
|
||||
2.2627544 48.6266898 2
|
||||
1.9996108 48.3175081 2 WAAT/FRWATLFD4WWPK5 0680074537
|
||||
2.0200000 48.5300000 ccf6edd2-80ae-4131-9af8-cc81544f8a98 0426700227
|
||||
2.0179436 48.5435340 FRIENE007901 +33 1 84 88 68 00
|
||||
2.0100000 48.5300000 41fbb9fc-a0af-4524-b7f1-d1b7cddb596a 0160811222
|
||||
2.1726479 48.4270648 57150 0252072597
|
||||
2.2344480 48.7171920 FR*SOD*S*CAPS*53*1*_*_ 0972668001
|
||||
2.2592990 48.7137030 FR*SOD*S*CAPS*17*1*_*_ 0972668001
|
||||
2.2705010 48.7520640 FR*SOD*S*SIGE*307*2*_*_ 0972668001
|
||||
2.2148600 48.7546760 FR*SOD*S*SIGE*231*1*_*_ 0972668001
|
||||
2.2161180 48.7519640 FR*SOD*S*SIGE*175*1*_*_ 0972668001
|
||||
2.2076100 48.7340200 FR*SOD*S*CAPS*26*1*_*_ 0972668001
|
||||
2.2227660 48.7396050 FR*SOD*S*CAPS*10*1*_*_ 0972668001
|
||||
2.2264470 48.7415850 FR*SOD*S*CAPS*5*1*_*_ 0972668001
|
||||
1.9996108 48.3175081 A12RW4GWRR 0369246732
|
||||
2.1476940 48.3783120 789195
|
||||
2.1726385 48.4270586 57150 0252072597
|
||||
2.3036270 48.7060460 577478
|
||||
2.2941860 48.7018660 FR*SOD*S*CAPS*36*1*_*_ 0972668001
|
||||
2.3034340 48.6903350 741705
|
||||
2.2986740 48.6754150 FR*SOD*S*CAPS*19*1*_*_ 0972668001
|
||||
2.2818850 48.6724110 JUJD4UMKPZ 0369246732
|
||||
2.2687430 48.6615100 FR*SOD*S*CAPS*18*1*_*_ 0972668001
|
||||
2.2699960 48.6578870 FR*SOD*S*CAPS*20*1*_*_ 0972668001
|
||||
2.2292050 48.6901670 FRCPIE6595995
|
||||
2.2335180 48.6973810 FR*SOD*S*CAPS*42*1*_*_ 0972668001
|
||||
2.2300000 48.6900000 c8ee7876-9261-497e-9f6b-856d3bf94e3f 0680074537
|
||||
2.1065390 48.6808220 510419
|
||||
2.1706400 48.7560000 FLHFYV 0369246732
|
||||
2.3179710 48.6741450 741702
|
||||
2.4961249 48.6786524 0986877186
|
||||
2.4774860 48.5910260 LFKAACIEEF 0369246732
|
||||
2.3247740 48.7005350 FR*SOD*S*SIGE*280*1*_*_ 0972668001
|
||||
2.4313420 48.6815080 Stations-e
|
||||
2.3704440 48.6896680 690500
|
||||
2.4214820 48.6642240 694034
|
||||
2.4245679 48.6848221 Stations-e
|
||||
2.3896850 48.6758940 FRCPIE6628885
|
||||
2.4300482 48.6820448 Stations-e
|
||||
2.3682531 48.6333049
|
||||
2.3340154 48.6320058 BBYPZLGJJL 0369246732
|
||||
2.4077141 48.6851705 Stations-e
|
||||
2.3783290 48.6816270 SBPX6OZUXS 0369246732
|
||||
2.4432220 48.5952810 FR*HPC*PNF058968 01 41 35 40 00
|
||||
2.3542058 48.6213611 EZQEWY01JS 0369246732
|
||||
2.4116900 48.6808000 741645
|
||||
2.3454960 48.7054500 HTHA8SVPIE 0369246732
|
||||
2.3393360 48.7059070 FR*SOD*S*SIGE*279*1*_*_ 0972668001
|
||||
2.4534820 48.6157850 LLIX5ZKSM1M3T2 0369246732
|
||||
2.4333950 48.6874880 MYDGOOZS6R 0369246732
|
||||
2.4038420 48.6814842 Stations-e
|
||||
2.4422200 48.5945900 FR*HPC*PNF006369 01 41 35 40 00
|
||||
2.1326458 48.6774792 2
|
||||
2.1718956 48.6775480 4
|
||||
2.1719254 48.6775463 4
|
||||
2.1167987 48.6879649 2
|
||||
2.2627121 48.6267029 2
|
||||
2.2297955 48.5681451 7
|
||||
2.3251582 48.6334010 TACW2241521S0178 0681475113
|
||||
2.2452130 48.5971320 880221
|
||||
2.3653440 48.7325870 FR*SOD*S*OAZS*222*3*_*_ 0972668001
|
||||
2.2500000 48.7000000 aceaf454-19e2-4da1-96dd-d7fdc44a72d1 0179356309
|
||||
2.2269330 48.6997450 FR*SOD*S*CAPS*27*1*_*_ 0972668001
|
||||
2.1684170 48.7306140 FR*SOD*S*CAPS*25*1*_*_ 0972668001
|
||||
2.2912330 48.7004480 FR*SOD*S*CAPS*50*1*_*_ 0972668001
|
||||
2.2925400 48.6967360 FR*SOD*S*CAPS*45*1*_*_ 0972668001
|
||||
2.2931650 48.6769640 FR*SOD*S*CAPS*1*1*_*_ 0972668001
|
||||
2.2798810 48.6655010 FR*SOD*S*CAPS*28*1*_*_ 0972668001
|
||||
2.2764950 48.6645890 FR*SOD*S*CAPS*34*1*_*_ 0972668001
|
||||
2.1500000 48.5300000 EVC 11750472 0184604870
|
||||
2.3247040 48.7346600 FR*SOD*S*SIGE*60*1*_*_ 0972668001
|
||||
2.2578710 48.7354090 FR*SOD*S*CAPS*38*1*_*_ 0972668001
|
||||
2.2923260 48.7323200 FR*SOD*S*CAPS*43*1*_*_ 0972668001
|
||||
2.2833760 48.7305870 FR*SOD*S*CAPS*47*1*_*_ 0972668001
|
||||
2.2732650 48.7342800 FR*SOD*S*CAPS*46*1*_*_ 0972668001
|
||||
2.2645820 48.7432280 FR*SOD*S*SIGE*375*4*_*_ 0972668001
|
||||
2.2954140 48.7372250 FR*SOD*S*CAPS*12*1*_*_ 0972668001
|
||||
2.2322240 48.7176920 FR*SOD*S*CAPS*54*1*_*_ 0972668001
|
||||
2.2740770 48.7083090 FR*SOD*S*CAPS*51*1*_*_ 0972668001
|
||||
2.2741640 48.7111140 FR*SOD*S*CAPS*49*1*_*_ 0972668001
|
||||
2.2196740 48.7557340 FR*SOD*S*SIGE*324*1*_*_ 0972668001
|
||||
2.2210780 48.7322310 FR*SOD*S*CAPS*24*1*_*_ 0972668001
|
||||
2.3708230 48.6907630 0 970 830 213
|
||||
2.4077190 48.6735460 Stations-e
|
||||
2.4360230 48.6325260 FRCPIE6591165
|
||||
2.3719120 48.6224460 FRG10P91235A
|
||||
2.3778490 48.6814230 SBPX6OZUXS 0369246732
|
||||
2.5263623 48.6907791 Stations-e
|
||||
2.4481763 48.5661353 MECXL47JEY 0369246732
|
||||
2.3560608 48.6067876 MQMBBYPLTF 0369246732
|
||||
2.4270550 48.6126080 FRCPIE6758525
|
||||
2.4029310 48.6302650 ZOJVYBGVNI 0369246732
|
||||
2.3987650 48.6501830 COWK19Z19U 0369246732
|
||||
2.3355560 48.7055510 0 970 830 213
|
||||
2.1949087 48.6771318
|
|
5640
data_other/irve_osm_2023-08-30.geojson
Normal file
5640
data_other/irve_osm_2023-08-30.geojson
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
2030
etalab_data/bus/variance_opendata_stations_junglebus.csv
Normal file
2030
etalab_data/bus/variance_opendata_stations_junglebus.csv
Normal file
File diff suppressed because it is too large
Load Diff
14
etalab_data/toilettes/variance_small.csv
Normal file
14
etalab_data/toilettes/variance_small.csv
Normal file
@ -0,0 +1,14 @@
|
||||
;variance de ./etalab_data/toilettes/small.csv;généré le:;Fri Aug 18 2023 13:39:11 GMT+0200 (heure d’été d’Europe centrale);lignes du csv original:;10;fait avec make_variance_from_csv.ts de Tykayn
|
||||
;TYPE;STATUT;ADRESSE;ARRONDISSEMENT;HORAIRE;ACCES_PMR;RELAIS_BEBE;URL_FICHE_EQUIPEMENT;geo_shape_1;geo_shape_2;geo_point_2d_1;geo_point_2d_2
|
||||
;3;1;9;7;4;2;3;7;9;9;9;9
|
||||
|
||||
|
||||
;SANISETTE;;63 AVENUE DU GENERAL LECLERC;75003;24 h / 24;Oui;;;2.3164276371957278;48.82101412751667;48.82101412751667;2.3164276371957278
|
||||
;TOILETTES;;JARDIN HENRI SAUVAGE;75007;Voir fiche équipement;Non;Non;https://www.paris.fr/equipements/jardin-henri-sauvage-ex-square-amiraux-boinod-2702;2.3195679829481666;48.82896483276907;48.82896483276907;2.3195679829481666
|
||||
;WC PUBLICS PERMANENTS;;SQUARE DU TEMPLE;75012;;;Oui;https://www.paris.fr/equipements/square-du-temple-elie-wiesel-2425;2.320485389226217;48.836321683521824;48.836321683521824;2.320485389226217
|
||||
;;;JARDIN DU MOULIN DE LA POINTE;75013;6 h - 22 h;;;https://www.paris.fr/equipements/jardin-du-monument-aux-meres-francaises-2564;2.3279795895584483;48.838257002553206;48.838257002553206;2.3279795895584483
|
||||
;;;BOIS DE VINCENNES - PARC FLORAL DE PARIS - PINEDE;75014;;;;https://www.paris.fr/equipements/parc-floral-de-paris-1;2.3523880408452515;48.8409122311636;48.8409122311636;2.3523880408452515
|
||||
;;;JARDIN CATHERINE LABOURE;75015;;;;https://www.paris.fr/equipements/jardin-catherine-laboure-2465;2.356788716578511;48.851401300193594;48.851401300193594;2.356788716578511
|
||||
;;;JARDIN JAMES JOYCE;75018;;;;https://www.paris.fr/equipements/jardin-james-joyce-2560;2.3604997434830852;48.86260809408294;48.86260809408294;2.3604997434830852
|
||||
;;;Parc Rives de Seine;;;;;;2.3737508079721192;48.86428649324811;48.86428649324811;2.3737508079721192
|
||||
;;;face au 55 BOULEVARD DE VAUGIRARD;;;;;;2.4446432727101697;48.89412215800546;48.89412215800546;2.4446432727101697
|
|
2780767
latest.json
2780767
latest.json
File diff suppressed because it is too large
Load Diff
@ -18,17 +18,22 @@ let mini_arguments: any = minimist(process.argv.slice(2))
|
||||
// }
|
||||
|
||||
let csv_content = 'variance de dataset\n';
|
||||
let separator = ';';
|
||||
let separator = ',';
|
||||
let separator_fallback = ';';
|
||||
let data_variance: any = {};
|
||||
|
||||
let inputFile = 'sanisettesparis_reworked'
|
||||
let fileName = `sanisettesparis_${inputFile}.csv`;
|
||||
let inputPath = `./etalab_data/toilettes/${inputFile}.csv`
|
||||
let folder = 'toilettes'
|
||||
let inputFile = 'small.csv'
|
||||
let fileNameOutput = `variance_${inputFile}`;
|
||||
let inputPath = `./etalab_data/${folder}/${inputFile}`
|
||||
// let inputPath = './etalab_data/toilettes/small_datas.csv'
|
||||
let outputPath = 'etalab_data/toilettes'
|
||||
let outputPath = `etalab_data/${folder}`
|
||||
if (mini_arguments['source']) {
|
||||
inputPath = mini_arguments['source']
|
||||
}
|
||||
if (mini_arguments['separator']) {
|
||||
separator = mini_arguments['separator']
|
||||
}
|
||||
let columns_headings: Array<string> = [];
|
||||
let lines_count = 0;
|
||||
let longest_variance_count = 0;
|
||||
@ -37,6 +42,7 @@ let longest_variance_count = 0;
|
||||
function getColumnsFromRow(row: string) {
|
||||
let headings: any = []
|
||||
console.log('elem', row)
|
||||
|
||||
headings = row.split(separator)
|
||||
return headings
|
||||
}
|
||||
@ -65,12 +71,27 @@ fs.readFile(inputPath, function (err: any, fileData: any) {
|
||||
throw new Error(err)
|
||||
}
|
||||
console.log('line ', lines_count)
|
||||
console.log('lines.length', lines.length)
|
||||
|
||||
lines.forEach((line: any) => {
|
||||
|
||||
line = line[0]
|
||||
|
||||
if (lines_count === 0) {
|
||||
console.log('line', line)
|
||||
if(line.indexOf(separator) === -1){
|
||||
console.log('separator not found: ', separator, 'trying other separator')
|
||||
if(line.indexOf(separator_fallback) === -1){
|
||||
console.log('separator not found: ', separator_fallback)
|
||||
|
||||
throw new Error('no separator found in csv')
|
||||
|
||||
}else{
|
||||
console.log('fallback separator found: ', separator_fallback, 'now using it ')
|
||||
separator = separator_fallback
|
||||
}
|
||||
}
|
||||
|
||||
columns_headings = getColumnsFromRow(line)
|
||||
console.log('columns_headings.length', columns_headings.length)
|
||||
// console.log('columns_headings', columns_headings)
|
||||
@ -118,8 +139,7 @@ fs.readFile(inputPath, function (err: any, fileData: any) {
|
||||
console.log('longest_variance_count', longest_variance_count)
|
||||
|
||||
reorderValuesInDataVariance()
|
||||
utils.writeFile(fileName, writeCSVVariance(), outputPath)
|
||||
// console.log('data_variance', data_variance)
|
||||
utils.writeFile(fileNameOutput, writeCSVVariance(), outputPath)
|
||||
|
||||
})
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ const MappingIRVE: MappingConfigType = {
|
||||
nom_operateur: 'operator',
|
||||
telephone_operateur: {
|
||||
key_converted: 'phone',
|
||||
convert_to_phone: true, // convertit en yes ou no
|
||||
convert_to_phone: true, // conversion en format international si possible
|
||||
},
|
||||
contact_operateur: 'email', // ici, on souhaite convertir la clé contact_operateur=bidule en email=bidule
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -15,6 +15,7 @@
|
||||
"variance": "ts-node make_variance_from_csv.ts",
|
||||
"example": "ts-node convert_to_osm_tags.ts --engine=true --department=974 --source=\"./etalab_data/irve_bornes_recharge/all.json\"",
|
||||
"irve": "ts-node convert_to_osm_tags.ts --engine=true --source=\"./etalab_data/irve_bornes_recharge/all.json\"",
|
||||
"irve:up": "bash get_irve.sh && ts-node convert_to_osm_tags.ts --engine=true --source=\"./data_other/irve_osm_2023-08-30.geojson\"",
|
||||
"irve:jb": "ts-node convert_to_osm_tags.ts --engine=true --source=\"./etalab_data/irve_bornes_recharge/irve-junglebus.csv\"",
|
||||
"simple": "ts-node convert_to_osm_tags.ts",
|
||||
"chargemap": "ts-node chargemap.ts",
|
||||
|
1
update_scripts/content_irve_csv.txt
Normal file
1
update_scripts/content_irve_csv.txt
Normal file
@ -0,0 +1 @@
|
||||
[out:csv(::lon,::lat,id,capacity,name,ref,phone,contact)][timeout:25];{{geocodeArea:Essonne}}->.searchArea; (node["amenity"="charging_station"](area.searchArea);); out center;
|
1
update_scripts/content_irve_geojson.txt
Normal file
1
update_scripts/content_irve_geojson.txt
Normal file
@ -0,0 +1 @@
|
||||
[out:json][timeout:25];area(id:3600007401)->.searchArea; (node["amenity"="charging_station"](area.searchArea);); out center;
|
@ -2,9 +2,9 @@
|
||||
|
||||
# get the updated geojson
|
||||
## IRVE data
|
||||
wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -P ./etalab_data -O ./etalab_data/irve_bornes_recharge/all.json
|
||||
wget https://www.data.gouv.fr/fr/datasets/r/8d9398ae-3037-48b2-be19-412c24561fbb -P ./etalab_data -O ./etalab_data/irve_bornes_recharge/all.csv
|
||||
wget https://github.com/Jungle-Bus/ref-EU-EVSE/raw/gh-pages/opendata_stations.csv -P ./etalab_data -O ./etalab_data/irve_bornes_recharge/irve-junglebus.csv
|
||||
wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -P ./etalab_data -O ../etalab_data/irve_bornes_recharge/all.json
|
||||
wget https://www.data.gouv.fr/fr/datasets/r/8d9398ae-3037-48b2-be19-412c24561fbb -P ./etalab_data -O ../etalab_data/irve_bornes_recharge/all.csv
|
||||
wget https://github.com/Jungle-Bus/ref-EU-EVSE/raw/gh-pages/opendata_stations.csv -P ./etalab_data -O ../etalab_data/irve_bornes_recharge/irve-junglebus.csv
|
||||
# https://www.data.gouv.fr/fr/datasets/r/8d9398ae-3037-48b2-be19-412c24561fbb pour le jeu de données irve schema v2, non utilisé dans ce script
|
||||
|
||||
echo "refresh de la data"
|
11
update_scripts/get_irve.sh
Normal file
11
update_scripts/get_irve.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
echo "récupérer les bornes de recharge en Essonne"
|
||||
overpass_website="https://overpass-api.de/api/interpreter"
|
||||
|
||||
curl --header "Content-Type: plain/text" --data @content_irve_geojson.txt --trace-ascii website-data.log "$overpass_website" > ../data_other/irve_osm_2023-08-30.geojson
|
||||
curl --header "Content-Type: plain/text" --data @content_irve_csv.txt --trace-ascii website-data.log "$overpass_website" > ../data_other/irve_osm_2023-08-30.csv
|
||||
|
||||
du -sch ../data_other/irve_osm_2023-08-30.geojson
|
||||
du -sch ../data_other/irve_osm_2023-08-30.csv
|
||||
|
||||
rm website-data.log
|
10
update_scripts/query-overpass.sh
Executable file
10
update_scripts/query-overpass.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Query Overpass API (https://wiki.openstreetmap.org/wiki/Overpass_API)
|
||||
# Usage:
|
||||
# ```sh
|
||||
# echo "[out:json];(way(109849152); node(1985407312);); out;" | ./query-overpass.sh
|
||||
# ```
|
||||
|
||||
curl -d @- -X POST http://overpass-api.de/api/interpreter
|
||||
#> data_other/output_query_irve_from_overpass.json
|
Loading…
Reference in New Issue
Block a user