mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-06-20 01:34:42 +02:00
réinit
This commit is contained in:
commit
996524bc6d
107 changed files with 1295536 additions and 0 deletions
56
update_scripts/get_datasets.sh
Executable file
56
update_scripts/get_datasets.sh
Executable file
|
@ -0,0 +1,56 @@
|
|||
#!/bin/bash
|
||||
|
||||
# get the updated geojson
|
||||
# personnaliser les scripts:
|
||||
# aire Essonne: id 3600007401
|
||||
# aire IDF: id 3600008649
|
||||
# aire FR: id 3602202162
|
||||
|
||||
##################
|
||||
## IRVE data
|
||||
##################
|
||||
echo "- récupérer les infos de bornes de recharge électrique"
|
||||
wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -O "latest.json"
|
||||
wget https://www.data.gouv.fr/fr/datasets/r/8d9398ae-3037-48b2-be19-412c24561fbb -O "latest.csv"
|
||||
# wget https://www.data.gouv.fr/fr/datasets/r/b9731c6f-c0d7-422e-9e1c-19edd51687ce -O "finess_idf.json"
|
||||
|
||||
echo "- OK IRVE"
|
||||
echo "- récupérer les données présentes dans OpenStreetMap"
|
||||
curl --header "Content-Type: plain/text" --data @content_irve_geojson.txt --trace-ascii website-data.log "https://overpass-api.de/api/interpreter" > "irve_osm_latest.geojson"
|
||||
|
||||
echo "- récupérer les données présentes dans Osmose"
|
||||
wget "https://osmose.openstreetmap.fr/api/0.3/issues.geojson?full=true&status=open&item=8410&limit=20000" -O "osmose-item-irve-8411-intégrables.json"
|
||||
echo "- OK Osmose"
|
||||
|
||||
##################
|
||||
# moving datasets to the source folder etalab_data
|
||||
##################
|
||||
echo " - déplacement des datasets des IRVE dans le dossier etalab_data/irve_bornes_recharge"
|
||||
mv latest.json ../etalab_data/irve_bornes_recharge/
|
||||
#mv finess_idf.json ../etalab_data/finess/
|
||||
mv irve_osm_latest.geojson ../etalab_data/irve_bornes_recharge/
|
||||
mv clean_french_irve.csv ../etalab_data/irve_bornes_recharge/
|
||||
mv osmose-item-irve-8411-intégrables.json ../etalab_data/irve_bornes_recharge/
|
||||
|
||||
|
||||
##################
|
||||
# other sources of data should be placed in data_other folder
|
||||
##################
|
||||
echo "- récupérer les données de cyclabilité d'Issy"
|
||||
wget "https://data.issy.com/api/explore/v2.1/catalog/datasets/parkings-2-roues/exports/geojson?lang=fr&timezone=Europe%2FBerlin" -O "issy_les_mx_cyclabilité.json"
|
||||
echo "- récupérer les données des arbres d'Issy"
|
||||
wget "https://data.issy.com/api/explore/v2.1/catalog/datasets/arbres-remarquables-issy-les-moulineaux/exports/geojson?lang=fr&timezone=Europe%2FBerlin" -O "issy_les_mx_arbres.json"
|
||||
|
||||
echo "- récupérer les données de cyclabilité de Rouen"
|
||||
wget "https://data.metropole-rouen-normandie.fr/api/explore/v2.1/catalog/datasets/liste-des-stationnements-cyclables-metropole-rouen-normandie/exports/geojson?lang=fr&timezone=Europe%2FBerlin" -O "rouen_parking_velos.json"
|
||||
|
||||
mv "issy_les_mx_arbres.json" ../data_other/arbres/issy_les_mx_arbres.json
|
||||
mv "geojson?lang=fr" ../data_other/cyclabilité/issy_les_mx_cyclabilité.json
|
||||
mv "rouen_parking_velos.json" ../data_other/cyclabilité/rouen_parking_velos.json
|
||||
|
||||
|
||||
# clean logs and finish
|
||||
rm website-data.log
|
||||
cd ..
|
||||
|
||||
echo "- refresh de la data OK"
|
Loading…
Add table
Add a link
Reference in a new issue