Changeset 3216 for trunk/modules

Show
Ignore:
Timestamp:
07/27/2008 12:44:08 PM (4 months ago)
Author:
alexsancho
Message:

google domain now can be defined in configuration

Location:
trunk/modules/gmaps
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/gmaps/config/gmaps.php

    r3145 r3216  
    77 
    88$config['api_key'] = 'ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA'; 
     9 
     10/** 
     11 * Using a localised google domain gives more accurated results on geolocation 
     12 * For example, searches for "Toledo" will return different results within the domain of Spain (http://maps.google.es)  
     13 * specified by a country code of "es" than within the default domain within the United States (http://maps.google.com). 
     14 */ 
     15 
     16$config['api_domain'] = 'mqps.google.com'; 
  • trunk/modules/gmaps/libraries/Gmap.php

    r3214 r3216  
    3939                } 
    4040 
    41                 return 'http://www.google.com/'.$component.'?'.http_build_query($parameters, '', $separator); 
     41                return 'http://'.Kohana::config('gmaps.api_domain').'/'.$component.'?'.http_build_query($parameters, '', $separator); 
    4242         } 
    4343