GeoLocation Plug-in Minimum Data Required

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 25, 2011   (RSS)

Re: [InHouse] GeoLocation Plug-in Minimum Data Required

By Jason - May 25, 2011


If you open up the geocoder plugin, you'll see this code:

$GLOBALS['GEOCODER_ADDRESS_FIELD_COMBOS'] = array( // values should be ", " separated. alternates should be "/" separated.
'address, city, province/state, postcode/zipcode/zip',
'street_address, city, province/state, postcode/zipcode/zip',
'city, province/state, postcode/zipcode/zip',
'province/state, postcode/zipcode/zip',
'address, city, province/state, country',
'address, city, province/state',

This is where you can define the different fields that the geocoder should use to attempt to geocode your record. Each type of field is separated by a comma, alternate fields are separated by slashes (/)

For example, say in 1 section you have these fields:

And in another section, you have:

You can set us your field line like this:
'address, city, province/state',

Obviously, the more specific you can be (ie, the more fields you have available) the more accurate your geocoding will be.

Please let me know if you have any further questions.

Hope this helps
Jason Sauchuk - Project Manager

Hire me! Save time by getting our experts to help with your project.

Re: [Jason] GeoLocation Plug-in Minimum Data Required

By InHouse - May 25, 2011

Many thanks Jason! That's exactly the hint I needed. Should have guessed that the collective at Interactive Tools would have a way to control such things.