Created
September 2, 2016 02:36
-
-
Save darkblue-b/b3274e2ffc188829e747f1c7a4c0c395 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
CITY="HOLLYWOOD_CA" | |
#34.10256/-118.36805 | |
## W,S,E,N ? | |
## (south,west,north,east) from the Overpass wiki page | |
## BONN_DE | |
##BBOX="7.097,50.6999,7.1778,50.7721" | |
## HOLLYWOOD_CA | |
BBOX="-118.368,34.090,-118.317,34.115 " | |
XAPI_URL="http://www.overpass-api.de/api/xapi_meta?" | |
# needed for Overpass server: | |
XAPI_EXTRA="[@meta]" | |
wget --progress=dot:mega -O "$CITY.osm" \ | |
"${XAPI_URL}*[bbox=$BBOX]$XAPI_EXTRA" | |
if [ $? -ne 0 ] ; then | |
echo "ERROR getting osm data" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment