1// spatial search via ajax 2 3/* 4 5jQuery.post(DOKU_BASE + 'lib/exe/ajax.php', { 6 call : 'findnearby', 7 geohash : 'u15vk4gy' 8}, function(data) { 9 // data is array you returned with action.php 10 console.debug(data); 11}, 'json'); 12 13 14jQuery.post( 15 DOKU_BASE + 'lib/exe/ajax.php', 16 {call: 'findnearby', lat: 51.56, lon:5.45}, 17 function(data) { 18 //alert('Received response'); 19 //data is array you returned with action.php 20 console.debug(data); 21 }, 22 'json' 23); 24 25 26*/