Hi moshiur_rahman.
i also want to find the restaurants from my current location and this is my Javascript code.
var bucket = Kii.bucketWithName("ListData");
var my_location = KiiGeoPoint.geoPoint(10.782973, 106.695890);
var clause1 = KiiClause.geoDistance('LATLONG', my_location, 4000, null);
var queryObject = KiiQuery.queryWithClause(clause1);
bucket.executeQuery(queryObject, {
success: function(queryPerformed, resultSet) {
var obj = resultSet[0];
console.log(obj.get("LATLONG"));
}
});
with LATLONG value in my bucket "ListData" is
{"LATLONG": "10.780062,106.69299"}
{"LATLONG": "10.784062,106.69799"}
{"LATLONG": "10.783062,106.69799"}
{"LATLONG": "10.782662,106.69699"}
but when i run it on the browser, i get resultSet = [ ]
Can you explain me why it don't have result data and how to get result with that LATLONG value ?
Thank you so much.