Skip to content

Instantly share code, notes, and snippets.

@darkblue-b
Created September 2, 2016 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkblue-b/b3274e2ffc188829e747f1c7a4c0c395 to your computer and use it in GitHub Desktop.
Save darkblue-b/b3274e2ffc188829e747f1c7a4c0c395 to your computer and use it in GitHub Desktop.
#!/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