2023-08-09 23:10:45 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# get the updated geojson
|
2023-10-12 15:45:31 +02:00
|
|
|
# personnaliser les scripts:
|
|
|
|
# aire Essonne: id 3600007401
|
|
|
|
# aire IDF: id 3600008649
|
|
|
|
# aire FR: id 3602202162
|
|
|
|
|
|
|
|
|
2023-08-11 22:50:59 +02:00
|
|
|
## IRVE data
|
2023-10-12 16:06:56 +02:00
|
|
|
#cd ../etalab_data/irve_bornes_recharge
|
2023-10-12 15:45:31 +02:00
|
|
|
|
2023-10-12 16:06:56 +02:00
|
|
|
wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -O "latest.json"
|
2024-10-03 15:14:18 +02:00
|
|
|
|
|
|
|
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"
|
2024-10-07 16:19:13 +02:00
|
|
|
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"
|
2023-10-23 16:17:59 +02:00
|
|
|
wget https://www.data.gouv.fr/fr/datasets/r/8d9398ae-3037-48b2-be19-412c24561fbb -O "latest.csv"
|
|
|
|
#wget https://github.com/BastienGauthier/clean_french_irve/blob/main/data/df_irve_etalab_cleaned.csv -O "clean_french_irve.csv"
|
2023-10-12 16:06:56 +02:00
|
|
|
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"
|
2023-10-12 17:06:06 +02:00
|
|
|
|
2023-10-12 15:45:31 +02:00
|
|
|
rm website-data.log
|
2024-09-26 12:15:24 +02:00
|
|
|
echo " - déplacement des datasets des IRVE dans le dossier etalab_data/irve_bornes_recharge"
|
2024-10-03 15:14:18 +02:00
|
|
|
mv "geojson?lang=fr" ../etalab_data/cyclabilité/issy_les_mx_cyclabilité.json
|
2024-10-07 16:19:13 +02:00
|
|
|
mv "rouen_parking_velos.json" ../etalab_data/cyclabilité/rouen_parking_velos.json
|
2023-10-12 16:06:56 +02:00
|
|
|
mv latest.json ../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/
|
2024-09-26 12:15:24 +02:00
|
|
|
echo "- OK"
|
|
|
|
echo "- récupérer les données présentes dans osm"
|
2023-10-12 17:06:06 +02:00
|
|
|
|
|
|
|
cd data_other
|
|
|
|
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"
|
|
|
|
cd ..
|
2023-08-11 18:41:32 +02:00
|
|
|
|
2024-09-26 12:15:24 +02:00
|
|
|
echo "- refresh de la data OK"
|