Unsolved dependencies Geonames, Geonames_hierarchy

asb - May 2, 2008 - 23:19
Project:Geonames CCK
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

I tried to install this module in combination with Geomap (http://drupal.org/project/geomap) to display a map for coordinates provided by a certain node type.

When going to /admin/build/modules, it displays a section "Geonames" which consists of geoapi, Geonames CCK, and Maxmind Iplocation for GeoApi. geoapi, and Geonames CCK can't be enabled because they claim to depend on "Geonames", "Countries_api", and "Geonames_hierarchy". Neither the project page mentions these dependencies, nor does the README.txt. The module can't be enabled, and there is nothing like http://drupal.org/search/node/geoapi, http://drupal.org/search/node/Geonames_hierarchy (but there is a http://drupal.org/project/countries_api).

Any ideas wht's going wrong?

Greetings, -asb

#1

airmehdi - May 8, 2008 - 14:17

You must install GeoNames ( http://ftp.drupal.org/files/projects/geonames-5.x-1.x-dev.tar.gz ) we fond the Geonames_hierarchy and Geonames_geoapi .

#2

asb - May 8, 2008 - 16:25
Priority:critical» normal

Hi airmehdi,

I see, the dependencies are much more complex than usual. With GeoNames installed, still "Countries_api" is missing which I installed from http://drupal.org/project/countries_api - I hope that's the right one. This altogether gives me a bunch of modules like children, countrycode, countryinfo, countrysubdivision, geoapi, Geonames API, Geonames CCK, gtopo30, hierarchy, Maxmind Iplocation for GeoApi, nearbyplace, nearbypostalcodes, nearbywikipedia, neighbours, postalcodecountryinfo, postalcodesearch, search, siblings, srtm3, timezone, wikipediabbox, and wikipediasearch. Now I get errors like:

warning: implode() [function.implode]: Bad arguments. in /var/www/drupal/sites/all/modules/geonames_cck/geonames_cck.theme.inc on line 96.

These errors are registered in Drupal's watchdog protocol (/admin/logs/watchdog).

Additionally, entering does nothing but offer a pulldown menu of countries. At /admin/settings/geonamescck, I can ony edit texts that are never displayed, and the CCK widget "Global Location" has no configuration options except "Label", and "Default value".

Selecting a country from this list, e.g. "Italy" or "France", results in a warning like:

Your location ,"" was not found in our locations database. Find another location?

Regarding these warnings, nothing is logged in watchdog.

Whatever I select with the Geonames CCK field, at /admin/settings/geonames, it says "There are currently 0 items in the cache".

Sorry, but I neither understand what this CCK field is supposed to do nor how to configure it. I thought I could simply enter a place (like "Paris") or even an address, the API would request coordinates for this playce, and I would get a small map of the location. As it seems, the Geonames CCK is supposed to do something completely different, or what am I doing wrong?

Thanks, -asb

#3

the greenman - July 19, 2008 - 09:26

Sorry, I have not been paying attention to my issue queue on this. There are a bunch of new features coming in the next week or two.

Unfortunately, location is just a complex subject! This system uses the geonames location database, which is an open location "wiki". It should know about most towns and cities, but it's not perfect as it relies on user-generated data.

When I get the new version out, we should have some better documentation.

 
 

Drupal is a registered trademark of Dries Buytaert.