Fabrik 3.7 is now available. This version contains critical security updates, please update as soon as possible. Please remember to backup your site before updating, we also recommend testing your updates on development sites if possible.
Geocode scheduled task
The geocode plugin allows you to use Googles geocode API to find and store coordinates for a set of addresses. This can be useful when you import in a data set and wish to update a google map element for all of the imported records.
This scheduled task plugin will only run if the Fabrik Cron System Plug-in is installed.
- Map element - The google map element which will be used to store the geo-coded location
- The rest of this sections options enable you to define which element's in your list contain which parts of the address to geocode.
- Geocode when - When to apply a geocode.
- Empty or Default - will only geocode if the map element is empty or has the 'Empty Value' (as specified below)
- Empty - will only geocode a row if the map element value is literally empty.
- Always - will geocode regardless of value of the map element. NOTE - if you are using a 'Batch Limit', do not use 'Always' for this setting, as this will cause each run to simply re-encode the same batch.
- Empty value - Only used if 'Empty or Default' is selected for 'Geocode When'. The value in the Map Element which should be considered to mean empty, i.e. this row needs encoding. Needs to be of the form (lat,long):zoom, with no spaces
- Zoom level - Google Maps zoom level to use for the encoded map elements.
- Batch limit - OPTIONAL - set a limit on the number of rows to process on each run of the plugin, to avoid hitting Google limits on geocode operations. If not specified, all rows will be processed
- Delay - OPTIONAL - delay (in milliseconds) between geocoding requests to Google. If you are seeing errors in the Fabrik log about Google limits, try setting this to a few hundred.