Active
Project:
Google Client Geocoder
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2008 at 09:49 UTC
Updated:
16 Jun 2008 at 09:49 UTC
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