up datasets
This commit is contained in:
parent
15b4aedb05
commit
26ba31d274
751615
latest.json
751615
latest.json
File diff suppressed because it is too large
Load Diff
@ -15,6 +15,10 @@ echo " - mapping du fichier IRVE publié par Etalab "
|
||||
ts-node convert_to_osm_tags.ts --engine=true --source="etalab_data/irve_bornes_recharge/latest.json" --outname="_irve-latest-etalab"
|
||||
geojson2osm "$PWD/output/my_converted_data_set__irve-latest-etalab.json" > "$PWD/osm_output/bornes-irve-filetered_latest.osm"
|
||||
|
||||
# convert existing data
|
||||
geojson2osm "$PWD/data_other/irve_osm_latest.geojson" > "$PWD/osm_output/osm-existing-bornes-irve.osm"
|
||||
|
||||
|
||||
echo " - mapping des analyses Osmose sur l'item 8411 (charging_station)"
|
||||
ts-node convert_to_osm_tags.ts --osmose=true --engine=true --source="etalab_data/irve_bornes_recharge/osmose-item-irve-8411-intégrables.json" --outname="_irve-latest-osmose"
|
||||
geojson2osm "$PWD/output/my_converted_data_set__irve-latest-osmose.json" > "osm_output/my_converted_data_set__irve-latest-osmose.osm"
|
||||
|
@ -1,13 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# get the updated geojson
|
||||
overpass_website="https://overpass-api.de/api/interpreter"
|
||||
# personnaliser les scripts:
|
||||
# aire Essonne: id 3600007401
|
||||
# aire IDF: id 3600008649
|
||||
# aire FR: id 3602202162
|
||||
|
||||
output_file_name='irve_osm_latest'
|
||||
|
||||
## IRVE data
|
||||
#cd ../etalab_data/irve_bornes_recharge
|
||||
@ -15,7 +13,7 @@ output_file_name='irve_osm_latest'
|
||||
wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -O "latest.json"
|
||||
wget https://github.com/BastienGauthier/clean_french_irve/blob/main/data/df_irve_etalab_cleaned.csv -O "clean_french_irve.csv"
|
||||
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"
|
||||
#mv "issues.geojson?full=true" osmose-item-irve-8411-intégrables.geojson
|
||||
|
||||
rm website-data.log
|
||||
|
||||
mv latest.json ../etalab_data/irve_bornes_recharge/
|
||||
@ -23,6 +21,9 @@ mv clean_french_irve.csv ../etalab_data/irve_bornes_recharge/
|
||||
mv osmose-item-irve-8411-intégrables.json ../etalab_data/irve_bornes_recharge/
|
||||
|
||||
echo "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"
|
||||
|
||||
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 ..
|
||||
|
||||
echo "refresh de la data OK"
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user