-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrated the docker based download into a download script as the comp…
…lexity is not managable otherwise
- Loading branch information
1 parent
2b11cbe
commit d686d32
Showing
3 changed files
with
50 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
|
||
cd "$(dirname "$0")" | ||
|
||
echo "-- cleanup $(dirname "$0") --" | ||
rm -rf ./data/* ./gtfs_feeds/* | ||
mkdir --parents gtfs_feeds | ||
mkdir --parents data/transit_tiles | ||
|
||
echo -- download dependencys -- | ||
if command -v apk > /dev/null 2>&1 | ||
then | ||
apk --update add --quiet wget | ||
else | ||
echo "[WARNING] skipping apk installation of wget. Please make sure it is installed" | ||
fi | ||
|
||
|
||
echo -- download geodata -- | ||
cd data || exit 1 | ||
wget "https://download.geofabrik.de/$1-latest.osm.pbf" --tries=5 --random-wait --wait=5 | ||
cd .. || exit 1 | ||
|
||
echo -- download gtfs feeds -- | ||
cd gtfs_feeds || exit 1 | ||
# aah, MVV, warum machst du so Sachen??? | ||
# TODO: look into https://www.delfi.de/de/leistungen-produkte/daten-dienste/ | ||
# TODO: look into https://www.transit.land/feeds?search=germany | ||
# TODO: look into https://github.com/transitland/transitland-atlas/pull/1268 | ||
wget --tries=5 https://www.opendata-oepnv.de/dataset/17065229-c3fd-46d7-84a9-aae55aadbf40/resource/927d0830-2a40-4702-acc6-f5716352b666/download/gtfs_mvv_mitshape_240814.zip --output-document mvv.zip --tries=5 --random-wait --wait=5 | ||
unzip -q -d mvv mvv.zip | ||
rm mvv.zip | ||
cd .. || exit 1 |