Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7713863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:58:46+00:00 2026-06-01T01:58:46+00:00

I am using your api in my application for several functionalities namely, — Get

  • 0

I am using your api in my application for several functionalities namely,
— Get directions to a destination
— Get distances to several locations
— Receive location addresses by locating with markers on the map

Application summary (Local-Deals-Now)

The application is a free application to allow local businesses located in Australia, to publish offers/deals related to their business. A user can create a business account (free of charge) and give the location of their business (using google maps api) and add offers/deals to the system by dates and times. Public users/consumers can then view these offers (Or search by distance, location, date, keywords etc:-…. The distance to the offers from the current user location is calculated using distancematrix api).

The application stated above is currently in its development stages and can be accessed via http://www.chuli.fclhosting.com/ . The problem faced was when using the distance matrix APIs to calculate distances to the business from the current logged in user location. I am using the API on the server side as follows

$curl = curl_init();
        $uri = "http://maps.googleapis.com/maps/api/distancematrix/json?origins=".$originString."&destinations=".$destinationsString."&mode=driving&language&sensor=false";
        die($uri);
        $options = array(
                CURLOPT_URL => $uri,
                CURLOPT_HTTPHEADER => array(),
                CURLOPT_COOKIE => '',
                CURLOPT_RETURNTRANSFER => true
        );
        curl_setopt_array($curl, $options);
        $responseBody = curl_exec($curl);
        $responseHeaders = curl_getinfo($curl);
        $data = $responseBody;
        $responseContentType = $responseHeaders['content_type'];

        if ((strpos($responseContentType, 'json') !== false) || (substr(html_entity_decode(trim($data)), 0, 1) == "{")) {
            $jsonData = json_decode($data, true);
            if (!is_null($jsonData)) {
                $data =$jsonData;
            }
        }

         for ($i = 0; $i < count($data['origin_addresses']); $i++) {
            for ($j = 0; $j < count($data['destination_addresses']); $j++) {

                $from = $data['origin_addresses'][$i];
                $to = $data['destination_addresses'][$j];
                if($data['rows'][$i]['elements'][$j]['status']=="OK" && $data['rows'][$i]['elements'][$j]['distance']['value']<= ($distance*1000)) {
                    $businessDistanceArray[$businesses[$j]->getId()] = $data['rows'][$i]['elements'][$j]['distance']['text'];
                } else {
                    $businessDistanceArray[$businesses[$j]->getId()] = sfConfig::get('app_offer_not_applicable');
                }

            }
        }

Since recently i have started receiving a warning/error stating OVER_QUERY_LIMIT. After googling on the problem (reference : https://developers.google.com/maps/documentation/javascript/usage) i have grasped that , the above problem occurs either if
–the request limit per day exceeds 25 000 map loads
OR
–by sending too many requests per second

The application as to my knowledge doe not fulfill either one of the above requirements but, still received the warning. Please let me know what i could do regarding this problem in order to overcome this error

Do i have to purchase a business license
OR
Since currently the application is a non profitable one should i apply for a Google Earth Outeach Grant
OR
Just continue without any changes

Here is a sample request sent:

http://maps.google.com/maps/api/distancematrix/json?origins=-25.198526444487587,133.20029780312507&destinations=-33.767636351789754,147.41606950000005|-33.905755787445024,151.15402221679688|-32.02195365825273,115.90862329062497|-37.79805567326585,145.01495173583987|-36.8839206402564,144.20859858437507|-31.362071510290537,117.42054612812501|-23.609959,143.72078599999998|-37.819317,145.12404889999993|-37.8186394,145.12360620000004|-37.816506,145.11867699999993|-37.815524,145.12131499999998|-30.708111,134.56642599999998&mode=driving&language&sensor=false

Please look into the info given above. Your feedback would thoroughly appreciated by us

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:58:47+00:00Added an answer on June 1, 2026 at 1:58 am

    There are two different limits like Dr.Molle says. You exceeded the daily limit which allows 2500 elements to be queried in a 24 hour period of time. When this happens you’ll get continuous OVER_QUERY_LIMIT errors until that 24 hour time window expires and your quota refreshes.

    The other limit to be on the lookout for is the short term limit of 100 elements every 10 seconds. When you exceed this limit you’ll experience the OVER_QUERY_LIMIT error for a few seconds (i.e. until the 10 second window is up) and then you’ll be able to use the service again.

    If this is a user-facing application that loads the Google Maps JavaScript API and performs these distance matrix queries as a result of some user action the JavaScript Distance Matrix Service is definitely worth exploring. Limits from the JavaScript application are distributed among your website users, not the back-end server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a library out there that will get you your approximate location using
Is there a way to detect if Facebook deletes your application using their API?
When you're passing variables through your site using GET requests, do you validate (regular
When communicating concurrency conflicts to your application layer, is there an alternative to using
I'm attempting to build an application using the Salesforce API (with custom PatronManager objects)
Using the API call notifications.sendEmail you can send an email to a application user
I want to connect to a my facebook application using the facebook java api
Recently I have developed an automation application using WatiN API, in .NET Framework 3.5,
May i achieve that server side application (using android bluetooth API)connect to particular client
I'm about to code my first API for my codeigniter application (Using the popular

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.