summaryrefslogtreecommitdiff
path: root/scripts/geojson/fetch_cities.sh
diff options
context:
space:
mode:
authorMarkus Koch <markus@notsyncing.net>2020-04-27 17:37:12 +0200
committerMarkus Koch <markus@notsyncing.net>2020-04-27 17:38:19 +0200
commit05238dc5aec332970a082b84d174240c4262e95d (patch)
treee1afc96079cad81c4a8dd75eb01cec7a1eadd137 /scripts/geojson/fetch_cities.sh
parentc7c4975a571d1974d3807755a064d8489b60ffa4 (diff)
downloadlifomapserver-05238dc5aec332970a082b84d174240c4262e95d.tar.gz
lifomapserver-05238dc5aec332970a082b84d174240c4262e95d.tar.bz2
lifomapserver-05238dc5aec332970a082b84d174240c4262e95d.zip
Add categories for markers
This commit obsoletes the many fetch scripts and combines them into a single script, creating a single json, but with category information.
Diffstat (limited to 'scripts/geojson/fetch_cities.sh')
-rwxr-xr-xscripts/geojson/fetch_cities.sh10
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/geojson/fetch_cities.sh b/scripts/geojson/fetch_cities.sh
deleted file mode 100755
index 16e81c1..0000000
--- a/scripts/geojson/fetch_cities.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:City&cmlimit=100'`
-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 "{}]"