var query = new Stamplay.Query('object', 'photo').near('Point', [ 41.273237238849845, 1.6969573974609098 ], 900000, 0 );
query.exec().then(function(response){
console.log(response.data);
});
should not only select within the given distances, but also sort by distance according to mongodb documentation:
The following example returns documents that are at least 1000 meters from and at most 5000 meters from the specified GeoJSON point, sorted from nearest to farthest:
This:
should not only select within the given distances, but also sort by distance according to mongodb documentation:
The following example returns documents that are at least 1000 meters from and at most 5000 meters from the specified GeoJSON point, sorted from nearest to farthest: