#!/bin/bash
BASE_URL=http://www.turismovallecamonica.it
BASE_PATH=/var/www/html/api.webmapp.it/valcamonica
# POIS
BASE_POIS=it/export-pois-geojson

for i in $(seq 1 9); do
    URL=$BASE_URL/$BASE_POIS/$i
    FILE=$BASE_PATH/geojson/$BASE_POIS/$i
    wget -O $FILE $URL
done

wget -O $BASE_PATH/geojson/it/export-routes-geojson $BASE_URL/it/export-routes-geojson
wget -O $BASE_PATH/geojson/it/export-events $BASE_URL/it/export-events
wget -O $BASE_PATH/geojson/it/export-coupons $BASE_URL/it/export-coupons
