CiviCRM provides a command-line script which will retrieve latitude and longitude for a specified set of contact records using your configured Mapping Provider. Before running this script you must:
You can run the script from a URL or from the shell. More information on calling this (and other similar commands) available on the command line interface configurationpage. As well as the standard username, password and key, you can pass two variables with the start and end ids of the contacts that you want to geocode, or you can ask the script to geocode all contact who don't already have a latitude/longitude value stored. Here's an example for Drupal. $ wget http://<drupal_root>/sites/all/modules/civicrm/bin/UpdateAddress.php?name=<username>&pass=<pw>&start=<start contact id>&end=<end contact id>
If you have cause to set this up as a cronjob, see the instructions at for setting up a secure wget invocation "Security Note" in the context of civicmail at http://wiki.civicrm.org/confluence/display/CRMDOC/CiviMail+Installation. |
