SproutCMS

This is the code documentation for the SproutCMS project

function geocodeAddress()

Renders place name geocoding fields

Usage

string Fb::geocodeAddress ( string $name , array $attrs , array $options );

Arguments

  1. string $name
    Field
  2. array $attrs
    Attributes for the input elements
  3. array $options
    Config options
        ```js
        {
           fields: {street: field-name, city: field-name, state: field-name, postcode: field-name, country: field-name},
           restrictions: { country: 'AU' }
        }
        ```
        Beware: The restrictions cannot accept a country list like autoCompleteAddress().
    
        Note: 'restrictions are defined here:
        https://developers.google.com/maps/documentation/javascript/reference/geocoder#GeocoderComponentRestrictions

Return value

  • string
    HTML