Im having a hard time figuring out why my variables ${coor1} and ${coor2} is not populated when used inside this curl
The curl itself works with static coordinates, but not when used with the variables, could anyone please point me in the right direction, thanks in advance :)
coor1=55.860734
coor2=9.808663
stored_address=$(
curl -s "http://maps.googleapis.com/maps/api/geocode/json?latlng=${coor1},${coor2}&sensor=false" |
grep -B 1 "route" |
awk -F'"' '/short_name/ {print $4}')
echo "stored address = ${stored_address}"