
Jason
Staff
/ Moderator

May 25, 2011, 10:18 AM
Post #2 of 3
(359 views)
Shortcut
|
|
Re: [InHouse] GeoLocation Plug-in Minimum Data Required
[In reply to]
|
Can't Post
|
|
Hi, 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', 'address/postcode/zipcode/zip', ); 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: -address -city -province And in another section, you have: -address -city -state 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 - Programmer interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|