#!/bin/bash # scripts/06_build_offline_packages.sh # Register a region in the offline_regions table. # Actual tile/routing/POI files are served directly from their data directories; # this script just records metadata so the API can list available regions. set -euo pipefail PG_CONN="${PG_CONN:-postgres://maps:maps@postgres:5432/maps}" REGION_ID="${REGION_ID:-amsterdam}" REGION_NAME="${REGION_NAME:-Amsterdam}" BBOX="${BBOX:-4.7288,52.2783,5.0796,52.4311}" # minLon,minLat,maxLon,maxLat IFS=',' read -r MIN_LON MIN_LAT MAX_LON MAX_LAT <<< "$BBOX" echo "=== Registering offline region: $REGION_NAME ($REGION_ID) ===" psql "$PG_CONN" <