Closed (fixed)
Project:
GeoNames
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2009 at 23:07 UTC
Updated:
12 Nov 2009 at 11:50 UTC
I found that the nearby service is not supported by the current dev version. I have added the following to my geonames_config.inc to make it work with nearby:
$config['nearby'] = array(
'service_name' => 'nearby',
'service_full_name' => 'Find Nearby (reverse geocoding)',
'description' => t('Find Nearby (reverse geocoding)'),
'service_path' => 'findNearby',
'credit_cost' => 4,
'result_cache_prefix' => 'nebres:',
'data_cache_prefix' => 'nebdat:',
'allowed_parameters' => array(
//our style geonames style
'lat' => 'lat',
'lng' => 'lng',
'radius' => 'radius',
'featureclass' => 'featureClass',
'featurecode' => 'featureCode',
'maxrows' => 'maxRows',
'style' => 'style',
),
'array_parameters' => array(
'featurecode',
'featureclass',
),
'required_parameters' => array(
'lat',
'lng'
),
'required_parameters_type' => 'all',
);
Comments
Comment #1
lyricnz commented6.x-2.x-dev is not the current dev version, that is essentially abandoned. Use 6.x-1.x-dev.
Service is described at http://www.geonames.org/export/web-services.html#findNearby
Added your code above, along with a simple testcase.