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

lyricnz’s picture

Status: Active » Postponed (maintainer needs more info)

This 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

lyricnz’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I 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.