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) »
  • Google Maps - things to check if no mapping occurs - invalid characters in field
Pages: [1]

Author Topic: Google Maps - things to check if no mapping occurs - invalid characters in field  (Read 1364 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Google Maps - things to check if no mapping occurs - invalid characters in field
October 31, 2009, 05:28:09 pm
Fortunately I was producing maps by Region - so I knew mapping was working fine - except one Region failed to work.

If you have failures with Google Maps for 'Map Contacts' from More Actions after Advanced Search here are some suggestions.

Try the mapping with a smaller search result - if it works - there is likely to be one or more record which have mapped but which may have characters in that some part of the mapping process doesn't like.

In our case, trial and error by halving, and halving again, and halving again on the results that 'failed' narrowed it down to the culprit - which had inverted commas/quote marks in the field - ie the field read as follows - "xxxx"

dropping out the " made everything work

seems odd since it the API delivers back the GeoCode - but obviously when these fields are thrown at the 'generate map' code, it fails with the " character

Maybe this can be fixed in the code - otherwise, the above, or possibly a search " in the address fields might make you smile  ;)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Tim Homewood

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: Google Maps - things to check if no mapping occurs - invalid characters in field
February 20, 2010, 04:29:46 am
Thanks Peter, yet again I was about to post a question and I found you'd got here first.

In my case ** and A'Beckett caused problems. I'm glad to find out it's not a hidden limit on how many results can be displayed on google maps.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Google Maps - things to check if no mapping occurs - invalid characters in field
February 20, 2010, 11:22:54 am
Glad it helped - and of course even more so that others have put in the time to get the google mapping set up working at all :-)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Rob McCausland

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
    • Community Media Database
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5.2
Re: Google Maps - things to check if no mapping occurs - invalid characters in field
February 27, 2011, 04:15:05 am
I just wanted to add my thanks, too.  I had this problem yesterday - searched the forum for clues this morning, et voila!  I'd already exported my 1200 records' address & geocode fields - so I did a find: one measly quote mark - I removed it, and "Presto Change-o!"  Thanks so much!

~ Rob McCausland
Drupal 6.20, CiviCrm 3.3.5 

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Google Maps - things to check if no mapping occurs - invalid characters in field
February 27, 2011, 10:27:33 am
Good to know searching found the solution.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Google Maps - things to check if no mapping occurs - invalid characters in field

This forum was archived on 2017-11-26.