Needs review
Project:
OpenLayers Proximity
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2013 at 13:30 UTC
Updated:
14 Aug 2014 at 16:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jpstrikesback commentedAlas, this means you have reached the daily limit of 2500 queries, there is some talk in #1462098: Google Maps Geocode Limit? of allowing client side queries which would sidestep this issue nicely.
Comment #2
sansui commentedI see today the same error: Exception: Google API returned bad status.\nStatus: OVER_QUERY_LIMIT in geocoder_google()
The thing is, this is on a private development site, with a small handful of content with geocoded locations, and a view that only I have been accessing (and very little, at that). There's no way I've reached the limit....
Comment #3
urlM commentedI've been running into this issue as well and know we haven't been hitting the 2,500 limit by human traffic. Could spam bots be constantly submitting the form which pings Google's Geocoder each time? Is there a way to implement zip code / address validation before submitting the views exposed form (search proximity)? I've tried adding a Honeypot field (http://drupal.org/project/honeypot) to prevent the spam, but am still running into the same issue. It seems that the form still hits Google's Geocoder even with Honeypot disallowing the form submission. I've been using the Openlayers Locator feature here: http://drupal.org/project/ol_locator
Comment #3.0
urlM commentedrev2
Comment #4
jide commentedAfter investigating the issue, I finally found out what is causing this.
Each form submission of a views exposed form with a proximity filter hit the API 4 times :
// Validate locationin openlayers_proximity_handler_filter.inc, line 300.?circle_op=<&circle%5Bvalue%5D=100&circle%5Blocation%5D=toulouse, it works.A temporary solution would be to manually create a from to submit the values and build the URL. A real solution would be to differentiate how the exposed form part is built for the page display and the Openlayers data display.
And voilà how I divided # of hits by 4.
Comment #5
jide commentedTO fix this, we can use a static cache. Here is a patch.
Comment #6
SeppeD commentedHi,
I had the same problem of the Google api limit. This is because my sites are hosted on a shared server (one.com and versio.nl).
I solved it by using a proxy.
change line 35 of /sites/all/modules/geocoder/plugins/geocoder_handler/google.inc :
When using a different proxy, I encountered the problem that we need to save cookies.
Comment #7
jide commentedBumping to critical, since the module isn't usable once the limit is reached, and to give attention.
Comment #8
jpstrikesback commentedIf someone else can RTBC that patch I'll commit it (with a whitespace fix).
Comment #9
spy70 commented@SeppeD #6
Soooooooooooooooooooooooooooooo much thank you!!!
You are my hero :)
I try your workaround and it works perfectly.
I was searching a solution for several weeks.
As for the others and for you, my site is hosted on shared server (OVH)
I wish you a greaaaaat day!
Many thanks again.