Changeset 3216 for trunk/modules
- Timestamp:
- 07/27/2008 12:44:08 PM (4 months ago)
- Location:
- trunk/modules/gmaps
- Files:
-
- 2 modified
-
config/gmaps.php (modified) (1 diff)
-
libraries/Gmap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/gmaps/config/gmaps.php
r3145 r3216 7 7 8 8 $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 39 39 } 40 40 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); 42 42 } 43 43
