title: Why do I receive OVER_QUERY_LIMIT answer of my first request?
body: <p>I'm using the following code to get coordinates of a city, based on a request made by an Android App to my server.:</p>
  
  <pre><code>function getGPSLocation($reqLocation) {
  
      $url = "http://maps.googleapis.com/maps/api/geocode/json?address=" . $reqLocation . "&amp;sensor=false";
      $attempt = 0;
  
      $this-&gt;log($url, 'debug' );
  
      $location = [
          'lat' =&gt; 0.0,
          'lng' =&gt; 0.0
      ];
  
      while ($attempt &lt; 3) {
          $timeout = 5;
          $ch = curl_init($url);
  
          curl_setopt($ch, CURLOPT_URL, $url);
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
          curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  
          $content = curl_exec($ch);
          $resultHttpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  
          curl_close($ch);
  
          if ($resultHttpCode == '200') {
              $result = json_decode($content);
  
              if ($result-&gt;status == 'OVER_QUERY_LIMIT') {
  
                  $this-&gt;log($result-&gt;status, 'debug' );
  
                  sleep(2);
                  $attempt ++;
  
              } else {
  
                  /*
                   * TODO: Store the result to prevent other similar request later.
                   */
                  if ($result != null) {
                      $location = $result-&gt;results[0]-&gt;geometry-&gt;location;
                  }
                  break;
              }
          }
      }
      return $location;
  
  }
  </code></pre>
  
  <p>This code perfectly works on my local server but I get the OVER_QUERY_LIMIT error on any request when performed from my online server.</p>
  
  <p>The Google doc (<a href="https://developers.google.com/maps/documentation/business/articles/usage_limits" rel="nofollow">https://developers.google.com/maps/documentation/business/articles/usage_limits</a>), doesn't tell me anything supposed to explain this behaviour.</p>
  
  <p>Any idea?</p>