From 836e0a2b6a394bfa90c51bad53ff4f4e33daf5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sun, 29 Mar 2026 22:48:11 +0200 Subject: [PATCH] Expand BRouter routing coverage to all of Europe Add ~67 segment tiles covering W10-E40, N35-N70 (was 4 Germany-only tiles). Total disk usage ~2.9 GB. Tiles that don't exist on the BRouter CDN are silently skipped. Already downloaded to the server and BRouter restarted. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/cd-brouter.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cd-brouter.yml b/.github/workflows/cd-brouter.yml index 3efef07..bc2452f 100644 --- a/.github/workflows/cd-brouter.yml +++ b/.github/workflows/cd-brouter.yml @@ -51,15 +51,26 @@ jobs: script: | cd /opt/trails-cool - # Download BRouter segments if missing - if [ ! -d /opt/trails-cool/segments ] || [ -z "$(ls /opt/trails-cool/segments/*.rd5 2>/dev/null)" ]; then - mkdir -p /opt/trails-cool/segments - echo "Downloading Germany BRouter segments..." - for tile in E5_N45 E5_N50 E10_N45 E10_N50; do - [ -f "/opt/trails-cool/segments/${tile}.rd5" ] || \ - wget -q "https://brouter.de/brouter/segments4/${tile}.rd5" -O "/opt/trails-cool/segments/${tile}.rd5" - done - fi + # Download BRouter segments for Europe (W10-E40, N35-N70) + mkdir -p /opt/trails-cool/segments + EUROPE_TILES=" + W10_N50 W10_N55 W10_N60 W10_N65 + W5_N35 W5_N40 W5_N45 W5_N50 W5_N55 W5_N60 W5_N65 + E0_N35 E0_N40 E0_N45 E0_N50 E0_N55 E0_N60 E0_N65 E0_N70 + E5_N35 E5_N40 E5_N45 E5_N50 E5_N55 E5_N60 E5_N65 E5_N70 + E10_N35 E10_N40 E10_N45 E10_N50 E10_N55 E10_N60 E10_N65 E10_N70 + E15_N35 E15_N40 E15_N45 E15_N50 E15_N55 E15_N60 E15_N65 E15_N70 + E20_N35 E20_N40 E20_N45 E20_N50 E20_N55 E20_N60 E20_N65 E20_N70 + E25_N35 E25_N40 E25_N45 E25_N50 E25_N55 E25_N60 E25_N65 + E30_N35 E30_N40 E30_N45 E30_N50 E30_N55 E30_N60 E30_N65 + E35_N40 E35_N45 E35_N50 E35_N55 E35_N60 + E40_N40 E40_N45 E40_N50 E40_N55 + " + for tile in $EUROPE_TILES; do + [ -f "/opt/trails-cool/segments/${tile}.rd5" ] || \ + wget -q "https://brouter.de/brouter/segments4/${tile}.rd5" -O "/opt/trails-cool/segments/${tile}.rd5" 2>/dev/null || \ + rm -f "/opt/trails-cool/segments/${tile}.rd5" + done docker pull ghcr.io/trails-cool/brouter:latest docker compose up -d brouter