This documentation relates to CiviCRM version 3.2. It's not maintained anymore.
Current version of documentation.

Batch Geocoding Script

Skip to end of metadata
Go to start of metadata

This page refers to outdated version of CiviCRM. Check current version of documentation.

 All versions (click to expand)

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.

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.

Labels:

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.