Hallo, ich versuche mich von Gmaps zu lösen und auf OSM zu wechseln.
Jetzt möchte ich ca. 5 Adressen am Tag in Lat/long umwandeln. Bei meinen Spielereien wurde ich jetzt wohl geblockt. Weil ich wohl keinen Referer mitgesendet hatte?! Das habe ich nun nachgeholt. Im Netzt finde ich meist auch diese Config zum cUrl. Demnach scheint es ja nicht ganz falsch zu sein.
Wird die Sperre in X Stunden wieder aufgehoben? Oder ist meine IP für alle Zeit blocked?
$cityclean = str_replace (" ", "%20", $_POST['lstr']);
$plz = addslashes($_POST['lplz']).",";
$url = "https://nominatim.openstreetmap.org/search/".$cityclean."%20".$plz."?format=json&addressdetails=1&limit=1&polygon_svg=1";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ($url));
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
$userAgent = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2';
curl_setopt( $ch, CURLOPT_USERAGENT, $userAgent );
curl_setopt($ch, CURLOPT_REFERER, 'http://www2.seite.de/1');
$response = curl_exec($ch);
echo "<br><br><br><br><br><br>".$response;
curl_close($ch);