title: Google distances using C# - Over-Query-Limit
body: <p>I am trying to fetch google distances in <strong>gridview RowDataBound</strong> with a <strong>force sleep of 1000ms</strong>,Nothing helping,Am getting correct distance for the first query,ie the first row of the gridview, all others i get 'Over-Query-Limit' for <em>content</em> variable ,I want to know three things:</p>
  
  <ul>
  <li>Is there any solution for this situation. </li>
  <li>Is google limiting queries per day OR </li>
  <li>Is google limiting queries per second  ?</li>
  </ul>
  
   <pre class="lang-cs prettyprint-override"><code>public int getDistance(string origin, string destination)
      {
          System.Threading.Thread.Sleep(1000);
          int distance = 0;
          string url = "http://maps.googleapis.com/maps/api/directions/json?origin=" + origin + "&amp;destination=" + destination + "&amp;sensor=false";
          string requesturl = url;
          string content = fileGetContents(requesturl);
          JObject o = JObject.Parse(content);
          try
          {
              distance = (int)o.SelectToken("routes[0].legs[0].distance.value");
              return distance;
          }
          catch
          {
              return distance;
          }
          return distance;
      }
  </code></pre>