This documentation refers to CiviCRM 3.2, current stable version. Please introduce all the documentation changes here.

Batch Geocoding Script


This page refers to CiviCRM 3.2.


Documentation Search


CiviCRM 3.2 Documentation

Support and Participation

Developer Resources


CiviCRM book!
Make sure to check out Understanding CiviCRM as well! You can also support this project by ordering a hard copy.
Available As of v1.8
This feature is available starting with CiviCRM release 1.8

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.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.