diff --git a/makefile b/makefile index 175663a..dd8f203 100644 --- a/makefile +++ b/makefile @@ -18,11 +18,13 @@ get_files: echo "fichiers récupérés" irve: - bash ./update_scripts/convert_irve.sh + wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -O "latest.json" + mv latest.json etalab_data/irve_bornes_recharge/ + ts-node convert_to_osm_tags.ts --source="etalab_data/irve_bornes_recharge/latest.json" --output-file="_irve-latest-etalab.geojson" --engine-config=mappingConfigIRVE echo " DONE " echo " " - echo "you can open the IRVE converted osm file in JOSM : osm_output/bornes-irve-filetered_latest.osm " + echo "you can open the IRVE converted osm file in JOSM : output/bornes-irve-filetered_latest.osm " echo "you can open the existing IRVE referenced in OSM : osm_output/bornes-irve-filetered_latest.osm " osmose_irve: pnpm i diff --git a/update_scripts/convert_irve.sh b/update_scripts/convert_irve.sh index 80889e2..861623d 100755 --- a/update_scripts/convert_irve.sh +++ b/update_scripts/convert_irve.sh @@ -8,15 +8,12 @@ overpass_website="https://overpass-api.de/api/interpreter" output_file_name='irve_osm_latest' - echo " - mapping du fichier IRVE publié par Etalab " -ts-node convert_to_osm_tags.ts --source="etalab_data/irve_bornes_recharge/latest.json" --output-file="_irve-latest-etalab.geojson" --engine-config=mappingConfigIRVE +ts-node convert_to_osm_tags.ts --source="etalab_data/irve_bornes_recharge/latest.json" --output-file="irve-latest-etalab.geojson" --engine-config=mappingConfigIRVE echo " - mapping des analyses Osmose sur l'item 8411 (charging_station)" ts-node convert_to_osm_tags.ts --osmose=true --source="etalab_data/irve_bornes_recharge/osmose-item-irve-8411-intégrables.json" --output-file="irve-latest-osmose.geojson" --engine-config=mappingConfigIRVE echo "fichier généré: $PWD/output/converted__irve-latest-etalab.json" - - cd update_scripts