Location testing on mobile apps with Google's API

I was testing the location functionality of mobile application using Google's APIs a few months ago. There was an issue while I was searching for locations and they were not being returned at random times throughout the day, even though I was searching with valid information. In order to solve this issue, there was a mobile web app available to search for locations as well. I created a searching loop utilizing Selenium to search for a location repeatedly.

// This was ported from memory so it might not be 100% accurate
// This is not the most efficient way of doing this and I don't approve my own code for this, but was a quick way to uncover the underlying issue
public static void Main(string[] args)  
{
   static IWebDriver driver = new FirefoxDriver();
   while(count < 10000)
   {
      try
      {
         driver.Navigate().GoToUrl("***********.com");
         driver.FindElement(By.Id("Zip")).SendKeys("55416");
         driver.FindElement(By.Id("Submit")).Click();
         driver.FindElement(By.CssSelector("#results tr"));
         numOfPass++;
      }
      catch(Exception e)
      {
         numOfFails++;
         MyFileWriter.Write(DateTime.Now);
      }
      numOfTotal++;
   }
}

If no locations were returned, it would log the time to a text file. After 8 hours of letting the application run, there were 10000 searches executed. About 1500 of those tests failed. After working with the IT staff, it turns out that the configuration was pointed to google.com for the API URL instead of the maps.googleapis.com. Google was able to redirect the API request most of the time, but failed randomly throughout the day.