Closed (works as designed)
Project:
GeoNames
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2009 at 06:23 UTC
Updated:
14 Jan 2010 at 10:08 UTC
Hi,
How should I query geonames_query($parameters) so that returns an array of countries,
and then for each country, an array of cities?
Kind Regards,
Jorge
Comments
Comment #1
lyricnz commentedThis module just provides an interface to services, and data, provided by http://www.geonames.org/ . If you can indicate a function (or functions) there that contains this information, great. Otherwise we can't do it.
Please close this ticket if your issue has been resolved (or cannot be resolved). Cheers, Simon
Comment #2
lyricnz commentedI can only suggest that you get the DB dump from geonames.org, load it into your Drupal site, and query this to get a list of all countries and all cities over a certain size. Doing this via the web-servcce would probably be pretty inefficient: grab a list of all countries, then iterate through each looking for the capital, then finding siblings of that. Summary: not possible with provided API.