CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Question about Google Geocoding limits
Pages: [1]

Author Topic: Question about Google Geocoding limits  (Read 2200 times)

reperry

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 2
Question about Google Geocoding limits
August 07, 2012, 02:29:43 pm
We're using the geocoding functionality of Civi with our client sites. They have anywhere from 1k to 170k contacts. We would like to use the geocoding functionality but have learned that Google limits the total numbers being geocoded to "prevent abuse" in one go.

Can anyone shed light on any of the following questions:
  • Does the Address Geocoder job select addresses without long and lat?
  • Does it have logic to throttle the attempts to avoid hitting the limits?
  • What does it do when it gets a number of rejects in a row? Does it stop?
  • Is there anything built in to Civi to keep limits from being exceeded?
  • Anyone know if it's the whole domain or the subdomain? Our users all access CiviCRM at the same domain but have different subdomains.

Here's an excerpt about Google limits (from here https://developers.google.com/maps/documentation/geocoding/): "Use of the Google Geocoding API is subject to a query limit of 2,500 geolocation requests per day. (User of Google Maps API for Business may perform up to 100,000 requests per day.) This limit is enforced to prevent abuse and/or repurposing of the Geocoding API, and this limit may be changed in the future without notice. Additionally, we enforce a request rate limit to prevent abuse of the service. If you exceed the 24-hour limit or otherwise abuse the service, the Geocoding API may stop working for you temporarily. If you continue to exceed this limit, your access to the Geocoding API may be blocked.

Note: the Geocoding API may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions."

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Question about Google Geocoding limits
August 09, 2012, 11:02:18 pm
There is no throttling per se, but you can set the start id and stop id number each time you run the automated script.  This would allow you, in theory, to run the geocoding for 2000 contacts a day, no more.

See this (older) documentation here:
http://wiki.civicrm.org/confluence/display/CRMDOC40/Batch+Geocoding+Script

Try CiviTeacher: the online video tutorial CiviCRM learning library.

reperry

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 2
Re: Question about Google Geocoding limits
August 14, 2012, 05:48:04 pm
Thanks for the response, Stoob.

Also wondering if the geocoder knows to not keep looking at addresses that are PO Boxes, or if it starts with the same list every time it tries and doesn't know to ignore them. Seems like we need something parallel to the bounce type and resulting "hold" checkbox for emails so we could use the 2.5k request limit efficiently.

Thanks for your help anyway.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Question about Google Geocoding limits
August 15, 2012, 01:18:51 pm

might want to consider using a geocoder without limits (yahoo or openstreet map) rather than increasing the complexity of the geocoding process :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

The Next Wave

  • I post occasionally
  • **
  • Posts: 111
  • Karma: -9
  • I'm just here to change the world.
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress 3.8.1
  • MySQL version: 5.1.72-cll
  • PHP version: 5.4.25
Re: Question about Google Geocoding limits
July 04, 2013, 06:30:08 pm
Yahoo shut the service down in 2011
http://developer.yahoo.com/maps/simple/
We are shutting down this service on September 13, 2011. We suggest using maps from our partner Nokia. Please visit developer.here.net for more information.

So- why is it still an option in 2013 in the code Donald?

I'm trying to geocode 100,000 contacts- and finding the documentation severely lacking.
As well as a method for not over burdening Google.
OpenMaps supposedly has no limits- but it isn't an option as a geocoding provider- only google and yahoo which is defunct.

and- does setting throttling to a figure higher than 1 help?

The Next Wave

  • I post occasionally
  • **
  • Posts: 111
  • Karma: -9
  • I'm just here to change the world.
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress 3.8.1
  • MySQL version: 5.1.72-cll
  • PHP version: 5.4.25
Re: Question about Google Geocoding limits
July 08, 2013, 07:25:12 am
Not being smart enough to craft code to access some of the OpenStreets map options- or to fake my IP or change it- etc.
The best option for doing batch geocoding seems to be http://smartystreets.com/pricing
Reasonably priced.
The only problem we're having is exporting the file- keeps timing out.
We're exporting by civi ID- since this is how the batch geocoder seems to run- and we've already managed to get Google to do 10K
starting at CiviID 10,001 and up to 100,000 we'll export civi ID- street address, city state and zip and then import the lat long from a return file.

If anyone knows another option for bulk geocoding batch geocoding- we'd like to hear.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Question about Google Geocoding limits

This forum was archived on 2017-11-26.