summaryrefslogtreecommitdiff
path: root/scripts/geojson/fetch_stations.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/geojson/fetch_stations.sh')
-rwxr-xr-xscripts/geojson/fetch_stations.sh10
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/geojson/fetch_stations.sh b/scripts/geojson/fetch_stations.sh
deleted file mode 100755
index 8b76428..0000000
--- a/scripts/geojson/fetch_stations.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-json=`curl 'https://wiki.linux-forks.de/mediawiki/api.php?action=query&format=json&list=categorymembers&cmtitle=Category:Stations&cmlimit=1000' 2>/dev/null`
-cities=`echo "$json" | json_reformat | sed -n 's/.*"title":\s*"\([^"]*\).*/\1/p' | tr ' ' '_' | tr '\n' ' '`
-
-echo "["
-for city in $cities; do
- ./fetch_single.sh "$city"
-done
-echo "{}]"