I am trying to get a query working with geocode and radius but its not working the way I want it to...
I tried using the following code with no success.
var map = Appery('googlemap_52');
var GLat = map.gmap.getCenter().lat();
var GLon = map.gmap.getCenter().lng();
var geo = [GLat, GLon];
return '{"StartGeo" : {"$nearSphere" : "'+JSON.stringify(geo)+'","$maxDistanceInKilometers" : "'+JSON.stringify(value)+'"} }';
Value is just a numeric distance from local storage..
Any help would be appreciated...