/[drupal]/contributions/modules/geonames/geonames_gtopo30.module
ViewVC logotype

Contents of /contributions/modules/geonames/geonames_gtopo30.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Thu Sep 20 10:55:58 2007 UTC (2 years, 2 months ago) by serosero
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5, DRUPAL-6--2
File MIME type: text/x-php
First commit for Geonames API
1 <?php
2 // $Id$
3
4 /**
5 * @file
6 * Geonames gtopo30 / by Erlend Eide, erlend(|)edesign.no
7 */
8
9 /**
10 * Service configuration
11 */
12 function geonames_gtopo30_geoconfig($item = FALSE, $local = FALSE) {
13 $config = array(
14 'service_name' => 'gtopo30',
15 'service_full_name' => 'Elevation - GTOPO30',
16 'description' => t('GTOPO30 is a global digital elevation model (DEM) with a horizontal grid spacing of 30 arc seconds (approximately 1 kilometer). GTOPO30 was derived from several raster and vector sources of topographic information.'),
17 'service_path' => 'gtopo30',
18 'credit_cost' => 0,
19 'result_cache_prefix' => 'gtpres:',
20 'data_cache_prefix' => 'gtpdat:',
21 'allowed_parameters' => array(
22 //our style geonames style
23 'lat' => 'lat',
24 'lng' => 'lng',
25 'type' => 'type',
26 ),
27 'required_parameters' => array( // If you have set query_defaults you should not include the parameter here
28 'lat',
29 'lng'
30 ),
31 'required_parameters_type' => 'all',
32 'query_defaults' => array(
33 'type' => 'xml'
34 ),
35 );
36 return ($item ? ($local ? $config[$item] : array($config['service_name'] => $config[$item])) : array($config['service_name'] => $config));
37 }

  ViewVC Help
Powered by ViewVC 1.1.2