Skip to main content
Inspiring
April 25, 2014
Question

CFMAP - multiple markers - error: the webpage has gone over the requests limit in too short a period

  • April 25, 2014
  • 2 replies
  • 1770 views

Google Maps has a restriction on how many map markers can be requested per second.  The limit is ten per second.  I am looking for the "best Practice" on how coldfusion developers address this limitation.  I am looking to display a map of the US with 125 location markers.  Ideally I would like to cache the map for retrieval for both efficiency purposes and to avoid depletion of the total requests that Google allows per day.  Thanks in advance for any insight that you can lend.

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    April 28, 2014

    Where is it documented that you can only request 10 markers per second?  It's not unusual using the Maps API to create a map with hundreds of markers displayed simultaneously, without having to delay requests before loading them in batches of 10.

    NVL-TomAuthor
    Inspiring
    April 28, 2014

    One reference is https://developers.google.com/maps/documentation/business/articles/usage_limits#limitexceeded where a solution in Python is given to pause a loop if an OVER_QUERY_LIMIT error is received.  I agree that there are maps out there with hundreds of markers.  My mission is figuring how they are doing this.

    Participating Frequently
    April 28, 2014

    That error shouldn't be caused simply by trying to display 125 markers at once on a map.  Unless you're repeating this request a lot you shouldn't go over any usage limit.  Just loop 1..125 adding a marker each time.

    WolfShade
    Legend
    April 25, 2014

    I'm assuming that all 125 locations are being looped.  What about initially loading the page with a "processing" animated gif and a message that the information is being retrieved, while in the background you can loop through and every tenth iteration use Sleep(1000) to delay the next ten?


    Just my $0.03472 worth.

    ^_^