This commit is contained in:
Tykayn 2023-10-01 14:49:16 +02:00 committed by tykayn
parent f35b87dab7
commit 80e4ac0d84
4 changed files with 65140 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View File

@ -22,8 +22,8 @@ let separator = '\t';
let separator_fallback = ';'; let separator_fallback = ';';
let data_variance: any = {}; let data_variance: any = {};
let folder = 'toilettes' let folder = 'irve_bornes_recharge'
let inputFile = 'small.csv' let inputFile = 'latest.csv'
let fileNameOutput = `variance_${inputFile}`; let fileNameOutput = `variance_${inputFile}`;
let inputPath = `./etalab_data/${folder}/${inputFile}` let inputPath = `./etalab_data/${folder}/${inputFile}`
// let inputPath = './etalab_data/toilettes/small_datas.csv' // let inputPath = './etalab_data/toilettes/small_datas.csv'

View File

@ -12,7 +12,7 @@
"scripts": { "scripts": {
"start": "ts-node convert_to_osm_tags.ts --engine", "start": "ts-node convert_to_osm_tags.ts --engine",
"departments": "ts-node build_departments.ts", "departments": "ts-node build_departments.ts",
"variance": "ts-node make_variance_from_csv.ts --source=data_other/irve_latest.csv", "variance": "ts-node make_variance_from_csv.ts --source=etalab_data/irve_bornes_recharge/latest.csv",
"example": "ts-node convert_to_osm_tags.ts --engine=true --department=974 --source=\"./etalab_data/irve_bornes_recharge/all.json\"", "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": "ts-node convert_to_osm_tags.ts --engine=true --source=\"./etalab_data/irve_bornes_recharge/all.json\"",
"irve:up": "bash update_scripts/get_irve.sh", "irve:up": "bash update_scripts/get_irve.sh",

View File

@ -12,9 +12,10 @@ output_file_name='irve_osm_latest'
wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -O ../etalab_data/irve_bornes_recharge/latest.json wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -O ../etalab_data/irve_bornes_recharge/latest.json
# récupérer la version csv pour établir la variance # récupérer la version csv pour établir la variance
#irve_latest.csv #irve_latest.csv
wget https://www.data.gouv.fr/fr/datasets/r/8d9398ae-3037-48b2-be19-412c24561fbb -O ../etalab_data/irve_bornes_recharge/latest.csv
# récupérer les données présentes dans osm # récupérer les données présentes dans osm
#curl --header "Content-Type: plain/text" --data @content_irve_geojson.txt --trace-ascii website-data.log "$overpass_website" > "../data_other/$output_file_name.geojson" curl --header "Content-Type: plain/text" --data @content_irve_geojson.txt --trace-ascii website-data.log "$overpass_website" > "../data_other/$output_file_name.geojson"
# #
#du -sch ../data_other/irve_osm_2023-08-30.csv #du -sch ../data_other/irve_osm_2023-08-30.csv
# #