Geocode Configuration

When objects are saved, you can trigger location geocoding.

Standard Geocoding

For instance, when a new page is added with an address attribute filled in, you may wish to have that address automatically geocoded into latitude and longitude.

  1. Go to {yoursite.com}/dashboard/system/attributes/geocode
  2. Configure what triggers you'll use
    1. Choose the triggering event
    2. Choose the address attribute
    3. Choose the target coordinates attribute
    4. Choose what happens if the target attribute already contains data
    5. Save the geocode settings
  3. Depending on how you configured the trigger, add a new page (or edit an existing one).
  4. Make a change to the address attribute
  5. Save the page
  6. The coordinates attribute will be updated according to the address attribute

Reverse Geocoding

For instance, when a new page is added with an coordinate attribute filled in, you may wish to have that coordinate automatically geocoded into an address.

  1. Go to {yoursite.com}/dashboard/system/attributes/geocode/reverse
  2. Configure what triggers you'll use
    1. Choose the triggering event
    2. Choose the coordinate attribute
    3. Choose the target address attribute
    4. Choose what happens if the target attribute already contains data
    5. Save the reverse geocode settings
  3. Depending on how you configured the trigger, add a new page (or edit an existing one).
  4. Make a change to the coordinate attribute
  5. Save the page
  6. The address attribute will be updated according to the coordinate attribute

Files and Users

Both files and users can be configured to use the same functionality as pages. You'll need to set up your site to do this:

  1. Go to {yoursite.com}/dashboard/system/attributes/types
  2. Tick the box for both 'address' and 'coordinates' attribute types for 'Files' and/or 'Users'
  3. Save the page
  4. Follow the directions given above for Pages.