Fix pbf discovery

This commit is contained in:
2026-06-26 02:11:47 +02:00
parent ef97b26f07
commit 75464e896c
+1 -1
View File
@@ -214,7 +214,7 @@ generate_region() {
mkdir -p "./data/osm/$(system_path "${PATH_ARG%//*}")"
wget "$(
curl -s https://download.geofabrik.de/index-v1-nogeom.json |
jq -r --arg pid "${PATH_ARG##*//}" --arg parent "$(awk -F/ '{print $(NF-1)}' <<< "$PATH_ARG")" '
jq -r --arg pid "${PATH_ARG##*//}" --arg parent "$(awk -F/ '{print $(NF-1)}' <<< "$(system_path "${PATH_ARG}")")" '
.. | objects
| select(.id? == $pid and .parent? == $parent)
| .urls.pbf