GlisWeb framework
_mapquest.php
Vai alla documentazione di questo file.
1 <?php
2 
14  // inclusione del framework
15  require '../../../_src/_config.php';
16 
17  // ordinamento degli array per la scrittura
18  rksort( $cf );
19  rksort( $ct );
20 
21  // output
22  $tx = NULL;
23 
24  // geolocalizzazione di test
25 /*
26  $tx .= print_r( mapquestGetCoords(
27  $cf['mapquest']['server']['key'],
28  '25/a',
29  'via Francesca Edera de Giovanni',
30  'Bologna',
31  'Italia'
32  ), true );
33 */
34  // geolocalizzazione di test
35  $tx .= print_r( mapquestGetCachedCoords(
36  $cf['memcache']['connection'],
37  $cf['mapquest']['server']['key'],
38  '25/a',
39  'via Francesca Edera de Giovanni',
40  'Bologna',
41  'Italia'
42  ), true );
43 
44  // nascondo le password
45  array_walk_recursive( $cf['mapquest'], function( &$v, $k ) { if( $k === 'password' || $k === 'private' || $k === 'key' ) { $v = '***'; } } );
46 
47  // array $cf
48  $tx .= print_r( $cf['mapquest'], true ) . PHP_EOL;
49 
50  // output
51  build( $tx );
52 
53 ?>
mapquestGetCachedCoords( $m, $key, $civico, $indirizzo, $citta, $stato, $t=MEMCACHE_DEFAULT_TTL, $url='http://www.mapquestapi.com/geocoding/v1/address')
$tx
Definition: _mapquest.php:22
if(isset( $cx['contatti'])) if(isset( $cf['site']['contatti'])) $ct['contatti']
Definition: _035.common.php:24
rksort(&$array)
$cf['ricerca']['template']
Definition: _030.common.php:7
build( $content, $type=MIME_TEXT_PLAIN, $encoding=ENCODING_UTF8, $headers=array())