When using the search function of the geonames webservice only one of the following is required. (q, name, name_equals). The module suggests that they are all required which simply is not true.

Comments

vangorra’s picture

An additional note, but removing those items from the required_parameters array, then the query will not be run period.

lyricnz’s picture

Status: Active » Closed (fixed)

The configuration for "search" includes:

    'required_parameters' => array( // If you have set query_defaults you should not include the parameter here
      'query', 
      'name', 
      'name_equals'
    ),
    'required_parameters_type' => 'single',

The "required_parameters_type" value means that only one of these parameters must be set. In any case (experimentally) searching with just one parameter works just fine.

No change required. Closing.