Adds delay between queries in geocoding script

parent d663090e
......@@ -117,6 +117,9 @@ if ( $fp !== FALSE ) { // if the file exists and is readable
$output[] = '"'.$fp_csv[0].'","'.$fp_csv[1].'","'.$fp_csv[2].'","'.$fp_csv[3].'","'.$fp_csv[4].'","'.$lat.'","'.$lon.'"'.PHP_EOL;
// delay between queries to avoid being blocked
sleep(3);
}
fclose($fp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment