@@ 37,7 37,7 @@ main() {
echo "$QUERY" | grep -q . || err "Blank search query"
RESULT="$(
curl -Ss "${MEPO_ENDPOINT_NOMINATIM_SEARCH}?format=json&q=$QUERY" |
curl -GSs --data-urlencode "q=$QUERY" "${MEPO_ENDPOINT_NOMINATIM_SEARCH}?format=json" |
jq '.[] | "\(.display_name) \(.lat) \(.lon)" ' |
PROMPT="Pick result" mepo_ui_helper_menu.sh
)"
@@ 33,7 33,7 @@ main() {
VIEWBOX="$MEPO_TL_LON,$MEPO_TL_LAT,$MEPO_BR_LON,$MEPO_BR_LAT"
JSONRESULTS="$(
curl -Ss "${MEPO_ENDPOINT_NOMINATIM_SEARCH}?format=json&q=$QUERY&viewbox=$VIEWBOX&bounded=1&limit=50&extratags=1"
curl -GSs --data-urlencode "q=$QUERY" "${MEPO_ENDPOINT_NOMINATIM_SEARCH}?format=json&viewbox=$VIEWBOX&bounded=1&limit=50&extratags=1"
)"
PINSETUPCOMMANDS='