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) »
  • geocoding not working
Pages: [1]

Author Topic: geocoding not working  (Read 1286 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
geocoding not working
June 26, 2012, 12:19:58 pm
When I save a contact record, the geocoding is not working. There is no error message, but the latitude and longitude do not get filled in.   What/where should I investigate?
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: geocoding not working
June 27, 2012, 12:23:43 am
I am assuming you have the key for the Google API configured. Are you sure this is the right key?

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: geocoding not working
June 27, 2012, 09:32:57 pm
I am using CiviCRM 4.1.2, which uses GoogleMaps API v3 which no longer requires a key. (Anyhow, there is no longer a spot in the CiviCRM admin area to configure a Google key)
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: geocoding not working
June 28, 2012, 03:19:09 am
CiviCRM 3.2.3

I'm a major release behind but I do know Google does not require the API key now. Just the same, maybe the field should still be there. They might start requiring it again.

Do the logs give you any clue?

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: geocoding not working
June 28, 2012, 04:09:49 am
I just gave this a try on the demo site demo.civicrm.org. It geocoded my address accurately.

GregoryHeller

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 3
Re: geocoding not working
July 23, 2012, 01:16:02 pm
ccrm v3.4.7 does not allow you to save the form without entering a key. So if the key is no longer required, it is not possible to remove it.  I am having a problem whereby clicking on the "map" icon next to a contact address loads a map momentarily, and then the map disappears and the browser (google chrome in this case) gives the following error:

Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v2 on this site. If you are the owner of this application, you can learn about obtaining a valid key here: http://code.google.com/apis/maps/documentation/javascript/v2/introduction.html#Obtaining_Key

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: geocoding not working
July 24, 2012, 04:34:29 pm
I figured out the problem  - My server's IP address had exceeded the Google quota established for number of requests.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: geocoding not working
July 24, 2012, 06:21:21 pm

4.2 explicitly traps this error message, lets the user know and aborts the 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

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: geocoding not working
July 24, 2012, 09:51:49 pm
I assume you mean the 2500 call limit. Which script does this check?

GregoryHeller

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 3
Re: geocoding not working
July 25, 2012, 10:46:04 am
so what is the best method of geocoding and mapping contacts now? (in 3.4 or 4.2) if google is not viable?

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: geocoding not working
July 25, 2012, 04:24:01 pm
I haven't looked at the code so not sure how CiviCRM is handling errors returned from Google but there is no reason not to use Google for Geocoding as long as you stay within Google's terms of service. In Sarah's case, it looks like she exceeded the 2500/day limit for her IP address. This error could also occur if you are geocoding a batch of data and you exceed the maximum rate that Google enforces.

The error code for exceeding the 2500 limit and exceeding the maximum rate is the same so it's hard to determine exactly what happened. These are really two different exceptions but Google sends the same error code for both, unfortunately.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • geocoding not working

This forum was archived on 2017-11-26.