MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / near

Method near

sdk/src/CloudQuery.js:689–701  ·  view source on GitHub ↗
(columnName, geoPoint, maxDistance, minDistance)

Source from the content-addressed store, hash-verified

687
688 //GeoPoint near query
689 near(columnName, geoPoint, maxDistance, minDistance) {
690 if (!this.query[columnName]) {
691 this.query[columnName] = {};
692 this.query[columnName]['$near'] = {
693 '$geometry': {
694 coordinates: geoPoint['document'].coordinates,
695 type: 'Point'
696 },
697 '$maxDistance': maxDistance,
698 '$minDistance': minDistance
699 };
700 }
701 };
702
703 //GeoPoint geoWithin query
704 geoWithin(columnName, geoPoint, radius) {

Callers 3

test.jsFile · 0.80
CloudGeoPoint.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected