Pages: [1]
Print
Author Topic: Batch geocoding not giving precise results  (Read 702 times)
proboscidian
Pre-Sales
Newbie
*
Posts: 3


« on: August 03, 2010, 06:23:27 AM »

When I run batch geocoding (on a Mac - I have tried both Safari and Firefox) I am getting very generic results.  Everything is rounded to the nearest whole number - for example, -82.000000/26.000000.  If I manually geocode each location individually I get good, precise results.  Is there some setting I have missed?
Logged
proboscidian
Pre-Sales
Newbie
*
Posts: 3


« Reply #1 on: August 03, 2010, 06:25:17 AM »

I forgot to mention - I did install the Safari/Firefox patch.
Logged
Support
Administrator
Jr. Member
*****
Posts: 93



« Reply #2 on: August 03, 2010, 07:56:15 AM »

The rounding of coordinates takes place at the server as it parses the URI received from the browser. The core framework upon which LiteRadius is built (Codeigniter.com) has a configuration that enables you to change the method by which the URI is retrieved.

In the admin/config/config.php file you will find a section called:

Quote
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string.  The default setting of "AUTO" works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO'         Default - auto detects
| 'PATH_INFO'      Uses the PATH_INFO
| 'QUERY_STRING'   Uses the QUERY_STRING
| 'REQUEST_URI'      Uses the REQUEST_URI
| 'ORIG_PATH_INFO'   Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol']   = "AUTO";
if (strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') !== false)
{
   $config['uri_protocol']   = "QUERY_STRING";
}

Try changing $config['uri_protocol'] to "REQUEST_URI" or "QUERY_STRING". Just copy $config['uri_protocol']= "QUERY_STRING"; and paste it below the if conditional so your config.php file looks like:
Quote
.
.
.
if (strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') !== false)
{
   $config['uri_protocol']   = "QUERY_STRING";
}
$config['uri_protocol']   = "QUERY_STRING";

If "REQUEST_URI" or "QUERY_STRING" doesn't work, you may need to try the other protocols.

BTW: The Safari/Firefox patch is incorporated into the current LiteRadius package and is only applicable to LiteRadius downloads prior to 5-5-2010.
Logged
proboscidian
Pre-Sales
Newbie
*
Posts: 3


« Reply #3 on: August 03, 2010, 01:08:24 PM »

Thank you, that seems to work!  I added the Safari patch because I thought that might be the cause of the problem, but I can restore the original files if it is irrelevant.
Logged
Pages: [1]
Print
Jump to: