diff --git a/OSM/geolocator.sh b/OSM/geolocator.sh deleted file mode 100755 index 8f4f5d0..0000000 --- a/OSM/geolocator.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh - -PHPBIN="php -d error_reporting=0 "; - -if [ -f "$1" ]; then - - CSV="$1.csv"; - - echo "Address, Latitude, Longitude" > $CSV; - - while read f; do - - ADDRESS=$(echo $f) - export ADDRESS; - $PHPBIN << 'EOF' >> $CSV; - $v) { - switch ("$k") { - case "lat": - echo "$v, "; - break; - case "lon": - echo "$v"; - break; - } - } - } - - # Nominatim Usage Policy - # https://operations.osmfoundation.org/policies/nominatim/ - sleep(1); - -?> -EOF - echo >> $CSV; -done < $1 -else - echo "Usage: $0 "; -fi