nearby is missing in current dev
cronix - October 28, 2009 - 23:07
| Project: | GeoNames |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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',
);
#1
6.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.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.