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) »
  • using UpdateAddress.php to geocode after import w/ multiple addresses
Pages: [1]

Author Topic: using UpdateAddress.php to geocode after import w/ multiple addresses  (Read 1605 times)

josue

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 7
    • PTP
  • CiviCRM version: 3.4.4, 4.1.1
  • CMS version: Drupal 6.24, Drupal 7.12
  • MySQL version: 5.0
  • PHP version: 5.2
using UpdateAddress.php to geocode after import w/ multiple addresses
March 09, 2011, 11:11:52 am
hey folks,

i just imported people with Billing Address and Voter Address (a custom location type), neither of which is the default Location Type.

the Primary address for most people is the Voter Address but when i run the UpdateAddress.php script the Billing Address gets geocoded.

and when i try to map these contacts, since the primary address is not geocoded it is not able to map them.

how is UpdateAddress.php supposed to work? what can i do to make this work?

thanks!

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: using UpdateAddress.php to geocode after import w/ multiple addresses
March 09, 2011, 12:02:53 pm

i just checked the query. We look at all addresses that have a country id (and not geo coded). so check and ensure that the voter address has a valid country :)

if i had to guess the billing address come via a contrib/event form and hence has the country and hence is geocoded

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

josue

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 7
    • PTP
  • CiviCRM version: 3.4.4, 4.1.1
  • CMS version: Drupal 6.24, Drupal 7.12
  • MySQL version: 5.0
  • PHP version: 5.2
Re: using UpdateAddress.php to geocode after import w/ multiple addresses
March 10, 2011, 04:14:40 am
exactly right lobo. thanks!

UpdateAddress.php geocoded all the addresses once the country was added.

glad this one was an easy one...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • using UpdateAddress.php to geocode after import w/ multiple addresses

This forum was archived on 2017-11-26.