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) »
  • UpdateAddress.php not seeming to have any effect!
Pages: [1]

Author Topic: UpdateAddress.php not seeming to have any effect!  (Read 1934 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
UpdateAddress.php not seeming to have any effect!
May 05, 2009, 06:08:23 am
Hi there,

I'm trying to batch update all my records that do not have longitude and latitude with geocoding data.

I have google maps set up and for those records that do have longitude and latitude it all works fine.

Now I'm seeking to batch update the rest of them.

Running AdressUpdate doesn't seem to result in addresses being updated. I suspect that I've configured the script rather than run it!

I've followed these instructions to provide the site with a key:

http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration

and I've run this script (obviously replacing the tags for actual values):

'http://<base_url>/sites/all/modules/civicrm/bin/UpdateAddress.php?name=<admin_user_name>&pass=<password>key=<site_key>'

Resolving <domain>... <domain ip>
Connecting to <domain>|<domain>|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 48 [text/html]

100%[====================================>] 48            --.--K/s             

05:47:15 (8.26 MB/s) - `UpdateAddress.php?name=<admin_username>&pass=<password>key=<site_key>' saved [48/48]

I don't seem to have an error, so I'm guessing that I've just misunderstood what I'm doing -

rather than running the script have I just configured it and need to set up cron to run it?

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: UpdateAddress.php not seeming to have any effect!
May 05, 2009, 06:15:30 am
Ok so after looking through the php script I'm now thinking I was pretty silly just now, ao my question is now:

If we don't have "State" set (and since this is a UK unitary authority where city is the county); then it won't pick up partial addresses...

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: UpdateAddress.php not seeming to have any effect!
May 05, 2009, 06:28:30 am
Yep - If I put in counties it works.

That is not how we use the system, since we never send land-mail and we all know our local counties, or rather no-one cares about them!

Next steps:

Either - see if google will still map against an even smaller data set;

Or - Set up something to shove in county even if the user doesn't

Then we only have the problem if the county is not a unitary authority and the user is lazy!

theitd

  • I’m new here
  • *
  • Posts: 22
  • Karma: 1
    • the ITD
  • CiviCRM version: 3.4.7
  • CMS version: 1.15.26
  • MySQL version: 5.1.66
  • PHP version: 5.3
Re: UpdateAddress.php not seeming to have any effect!
May 12, 2009, 05:20:22 am
Hi Myles,

I came across a similar problem when we used the supplemental address lines for UK addresses. Google will return a 'set' of results only using the postcode and country. The only problem is that Civi takes the first pair of lat. and long. returned - so you can end up with the marker up to a couple of miles away from the intended point.

I described in this post how to add the supplemental address lines to a geocode query, so by stripping out what you need you may be able to change it for the information you have got....

http://forum.civicrm.org/index.php/topic,6653.msg29295.html

Good Luck!
Too err is human, to really foul things up needs a computer.

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: UpdateAddress.php not seeming to have any effect!
May 13, 2009, 05:59:15 am
Thanks for that - really useful - both the code and the warning.

I've found that the other current requirement of the mapping script is that street names are strictly streets - no flats. I can run routines to fill in county / country - but that's the sticker - easy enough, but somehow no-one likes to do things frack to bont

Anyhow, things are working well enough for now, this will be something we work out through practice and compromise.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • UpdateAddress.php not seeming to have any effect!

This forum was archived on 2017-11-26.