diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-19 17:28:41 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-19 17:28:41 +0200 |
commit | 3af49d258e027c681b0fffc3a8a180fcca9620ba (patch) | |
tree | 6621de274b1740ca0571da42aae44f8098fea6ab /scripts | |
parent | b58a02bf4a15bbb0ec18cbd1ea92094d63ffaf02 (diff) | |
download | lifomapserver-3af49d258e027c681b0fffc3a8a180fcca9620ba.tar.gz lifomapserver-3af49d258e027c681b0fffc3a8a180fcca9620ba.tar.bz2 lifomapserver-3af49d258e027c681b0fffc3a8a180fcca9620ba.zip |
scripts:streets: Add support for multiple tables
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/geojson/fetch_streets.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/geojson/fetch_streets.sh b/scripts/geojson/fetch_streets.sh index 74a58aa..345c32d 100755 --- a/scripts/geojson/fetch_streets.sh +++ b/scripts/geojson/fetch_streets.sh @@ -3,7 +3,7 @@ # WARNING: This script is not yet production ready. The slightest error in the wikipage can throw it off. Handle with care. json=`curl 'https://wiki.linux-forks.de/mediawiki/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=Maps:Streets'` -data=`echo $json | json_reformat | sed -e 's/\\\\n//g' -n -e 's/.*begin:mapdata\([^}]\+\).*/\1/p' | sed -e "s/|-|/}/g"` +data=`echo $json | json_reformat | sed -e 's/\\\\n//g' -n -e 's/begin:mapdata\([^}]\+\)/\1/gp' | sed -e "s/|-|/}/g"` echo "[" export IFS="}" |