all case scenario

This commit is contained in:
fred 2023-12-30 18:55:11 +01:00
parent 455870d33a
commit 2082197e66
1 changed files with 4 additions and 6 deletions

View File

@ -60,18 +60,16 @@ LON=$(makecoord $LON)
echo "REQUEST $LAT / $LON / $DEG" echo "REQUEST $LAT / $LON / $DEG"
## REGION LEVEL ## REGION & ABOVE LEVEL
if [[ $DEG == "0.1" ]]; then if [[ $DEG == "0.1" || $DEG == "1" ]]; then
# /ipfs/QmYNpzG3qi6GzciP6D6NsLgv5KwcsKtYJ5EZt7s23ToaNj/map_render.html?southWestLat=43.60&southWestLon=1.40&deg=0.1
LAT=$(echo ${LAT} | cut -d '.' -f 1) LAT=$(echo ${LAT} | cut -d '.' -f 1)
LON=$(echo ${LON} | cut -d '.' -f 1) LON=$(echo ${LON} | cut -d '.' -f 1)
REGION="_${LAT}_${LON}" ZONE="_${LAT}_${LON}"
echo "REGION = ${REGION}" echo "ZONE = ${REGION}"
fi fi
## SECTOR LEVEL ## SECTOR LEVEL
if [[ $DEG == "0.01" ]]; then if [[ $DEG == "0.01" ]]; then
# /ipfs/QmYNpzG3qi6GzciP6D6NsLgv5KwcsKtYJ5EZt7s23ToaNj/map_render.html?southWestLat=43.60&southWestLon=1.40&deg=0.1
SECLAT="${LAT::-1}" SECLAT="${LAT::-1}"
SECLON="${LON::-1}" SECLON="${LON::-1}"
SECTOR="_${SECLAT}_${SECLON}" SECTOR="_${SECLAT}_${SECLON}"