reaktor2 krebsfood: get last line which is usually the json
This commit is contained in:
parent
fef385511d
commit
aa32544dd3
@ -241,8 +241,8 @@ let
|
||||
longitude=$(echo "$poi" | jq -r .longitude)
|
||||
fi
|
||||
|
||||
osm-restaurants --radius "$2" --latitude "$latitude" --longitude "$longitude" \
|
||||
| jq -r '"How about \(.tags.name) (https://www.openstreetmap.org/\(.type)/\(.id)), open \(.tags.opening_hours)?"'
|
||||
restaurant=$(osm-restaurants --radius "$2" --latitude "$latitude" --longitude "$longitude")
|
||||
printf '%s' "$restaurant" | tail -1 | jq -r '"How about \(.tags.name) (https://www.openstreetmap.org/\(.type)/\(.id)), open \(.tags.opening_hours)?"'
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user