Geocode scheduled task

  • Views Views: 10,091
  • Last updated Last updated:
  • Introduction​


    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.

    Options Address​


    cron-geocode-address.png

    • 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.

    Options​


    cron-geocode-options.png

    • 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.
Back
Top