Configurable Information source
SeroSero - June 16, 2008 - 09:49
| Project: | Google Client Geocoder |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi,
I am using geonames for much of my geographical information; I try to avoid installing too many modules, as it usually complicates things. You use the countries_api for some information in the _gcg_countries_list function. I wrote a few extra lines, and removed the countries_api dependency from the install file so it uses geonames instead -- maybe you could make this an optional choice on install -- require either one;
if (function_exists('geonames_countries')) {
foreach (geonames_countries() as $key => $country) {
$countries[$country['iso_alpha2']] = $country['name'];
}
return $countries;
}Same info, different source of information. Btw. the info in geonames is auomatically kept up-to-date in case there are changes in the list...
Sero
