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) <noreply@anthropic.com>
This commit is contained in:
parent
56cd6b1ccc
commit
836e0a2b6a
1 changed files with 20 additions and 9 deletions
29
.github/workflows/cd-brouter.yml
vendored
29
.github/workflows/cd-brouter.yml
vendored
|
|
@ -51,15 +51,26 @@ jobs:
|
||||||
script: |
|
script: |
|
||||||
cd /opt/trails-cool
|
cd /opt/trails-cool
|
||||||
|
|
||||||
# Download BRouter segments if missing
|
# Download BRouter segments for Europe (W10-E40, N35-N70)
|
||||||
if [ ! -d /opt/trails-cool/segments ] || [ -z "$(ls /opt/trails-cool/segments/*.rd5 2>/dev/null)" ]; then
|
mkdir -p /opt/trails-cool/segments
|
||||||
mkdir -p /opt/trails-cool/segments
|
EUROPE_TILES="
|
||||||
echo "Downloading Germany BRouter segments..."
|
W10_N50 W10_N55 W10_N60 W10_N65
|
||||||
for tile in E5_N45 E5_N50 E10_N45 E10_N50; do
|
W5_N35 W5_N40 W5_N45 W5_N50 W5_N55 W5_N60 W5_N65
|
||||||
[ -f "/opt/trails-cool/segments/${tile}.rd5" ] || \
|
E0_N35 E0_N40 E0_N45 E0_N50 E0_N55 E0_N60 E0_N65 E0_N70
|
||||||
wget -q "https://brouter.de/brouter/segments4/${tile}.rd5" -O "/opt/trails-cool/segments/${tile}.rd5"
|
E5_N35 E5_N40 E5_N45 E5_N50 E5_N55 E5_N60 E5_N65 E5_N70
|
||||||
done
|
E10_N35 E10_N40 E10_N45 E10_N50 E10_N55 E10_N60 E10_N65 E10_N70
|
||||||
fi
|
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 pull ghcr.io/trails-cool/brouter:latest
|
||||||
docker compose up -d brouter
|
docker compose up -d brouter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue