this is a new service they are offering which i think would be valuable to add.

more info available here:
http://forum.geonames.org/gforum/posts/list/581.page#2667

Comments

2xe’s picture

Hi,

I agree! The following service definition seems to work with Drupal 6.

  $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',
      'featureclass' => 'featureClass',
      'featurecode' => 'featureCode',
      'maxrows'      => 'maxRows',
      'style'           => 'style',     
    ),
    'array_parameters' => array( 
      'featurecode',
      'featureclass',
    ),
    'required_parameters' => array( 
      'lat', 
      'lng'
    ),
    'required_parameters_type' => 'all',
  );

Haven't got the time to fix this for D5 -- but the job is very easy; just copy one of the other service modules' .module and info files, change the function names and descriptions. Then paste in the definition at the proper place, and you should be ready to go.

Sero!

2xe’s picture

Status: Active » Patch (to be ported)
2xe’s picture

Version: 5.x-1.x-dev » 6.x-1.1
Status: Patch (to be ported) » Fixed

fixed in official D6 release.

DerTobi75’s picture

Hi,

will this backported to 5.7?!

Tobi

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

cronix’s picture

Has this ever been commited? I cannot find the findnearby in my code (latest dev)