#!/bin/sh

CITY="AUCKLAND_NZ"
## 36°50′57″S 174°45′55″E (approx: -36.849167, 174.765278)
## Centered on FOSS4G show location: -36.853567, 174.766353
BBOX="174.75, -36.87, 174.78, -36.84"
XAPI_URL="http://www.overpass-api.de/api/xapi?"
# 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
